RAK4260 bricked

Was working with the RAK4260 breakout board for the past week. Programming it via ATMEL ICE in Atmel Studio.

While working, i tried to upload a different .elf file from one of the platform io ports. After this, my chip does not respond.

I can no longer read my Device Signature in Atmel studio. It reads the target voltage, but not the device It seems i have bricked the chip, and there is no way to erase the chip again. Kindly help.

I have tried with another 4260 module, and it works.


2020-11-15 20_19_09-Atmel-ICE (J42700010852) - Device Programming|635x500


I am afraid that if the device is no longer responding on the SWD interface it is bricked beyond repair.

okay… that’s bad!
any precautions to be taken to avoid a repeat of this?

It may be worth a little more persistence, trying something like OpenOCD that may give more precise control, etc.

Often times with ARM MCU’s in general what a wrong firmware load does is re-purpose SWD pins as GPIO, or enter one of various security lock modes. Sometimes the right manipulation of the hardware reset in combination with SWD commands can let you trigger an erase or unlock flash or at least halt the CPU before it starts executing the bad code, and thus get things back to a clean state where you can connect and upload good code.

Of course double check wiring. You might also see if power supply current is reasonable, or if the device is heating up, as issues there could indicate a permanent failure.