-
if it's code saved to flash then we might have to try and send some commands to clear out the external flash
I now see you removed also the https://github.com/espruino/Espruino/blob/master/boards/BANGLEJS2.py#L171 SPIFLASH definition from NOFLASH build. Not sure it can break anything but in my experience with other watches it is harmless to keep it in and it is enough to just not use it in
saved_code
like you do here https://github.com/espruino/Espruino/blob/master/boards/BANGLEJS2_NOFLASH.py#L102The advantage when keeping SPIFLASH definition there is that while it is not available for
require('Storage")
you can still access it viarequire("Flash")
so in this case one could read/write/erase it a bit more easily.
Do you have any idea what might have caused this? Did it 'just happen' one day, or were you developing with it?
Holding the button should really have allowed you to boot to the Bangle logo and reconnect (unless you'd uploaded code that 'runs on reboot' - but that's hard to set up and there are warnings in the IDE).
You could try installing the attached firmware - it'll use internal flash for Bangle.js rather than external, so might work ok. It'd help narrow down what the issue is - if it's code saved to flash then we might have to try and send some commands to clear out the external flash.
1 Attachment