Part Number:TM4C1294NCPDT
Fellows,
We started the mission of implementing power saving to our projects, by using different sleep modes.
Because the first attempt directly at our own code failed (FaultISR), we decided to use a TM4C1294 EK Launchpad, and imported the sleep_modes Tivaware example. First attempt there also failed: after toggling the power mode a couple of times, timer-driven led ceased to blink, and code was stuck at FaultISR.
Having read something about Sleep Mode versus Debugging, we decided to run the board again without having the JTAG debugger active - in which case the code runs properly.
Is that really the reason? Maybe worth mentioning that the TivaWare tested example used compiler 5.2.6 during its creation, while I am using TI v18.1.1.LTS.
If in fact SleepMode can't be used during debugging, is there any flag/register that can be checked to verify that debug is active, so that a conditional call to SysCtlSleep() can be applied?
Regards
Bruno