I've had some problems with saved code after reflashing.
Fixed it with flashing last page of saved area with an empty.bin.
As far as I can see, there are 2 parts of saved data.
First part gives an error message if data is corrupted, but 2nd part does not test this and crashes at least on ESP32.
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've had some problems with saved code after reflashing.
Fixed it with flashing last page of saved area with an empty.bin.
As far as I can see, there are 2 parts of saved data.
First part gives an error message if data is corrupted, but 2nd part does not test this and crashes at least on ESP32.