Go Down

Topic: M0 Pro cannot be programmed -- bricked? (Read 692 times) previous topic - next topic

bengtmartensson

My M0 Pro (with arduino.cc boatloader) suddenly cannot be programmed any more. Trying to upload the Blink sketch via the programming port gives
Code: [Select]

Open On-Chip Debugger 0.10.0+dev-gf0767a31 (2018-06-11-13:40)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
debug_level: 2
Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.
none separate
adapter speed: 400 kHz
cortex_m reset_config sysresetreq
Info : CMSIS-DAP: SWD  Supported
Info : CMSIS-DAP: JTAG Supported
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : CMSIS-DAP: FW Version = 01.1F.0118
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : clock speed 400 kHz
Info : SWD DPIDR 0x0bc11477
Info : at91samd21g18.cpu: hardware has 4 breakpoints, 2 watchpoints
Error: at91samd21g18.cpu -- clearing lockup after double fault
Polling target at91samd21g18.cpu failed, trying to reexamine
Info : at91samd21g18.cpu: hardware has 4 breakpoints, 2 watchpoints
Info : Listening on port 3333 for gdb connections
target halted due to debug-request, current mode: Thread
xPSR: 0xa1000000 pc: 0x00010100 msp: 0x464c457c
** Programming Started **
auto erase enabled
Info : SAMD MCU: SAMD21G18A (256KB Flash, 32KB RAM)
wrote 11776 bytes from file /tmp/arduino_build_713915/Blink.ino.bin in 1.243069s (9.251 KiB/s)
** Programming Finished **
** Verify Started **
verified 11704 bytes in 0.983918s (11.617 KiB/s)
** Verified OK **
** Resetting Target **
Error: at91samd21g18.cpu -- clearing lockup after double fault
target halted due to debug-request, current mode: Handler HardFault
xPSR: 0x00000003 pc: 0xfffffffe msp: 0x464c4558
shutdown command invoked

and no program runs. Trying to upload with programmer (Atmel EDBX) give similar error messages. Bricked? Any advice?

Possibly related is that the native port appears absolute dead: it does not show up on lsusb (using Linux); also on Windows absolute nothing (not even "unknown device") is recognized in the device manager.

Using Arduino 1.8.11 on Linux (Fedora 31)


bengtmartensson

FWIW, as a wild dry, I "burned" the bootloader again, using the Atmel EDBX built-in debugger.

And voila, it worked!! Even the native port.

Go Up