@maze1980, it is very difficult to respond to conversations with such titles and with no details / context of the code and even less of the hardware...
Main issue with most platforms - and especially non-Espruino boards - is that it matters what the setup is and happened before you issue save(), for example: is there level 0 code that creates things other than code objects... It is always good practice to have nothing set - such as pin modes - or activated - such as timeouts, intervals, connects, etc - except in onInit().
A tanking - rebooting -ESP866 has usually two root causes:
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.
@maze1980, it is very difficult to respond to conversations with such titles and with no details / context of the code and even less of the hardware...
Main issue with most platforms - and especially non-Espruino boards - is that it matters what the setup is and happened before you issue save(), for example: is there level 0 code that creates things other than code objects... It is always good practice to have nothing set - such as pin modes - or activated - such as timeouts, intervals, connects, etc - except in onInit().
A tanking - rebooting -ESP866 has usually two root causes: