Oh, maybe that will work too when there is original espruino bootloader which clears it before jumping into Espruino?
Otherwise when BTN1 is held at startup time the code is skipped except the code marked as "flash always", that one still runs even with button held. This was confimed by some unlucky guys and is also described here https://www.espruino.com/Saving - Boot Process - holding button is exactly like running reset() (sets hasBeenReset) so .bootrst still runs.
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.
Oh, maybe that will work too when there is original espruino bootloader which clears it before jumping into Espruino?
Otherwise when BTN1 is held at startup time the code is skipped except the code marked as "flash always", that one still runs even with button held. This was confimed by some unlucky guys and is also described here https://www.espruino.com/Saving - Boot Process - holding button is exactly like running reset() (sets
hasBeenReset
) so .bootrst still runs.