Hello,
I am trying to wake up from hibernation with RTC match and wake up pin. The MSP432 can wake up with pin but not with RTC. Here the part of code that configures hibernation and to enter hibernation. I think I am forgetting some configuration line but I don't know which one.
__attribute__((optnone)) Public void CtrlHibernateInit(void) { /* Enable the the Hibernate module and wait for it to be ready */ SysCtlPeripheralEnable(SYSCTL_PERIPH_HIBERNATE); /* If first start up, enable hibernate * and RTC. */ if (HibernateIsActive() == FALSE) { HibernateEnableExpClk((uint32)CPU_FREQUENCY); HibernateWakeSet(HIBERNATE_WAKE_PIN | HIBERNATE_WAKE_RTC); HibernateRTCEnable(); HibernateCounterMode(HIBERNATE_COUNTER_RTC); HibernateRTCSet(0); } } __attribute__((optnone, noreturn)) Public void CtrlHibernateDoHibernate(void) { /* * Read and clear any status bits that might have been set since * last clearing them. */ uint32 hibIntStatus = HibernateIntStatus(FALSE); HibernateIntClear(hibIntStatus); // wake up each 30 seconds HibernateRTCMatchSet(0, HibernateRTCGet()+30); HibernateRequest(); for (;;) { /* Spin for a while for hibernate to activate. */ __NOP(); } }