SAMD21G18A has some unusual behaviour which sometimes change fuse setting by unknown timing. The "unusual state" seems to be triggered by some unusual program and as a result, programming port for Arduino IDE disappear. (In the case of Atmel Studio, connection is through JTAG and we don't have any problem.) Here I would like to explain how to recover "no USB" situation by using Atmel ICE.
(Step 1) connect your Atmel ICE to your computer connect JTAG to ULTRA Zero XX. series and launch Atmel Studio and select "device programming"
(Step 2) In the device programming window, Select device as "ATSAMD21G18A" and click Apply and set SWD 2MHz (default value).
The first lots of lines shows "as a result" data, which shows MCU's calibration datas. These datas cannot be changed. The last around ten lines are editable datas.
I confirmed "it looks like completely broken board" change WDT_ENABLE and WDT_ALWAYSON are both checked. THESE SHOULD NOT BE ON and should be deselected as above picture.
It seems, this is a perfect solution for "unusual situation"....
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.