DeepSleep bricks XIAO_MG24

OK, I tried it, using the usual cable that connects the PC to the MG24, but it didn’t unbrick my MG24. It wasn’t a sleep problem. The program that bricked the MG24 that runs immediately when it is powered up screws up the clocks. Oh well…

Unless you have used an old library there should still be the “escape hatch” option available on D0.
Hold it low when resetting (or powering) and the app should not run. You can then re-flash.

If that fails, try the reset-recovery script… It should be in this post or the wiki.

What OS are you using?

I have a big problem: following the ‘Getting Started’ page i reached the point regarding the bricking problem by the deep sleep.
My problem is that nothing is working on recovering the device; i’ve tried with the PC0 pulled LOW and adding the code to detect a user switch and enter an infinite loop (DOESN’T WORK); i’ve tried running the zip file ‘flash erase.bat’ (DOESN’T WORK, giving me ‘Error: No flash at address 0x08180000’).
Now if i try to run any code on the Arduino IDE, even a simple blink, i receive this error message: 'Error: [efm32s2.cpu] clearing lockup after double fault
'.
Any idea on a possible solution?

Please try using D1 instead of D0.

Hello, is there also a way to unbrick on Ubuntu? I don’t have Mac or Windows.

Hi there,

and Welcome here…

So the hardware jumper fix is SYSTEM agnostic :grin: :+1:
check out the posts on it, only takes the sequence and a few seconds.

HTH
GL :slight_smile: PJ :v:

Please note that the pin has been changed from D0 to D1 in BSP3.0.0.

Changelog:
Changed the deep sleep escape pin on the XIAO MG24 to PC1 (D1)

3 Likes

Same issue here, No flash at address 0x08180000’ and I cannot recover the device, can we get a more detailed explanation how to fix this issue? I ordered second chip thinking that I broke the first one but it seems it’s deepSleep issue. I’m using Simplicity Studio and pyocd for flashing

1 Like

Hi Dasp,

Posts #8 and #27 may be helpful. If you set PC1 to LOW and reset, the MG23 should enter upload mode.

1 Like

Thanks, I figured it out. Because I erased the chip I needed to upload new bootloader for everything to work again. Cheers

1 Like

The jumper fix is. However, the recovery scripts provided on the wiki only provides zip-archives and how-tos for Windows and Mac