long code loops can cause this if you have watchdog set to manual mode on first lines, that watchdog is there on purpose but you can skip it if you wish or set it as automatic. watchdog is kicked from setinterval if button is not held so if that interval is not running it will reboot. also invalid memory access may cause reboot like e.g. wrong poke or peek command.
also when you upload new code (= you delete the watchdog kicking setinterval) it will reboot as watchdog cannot be disabled
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.
long code loops can cause this if you have watchdog set to manual mode on first lines, that watchdog is there on purpose but you can skip it if you wish or set it as automatic. watchdog is kicked from setinterval if button is not held so if that interval is not running it will reboot. also invalid memory access may cause reboot like e.g. wrong poke or peek command.
also when you upload new code (= you delete the watchdog kicking setinterval) it will reboot as watchdog cannot be disabled