Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PICKit 5 support #1367

Closed
mcuee opened this issue May 26, 2023 · 12 comments
Closed

PICKit 5 support #1367

mcuee opened this issue May 26, 2023 · 12 comments
Labels
enhancement New feature or request

Comments

@mcuee
Copy link
Collaborator

mcuee commented May 26, 2023

Microchip has released PICKit 5 as an upgrade to PICKit 4. At US$94.99 it seems to be a decent tool to work with Microchip MCUs incuding AVRs.
https://www.microchip.com/en-us/development-tool/PG164150

@mcuee mcuee added the enhancement New feature or request label May 26, 2023
@MCUdude
Copy link
Collaborator

MCUdude commented May 26, 2023

I wasn't aware that the PICkit5 has already been released!

@xedbg how similar is this to the PICkit4? Is there still a "PIC" and an "AVR" mode? If it "speaks" the same EDBG protocol as the SNAP/PK4, it shouldn't be too tricky to add Avrdude support, which would be really cool to have in the following, 7.2 release!

@xedbg
Copy link

xedbg commented May 26, 2023

@MCUdude - The PICkit5 to my knowledge supports only the native "PIC" mode, and has implemented AVR (and ARM) support in that mode using a system of byte-code scripts which are drawn from XML within the tool-pack. This means that it is only supported in MPLAB (and not Studio, or any other CMSIS-DAP-enabled third-party IDE) and even if the protocol were to be published, would unfortunately require a non-trivial amount of work to get it into avrdude.
Also FYI: from MPLABX 6.10, the PICkit4 and Snap will also use this mode for AVR devices. But the AVR mode still exists in those tools, and Studio will switch them into that mode automatically.

@MCUdude
Copy link
Collaborator

MCUdude commented May 26, 2023

Thanks for the info @xedbg! Do you know if the PICkit4 will be discontinued soon?

The PICkit5 to my knowledge supports only the native "PIC" mode, and has implemented AVR (and ARM) support in that mode using a system of byte-code scripts which are drawn from XML within the tool-pack. This means that it is only supported in MPLAB (and not Studio, or any other CMSIS-DAP-enabled third-party IDE) and even if the protocol were to be published, would unfortunately require a non-trivial amount of work to get it into avrdude.

From our perspective, that's a real bummer. And the fact that it's not supported by Studio tells me that for an AVR developer, the PICkit4 is for now a better choice. And yes, implementing this (new or EDBG derived?) protocol requires a substantial amount of work even if the protocol were to be published.

However, if/when the protocol is released, I hope there will be Avrdude support for it in the future. With all the new features added to Avrdude terminal mode recently, it has not turned into a very potent CLI tool that can be used for way more than just flashing binaries.

But the AVR mode still exists in those tools, and Studio will switch them into that mode automatically.

Excellent, I hope this feature doesn't get removed then.
I even remember discussing adding this PIC/AVR switching feature to Avrdude. That's still on the Avrdude "features wanted" list, but it required a lot of research, and other things had higher priority.

@xedbg
Copy link

xedbg commented May 26, 2023

I don't disagree with your view @MCUdude. I can't comment on the PICkit4 supply situation - there have been many EOLed products in recent times due to component sourcing issues though...

@mcuee
Copy link
Collaborator Author

mcuee commented May 26, 2023

I don't disagree with your view @MCUdude. I can't comment on the PICkit4 supply situation - there have been many EOLed products in recent times due to component sourcing issues though...

Microchip.com shows zero stock for PICKit 4, but I just checked Mouser Singapore and they show 3624 in stock.
https://www.mouser.sg/ProductDetail/Microchip-Technology/PG164140?qs=r5DSvlrkXmLKDuYNJImLWw%3D%3D

PICKit 5 has not reached here in Singapore yet.
https://www.mouser.sg/ProductDetail/Microchip-Technology/PG164150?qs=ulEaXIWI0c8vHVWqoqZ8Uw%3D%3D

@mcuee
Copy link
Collaborator Author

mcuee commented Jun 1, 2023

Merged into #1367

@xedbg
Copy link

xedbg commented Jul 18, 2023

FYI
https://www.microchip.com/product-change-notifications/#/19745/CFAN-12EBFB824
The catalog part number (CPN) PG164140 has moved to End of Life (EOL). This catalog part number will no longer be offered after Sept 1, 2023. The replacement part number is: PG164150

@MCUdude
Copy link
Collaborator

MCUdude commented Jul 18, 2023

The PICkit4 is going EOL? That's bad news for us... Let's hope we'll see PICkit5 support Avrdude in the future. I'll argue that Avrdude is the best CLI programmer for AVR devices, and it would be a shame if the next generation of programmers wouldn't be supported.

@stefanrueger
Copy link
Collaborator

shame if the next generation of programmers wouldn't be supported

Is there a path for AVRDUDE to support PICKit4/5? @xedbg mentioned a closed protocol that is likely to be non-trivial. Both of which I consider a serious drawback of the programmer.

@MCUdude
Copy link
Collaborator

MCUdude commented Jul 18, 2023

@stefanrueger PICkit4 is already supported by Avrdude, but it is the ICE4, ICD5, and PICkit5 that are not supported (not even by Microchip Studio) due to the different protocol.

I don't think there is any public documentation regarding the new protocol, so there's not much we "dudes" can do yet.
I hope Microchip remembers us, and the importance of Avrdude to all developers that prefer to work outside a proprietary IDE.

Bottom line: I think everyone would benefit from extended support for the new Microchip programmers; especially Microchip themselves!

@mcuee
Copy link
Collaborator Author

mcuee commented Jul 19, 2023

It is said future version of Microchip Studio will support PICkit 5.
https://forum.microchip.com/s/topic/a5C3l000000BpyJEAS/t391312

@MCUdude
Copy link
Collaborator

MCUdude commented Jul 19, 2023

It is said future version of Microchip Studio will support PICkit 5.

That's good to know! Then maybe, maybe there's a chance someone from the Microchip/Atmel division can help out in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants