Hello,
Met interesting problem during debugging software. I'm trying to use hibernate module also as RTC.
I use Tiva launchpad TM4C123G and IAR
struct tm *current_time; time_t rawtime; ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_HIBERNATE); HibernateRTCSet(0); HibernateRTCEnable(); current_time->tm_hour = 20; current_time->tm_min = 10; current_time->tm_sec = 0; LED_ON(); // indicate time(&rawtime); // here's controller becomes frozen in free run mode LED_OFF(); // indicate successful time() execution current_time = localtime(&rawtime); UARTprintf("\n Seconds %i", current_time->tm_sec);
This code works well if I use it in debug mode. But in normal work microcontroller becomes frozen with LED turned ON.
Any suggestions are appreciated