William Hanna
2017-06-08 11:51:14 UTC
Has anyone had any success with using openocd to erase ATSAMDA1 or ATSAMC21 devices which have the security enabled?
The command:'at91samd chip-eraseâ says it will erase the device when security enabled. However when the security is set openocd doesnât appear to be able to run the âinitâ command on the device successfully.
According to the data sheet (ATSAMDA1 section 14.6.2 & timing diagram Figure 14-2) the CPU Reset extension must be used before chip-erase.
I have tried using Atmel-ICE and JLink-EDU adapters.
I log of the chip-erase command is at:
https://pastebin.com/3SFZXRpj <https://pastebin.com/3SFZXRpj>
I also have a log of what Atmel Studio does to successfully erase the chip:
https://pastebin.com/5m1WSKmh <https://pastebin.com/5m1WSKmh>
Any help would be much appreciated. TIA
William Hanna
HW Engineer
w: dbe.ca <http://dbe.ca/>
p: (902) 702 8716 ext:2
e: ***@dbe.ca
The command:'at91samd chip-eraseâ says it will erase the device when security enabled. However when the security is set openocd doesnât appear to be able to run the âinitâ command on the device successfully.
According to the data sheet (ATSAMDA1 section 14.6.2 & timing diagram Figure 14-2) the CPU Reset extension must be used before chip-erase.
I have tried using Atmel-ICE and JLink-EDU adapters.
I log of the chip-erase command is at:
https://pastebin.com/3SFZXRpj <https://pastebin.com/3SFZXRpj>
I also have a log of what Atmel Studio does to successfully erase the chip:
https://pastebin.com/5m1WSKmh <https://pastebin.com/5m1WSKmh>
Any help would be much appreciated. TIA
William Hanna
HW Engineer
w: dbe.ca <http://dbe.ca/>
p: (902) 702 8716 ext:2
e: ***@dbe.ca