This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C123 Hibernation

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.