Hi all,
In my code i put the chip to sleep mode 2 and uses sleep timer to wake up from the sleep. But immediately on going to sleep the debugging stops and I am not able to debug further. So is there any other way to check for Sleep Timer ISR in debugging mode?
Thanks&Regards
Jithesh
Hi,
A good way to do it is by altering a state of some output pin,
output levels are preserved in different PMs, then you can
observe the behavior of the output by probing with oscope.
Br,
Igor
One solution is change the sleep mode to PM1 so that the debugger will not be loosing control over the chip.
Another solution is dont let SOFT_POWER_MODE bit in Debug Configuration Register to go low in your software.
Anyone please comment if my understanding is wrong.
Are there any flags that would let us automate this? Like#ifdef IAR_IS_IN_DEBUG_MODE BSP_Sleep(POWER_MODE_1);#else BSP_Sleep(POWER_MODE_3);#endif