I just fixed some problems in the latest build, but there still seems to some big problem with writing to flash while BLE is connected...
So even E.setBootCode('console.log("Hello")') (which doesn't involve a restart) will fail when there is a BLE connection, even if done via the serial console :( Not sure what's up...
edit: in fact it appears to be something related to the chip - merely erasing a page of flash memory (which works fine when BLE is not connected) causes the device to reset when it is. I've contacted Nordic and hopefully I'll be able to find out what's happening soon.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I just fixed some problems in the latest build, but there still seems to some big problem with writing to flash while BLE is connected...
So even
E.setBootCode('console.log("Hello")')
(which doesn't involve a restart) will fail when there is a BLE connection, even if done via the serial console :( Not sure what's up...edit: in fact it appears to be something related to the chip - merely erasing a page of flash memory (which works fine when BLE is not connected) causes the device to reset when it is. I've contacted Nordic and hopefully I'll be able to find out what's happening soon.