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, powered by microcosm.
Report a problem