cancel
Showing results for 
Search instead for 
Did you mean: 

STOP mode 2

AVagh
Associate II

Dear All,

I have some problem with the STOP mode 2, doesn't work! In my program I use the following periphals:

  • I2C
  • SAI
  • LPUART
  • UART2

My microcalculator is the STM32L4R5ZIT, and I use the nucleo EVAL board.

To go in the STOP mode 2 I use the following command:

  • HAL_PWREx_EnterSTOP2Mode(PWR_STOPENTRY_WFE)

But doesn't work, I have tryed also with PWR_STOPENTRY_WFI, but same things.

I have checked if there are a pending interrupt with the code

 for(int i = -14;i<94;i++)
 {
    pendingInt[n] = HAL_NVIC_GetPendingIRQ(i);
    n++;
 }

Only these are marked as pending:

 NonMaskableInt_IRQn        = -14,   
 HardFault_IRQn             = -13,   
 MemoryManagement_IRQn      = -12,   
 BusFault_IRQn              = -11,   
 UsageFault_IRQn            = -10,   
 SVCall_IRQn                = -5,    
 DebugMonitor_IRQn          = -4,   
 PendSV_IRQn                = -2,    
 SysTick_IRQn               = -1,   

Instead, the standby mode work correctly.

I have tryed also the example of PWR for the nucleo, but doesn't work, the LED still blinking. Instead, if I use the standby mode the LED doesn't BLINK. Therefore this mode works correctly.

Have you any idea about the problem?

Thank youv ery much for your time and help.

Best regards

Alessandro

0 REPLIES 0