• after it happens you can read the reset reason if it was watchdog reboot=lockup or something else

    peek32(0x40000000+0x400).toString(16)

    just beware that the register is cumulative and is not easy to clear from js - poke32 to RESETREAS probably reboots with softdevice enabled

    but anyway in ideal situation you should never have watchdog reboot bit enabled so if it is 1 now something is/was wrong (?)

    EDIT: while poke32(0x40000000+0x400,0xffffffff) will probably reboot it may still get the write done and clear the flags

About

Avatar for fanoush @fanoush started