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?
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.
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
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.