When I try to implement hibernation into my code, I my code gets stuck in a loop. The problem happening immediately in my hibernation initialization code after I call:
HibernateEnableExpClk(SysCtlClockGet()); //clock is running at 80MHz
If I step through my code, I find that my Write Complete (WRC) bit in the hibernate control register never gets set, causing my code to get forever stuck here:
//*****************************************************************************
static void
_HibernateWriteComplete(void)
{
//
// Spin until the write complete bit is set.
//
while(!(HWREG(HIB_CTL) & HIB_CTL_WRC))
{
}
}
//*****************************************************************************
I am hoping to get some debugging help concerning the hibernate write incompletion.