Tool/software:
I am attempting to implement a 10-second hibernation period in my code, after which the system should reset. However, while the system successfully enters hibernation, it does not perform the subsequent reset as intended.
void setupHibernateWakeup(void) {
PRCMHibernateWakeupSourceEnable(PRCM_HIB_SLOW_CLK_CTR);
PRCMHibernateIntervalSet(327680ULL);
}
void enterHibernateMode(void){
setupHibernateWakeup();
PRCMHibernateEnter();
}
void mainThread(void *pvParameters)
{
Power_disablePolicy();
LteModemPowerON();
setupLTEConnection();
configMQTT();
connectToMQTTBroker();
MQTTpublish("Hibernate mode...");
Power_enablePolicy();
enterHibernateMode();
}
In the above example, I expect the code to reset again after waking up from hibernate mode.
Moreover, power_management example for cc3230sf example does not use the API's that I am using and it gets confusing to follow.
Any help in this regard will be much appreciated.
Thanks