ATSAMD21 bricked after setting fuses, device ID changes to an unknown one

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
OrlandoR4
 
Posts: 3
Joined: Thu Nov 24, 2022 5:40 pm

ATSAMD21 bricked after setting fuses, device ID changes to an unknown one

Post by OrlandoR4 »

After trying to flash a pair of ATSAMD21G18A the device ID's changed from the expected ones to the IDs shown in the picture, the firmware on the J-Link EDU is up to date and Microchip studio is newly reinstalled.

The board the microcontroller is on is proven to work as I have done the same process before without any problems, however, after trying to make new boards while setting the fuses the microcontroller just bricked.

The errors I find are:
J-Link Commander: 0x0 sector is locked while trying to erase, Microchip Studio erases just fine
J-Link Flash Lite: Error while trying to flash a hex or bin file
Microchip Studio: Device ID changed from 0x10010305 to "Unexpected Chip Identifier 0x1001031f" after setting a boot protect fuse.
Attachments
err1.PNG
err1.PNG (32.85 KiB) Viewed 83 times

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: ATSAMD21 bricked after setting fuses, device ID changes to an unknown one

Post by adafruit_support_mike »

This page from StackExchange describes resetting the NVM fuses with gdb:

https://electronics.stackexchange.com/q ... -nvm-fuses

Beyond that, you may need to talk to the folks at Microchip/Atmel.

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”