I semi bricked the Bangle2 #5161
Replies: 1 comment
-
Posted at 2022-08-30 by @fanoush
not sure there is a way out of box but you could make custom build that ignores .bootrst file, then delete the file, then flash normal build, if you have linux it is not that hard to checkout Espruino from github and rebuild from source. You just change this line https://github.com/espruino/Espruino/blob/2e0502cbb721c72fcae6807ac85edd9900b60a40/src/jsflash.c#L21 to something else. Maybe even binary patching the bin from existing zip would work if you recreate the zip via nrfutil again. The nrfutil line for building the package is
so you could unpack the bin, patch the string inside and replace the Well, actually it was quicker to do it than to describe it, attached is the zip that searches for something else instead of .bootrst (replaced Attachments: Posted at 2022-08-30 by @fanoush Ah, OK, too late, nevermind :-) Posted at 2022-08-30 by @enaon thank you very much, really appreciate it, I was playing to find a nice way to have dualboot, and I messed it up. I did have the "C:.bootrst" as a fail safe, maybe the C: is ignored on the bangle? Posted at 2022-08-31 by @fanoush
If you see C: being part of filename in Storage.list() then the feature is disabled and And yes, looks like it was disabled in this commit espruino/Espruino@919e3bc Posted at 2022-09-05 by @enaon thanks, the C: is not visible, the file is named ./bootrst as normal in storage, yet it seems disabled indeed, all go to external flash. (I did it again, using your image now :) ) Posted at 2022-09-05 by @gfwilliams Glad you got it sorted!
Argh - yes, while I make sure |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2022-08-30 by @enaon
Hi, I did something stupid, I have a .bootrst file that disables BT on startup, so the "hold the button" failsafe is not working, I am locked out.
Is there a way to erase flash storage using dfu upload?
solved I took the flash pages down to 20, flashed the image, it caused a storage erase due to corruption, victory :)
Beta Was this translation helpful? Give feedback.
All reactions