Thanks for your help. How much mem will eval use ? I think i allocate some spare space ?
var evalneed='How much is needed for eval ?';
if (x===undefined) { throw new Error("Not enough RAM for .bootcde"); }
else {
evalneed=''; // Required for eval
// Ugly hack !
eval('var x = E.toString(ST.read(".bootcde")); ST.eraseAll(); ST.write(".bootcde",x); console.log("survived");');
// Here i do a reset via my custom watchdog function.
}
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.
Hi Gordon
Thanks for your help. How much mem will eval use ? I think i allocate some spare space ?