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.

TM4C123GH6PM: Hibernate setup hangs.

Part Number: TM4C123GH6PM


Hi,

I have an custom board where i was using RTC to store some timer required for  my application purpose.

my  Init code consists of :

ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_HIBERNATE);

while(!SysCtlPeripheralReady(SYSCTL_PERIPH_HIBERNATE))
{
}
/*** Enable the Hibernate module and RTC ***/

if(!HibernateIsActive()){

HibernateEnableExpClk(ROM_SysCtlClockGet());

HibernateGPIORetentionEnable();

HibernateClockConfig(HIBERNATE_OSC_LOWDRIVE);

msleep(100);

HibernateRTCEnable();
}

This code was working fine for many days, now when i call "HibernateEnableExpClk" it will be in a loop for write complete 

I have tested with other copy of my custom board, this occurs in random devices, after few days if i dosen't power the same device, this setup starts to work fine.

I have gone through many example codes, but was not able to get what is causing this  problem

Regards,

Chiranth H D

  • Hello Chiranth,

    Is the hanging occurring on HWREG(HIB_CTL) |= HIB_CTL_CLK32EN;?

    If so, many times I have seen on this forum that the root cause for that issue lays in hardware with the crystal itself. In that case I would like to know the following:

    • Have you verified the schematic/layout for the crystal? (Guidelines: http://www.ti.com/lit/an/spma056/spma056.pdf)
    • Have to measured the crystal to ensure it is outputting the desired frequency?
    • Can you compare the crystal output of a working board vs failing board and see if there are any differences in the crystal output?