How can I check correct operation of my code using the watchdog from within Keil.
I can step everything through to the NMI handler, but when it gets to the end of the routine it executes the software reset
SetWord16(SYS_CTRL_REG, (GetWord16(SYS_CTRL_REG) & ~REMAP_ADR0) | SW_RESET );
and then it reports that it cannot start the core. I assume that the software reset has occurred but I have no way of getting control back without disconnecting the development board.
If I try to run the program outside the debugger (by stopping the debugger before it gets to this point) it still doesn't reset correctly.
So how do I get to run my program with WDOG enabled to reset the device and check its working ok without burning the OTP. Is it possible?
I'm running beacon3.40.6 as a basis.
Is it straightforward to use the WDOG to force a device reset?