AnsweredAssumed Answered

Inability to enter hibernate on BF504F

Question asked by boxeur on Feb 14, 2014
Latest reply on Feb 25, 2014 by boxeur

Hi,

 

I'm using this code (borrowed from the offical docs) to enter hibernate:

 

void PLL_hibernate(void)
{
          ADI_SYSCTRL_VALUES hibernate;
          hibernate.uwVrCtl = 
              WAKE_EN0 |                    /* PH0 Wake-Up Enable */
              WAKE_EN1 |                    /* PF8 Wake-Up Enable */
              WAKE_EN2 |                    /* PF9 Wake-Up Enable */
              CANWE |                    /* CAN Rx Wake-Up Enable */
              HIBERNATE;
      bfrom_SysControl(SYSCTRL_WRITE | SYSCTRL_VRCTL | SYSCTRL_EXTVOLTAGE, &hibernate, NULL);
}

 

I've added a call to PLL_hibernate() to the very beginning of main() but it continues to run. Using JTAG emulator I'm able to step through it just fine even though the core should have been turned off right after calling bfrom_SysControl(). I think the other sleep modes do not work correctly either, at least I wasn't able to see any difference in the board power consumption.

 

I must be missing something obvisous here, but what is it?

Outcomes