Hi.. Have a D21G with IndIO in the process of working on the guy I managed to wipe the bootloader out
and I can't seem to load it back on... Using an Atmel ICE to burn the bootloader to it in the Arduino IDE don't
work.. They connect, upload and verify corectly but when you reset the Industruino it ends up in a boot loop
the bootloader loads and the backlight starts at full brightness and begins to fade... then about halfway through the fade
it resets and starts all over again...
I've tried recompiling the bootloader to make sure the .bin file included was correct (it was) and I've tried uploading the bootloader
from within the Arduino IDE and on the command line... all leading to this reset boot loop.
Hi, i think it's rather unlikely you wiped off the bootloader when uploading sketches from the Arduino IDE. We have seen units becoming unresponsive due to upload procedures gone wrong, but this can always be solved by pressing the RST button on the topboard TWICE, as is standard on the Arduino M0 boards. When you do this, the bootloader is activated and the LCD fades in/out continuously, and you should see the serial port in the IDE, ready to receive an upload.
Can you try the above. If it does not work, can you confirm how you are trying the upload the bootloader, via the JTAG connector on the D21G topboard?
I've been fiddling with the thing all day now and I think I'm narrowing it down.
Handy thing is I have 2 D21G based Industruino's 1 working and 1 not. First things I did was to flash the bootloader
using the Arduino IDE, which connects, erases, writes and verifies fine.. and indeed I manually dumped the first 0x4000
of memory and it does indeed match the source .bin file. dumped the working one too and diffed the files.. they're identical.
It's actually been quite valuable to slowly learn how to use openocd on the command line as I can't use bossac because of
the reboot loop. The doubletap on the reset switch leads to some of the bootloader functioning (USB VID and PID get set, Serial number does not) the fade animation starts and after about 2 seconds it resets.
Although today as I tried it(doubletap reset) I got a slow fade that ran for about 2 seconds then the backlight would turn off. openocd
shows the CPU as halted with a double fault exception and the PC was 0xFFFFFFFE..
Thats about as far as I got.. I think I've managed to eliminate flash corruption as one possible cause..
I'll continue working on this.. Any suggestions?
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!