-
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
Fix UPDI erase when target is locked #1125
Conversation
88dd393
to
bfec594
Compare
I forgot to mention, the Avrdude output looks a bit funny when reading the device signature fails. Maybe @stefanrueger has any idea how we can fix this without messing up the formatting for every other progress bar?
|
Indeed. Maybe a simple return after Example output by adding a return.
|
Mixing the progress bar with warning messages is a really hard task: I have added code elsewhere that aborts progress bars on fatal errors, but I have no easy fix for this kind of thing outlined here. Maybe that is one of those things that we need to come back to when there is more time? |
Definitely. I didn't plan to "fix" the progress bar in this PR anyways, since this is a "general" problem anyways, and has little to do with this PR. |
Tested with snap_updi as well for the "Nano Every" ATmega4808 clone. |
I've been on vacations for the last couple of weeks totally isolated from the world :P |
This PR resolved issue #1124. Now a chip erase will be performed as long as
-e
is specified. Note that this is still an issue with the jtag2updi programmer, and appears to either be a JTAGmkII protocol or a jtag2updi limitation.Regarding the newly added
family_id
in avrdude.conf. I've been in contact with Microchip directly, and they confirmed that the AVR-DAfamily_id
is shifted to the right (probably a mistake that's too late to fix), while for AVR-DB, AVR-DD, and AVR-EA it's shifted to the left.Tested and works with SerialUPDI, PICkit4, SNAP, Curiosity Nano and Xplained Mini.
Please review!