when I run the erase I get this
That's expected.
to uplaod the new code on FLASH , right?
You don't need to, no. Just use the code I posted above.
Read http://www.espruino.com/Saving
run "require("Storage").eraseAll()" anyway before uplaod the code?
No - that was just because you were getting some strange errors and it ensures that everything is cleared out 'just in case'.
@Gordon started
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.
That's expected.
You don't need to, no. Just use the code I posted above.
Read http://www.espruino.com/Saving
No - that was just because you were getting some strange errors and it ensures that everything is cleared out 'just in case'.