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.

Unable to exit from LPM

Other Parts Discussed in Thread: CC430F5137

I have a simple program running on a CC430f5137 that was designed to exit from LPM3 after 10 seconds. This is the code simplified:

void main(void)
{
  initCore();          // init CC430 core
  PJDIR |= BIT1;  // output pin to control LED
  startRTC(10);    // generate ISR after 10 seconds
   PJOUT |= BIT1;  // LED ON
  __bis_SR_register(LPM3_bits + GIE); // Enter LPM3 with interrupts
   PJOUT |= BIT1;  // LED ON - This instruction is never called
}
__attribute__((interrupt(RTC_VECTOR)))
void rtcISR(void)
{
  __bic_SR_register(LPM3_bits); // clears the bits corresponding to LPM3 and exits the low power mode

  PJOUT &= ~BIT1;  // LED OFF - This instruction is correctly executed after 10 seconds

}

The issue is that, even if the RTC ISR is called after 10 seconds, the MCU seems to never exit from LPM3. I've tried with other LPM modes with the same result. On the other hand, I remember having tested this feature with good results in the past so this has to be a simple detail.
thanks in advance for your ideas.

**Attention** This is a public forum