AVR128DB28 "Locked.." a bug, BDU Error, or bad batch of chips? #412
ITDiscovery
started this conversation in
Future development discussion
Replies: 2 comments 7 replies
-
The locked chip issue was fixed last Thanksgiving. It should automatically
fire a chip erase
…____________
Spence Konde
Azzy’S Electronics
New products! Check them out at tindie.com/stores/DrAzzy
GitHub: github.com/SpenceKonde
ATTinyCore: Arduino support for almost every ATTiny microcontroller
Contact: ***@***.***
On Sun, Mar 5, 2023, 17:37 Peter Nichols ***@***.***> wrote:
I "Burned Bootloader" in 1.5.4 for Optiboot. Everything was fine, then
went over to the Serial port to upload my code, and nothing. "Oh....I
probably didn't change it from PA4/5 to PA0/1, no problem....re-burn it."
Error:
Failed to enter NVM programming mode
The device is in a locked state and is not accessible; a chip erase is required.
Locked AVR UPDI devices can:
- be unlocked using command: erase --chip-erase-locked-device
- write user row values using command: write --user-row-locked-device
Ok...finding that while adding unlocks to prog.py was in the queue (due
last Turkeyday if memory serves), sounds like it's not there yet. Soooo....
% pymcuprog ping -t uart -u /dev/cu.usbserial-AL0122RA -d avr32da28
Connecting to SerialUPDI
The device is in a locked state and is not accessible; a chip erase is required.
Locked AVR UPDI devices can:
- be unlocked using command: erase --chip-erase-locked-device
- write user row values using command: write -m user_row --user-row-locked-device
% pymcuprog erase -t uart -u /dev/cu.usbserial-AL0122RA -d avr32da28 --chip-erase-locked-device
Connecting to SerialUPDI
Pinging device...
pymcuprog.pymcuprog_main - ERROR - Error with st_ptr
Still no dice...and no idea if it's pymcuprog, my board (doubtful, 2nd
board, and components to the working one are identical) or the new batch of
AVR128DB28's. Other likely extraneous facts: I noticed that my FTDI was set
to 3.3V and I have since tried this in 1.5.5....already replaced with
another AVR128DB28 from the same batch, which I will drop on one of my
breakout boards.
Suggestions?
—
Reply to this email directly, view it on GitHub
<#412>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTXEW5GORXXCO7VR3RMH23W2UISBANCNFSM6AAAAAAVQNUZNA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
3 replies
-
....and the winner is... Shorted cap across the reset line (stuck in reset mode). I'm thinking this is pymcuprog not DxCore that should be trapping for this. So is this a bug, feature request, BDU Error? Would have been really nice to have a "RESET not released", because pymcuprog did attempt to do that, and should have failed right there. Instead I got a squirrel to chase. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I "Burned Bootloader" in 1.5.4 for Optiboot. Everything was fine, then went over to the Serial port to upload my code, and nothing. "Oh....I probably didn't change it from PA4/5 to PA0/1, no problem....re-burn it."
Ok...finding that while adding unlocks to prog.py was in the queue (due last Turkeyday if memory serves), sounds like it's not there yet. Soooo....
Still no dice...and no idea if it's pymcuprog, my board (doubtful, 2nd board, and components to the working one are identical) or the new batch of AVR128DB28's. Other likely extraneous facts:
Suggestions?
Beta Was this translation helpful? Give feedback.
All reactions