-
Notifications
You must be signed in to change notification settings - Fork 149
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
#1052 Add JTAG support for PICkit4 and Snap. #1233
#1052 Add JTAG support for PICkit4 and Snap. #1233
Conversation
src/avrdude.conf.in
Outdated
id = "snap"; | ||
desc = "MPLAB(R) Snap in JTAG mode"; | ||
type = "jtagice3"; | ||
prog_modes = PM_JTAG | PM_XMEGAJTAG | PM_AVR32JTAG; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PM_AVR32JTAG - not sure about that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
Wow, thanks a lot! I'll test it when I'm back home |
Just curious, this won't cause any issues for older JTAG compatible gen3 programmers? Semi off-topic: Lines 1289 to 1295 in 159d126
|
There are a few fields in this configuration block which, if zero, can cause loops to never terminate, for example, which is why the check is mandatory in the newer debuggers (you get 0x33 back). Other missing fields might just yield bad results, so they are not mandatory to specify. |
Tested and works perfectly using both the PICkit4 and SNAP! I can read and write to EEPROM and flash, and terminal mode works great.
While you're at it, could you add avrdude.1: Line 228 in 159d126
avrdude.text: Line 314 in 159d126
But regardless of the docs, this PR is working perfectly fine, and can be merged as it is! |
God jul :) |
You're welcome, and God Jul! 🎅 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating the docs! PR will be merged within a day or two I think.
God jul til dere også 🎄
This is good. The only thing is that it does not print out the serial number, which should hopefully be addressed by #1223.
|
In the terminal mode, it is mentioned that page erase is not supported. Is this a limitation in JTAG mode? Or is it just that you have not implemented the function? |
These JTAG devices have only a "chip erase" function. Page erase can only be achieved by entering debug mode. So I think you could call this a limitation of the device. |
I see. In this case, this PR is good to go from my side. |
No description provided.