cancel
Showing results for 
Search instead for 
Did you mean: 

How can the MP1 M4 Core be woken up by an LPTimer in STOP mode?

DHöni.1
Associate

I have built a test program from the two examples PWR_STOP_CoPro and LPTIM_PulseCounter. With the LPTIM_PulseCounter I changed the CounterSource to LPTIM_COUNTERSOURCE_INTERNAL and adjusted the priority HAL_NVIC_SetPriority (LPTIM2_IRQn, 0, 0);

Both programs run as expected only when I start the timer HAL_LPTIM_TimeOut_Start_IT (& hlptim2, 0xFFFF, 0x7000) and then go to STOP Mode HAL_PWR_EnterSTOPMode (PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI); the M4 core does not wake up by the LP Timer interrupt, but an EXTI interrupt lets it wake up.

Can someone tell me what I might have overlooked?

2 REPLIES 2
Olivier GALLIEN
ST Employee

Hi @Dirk Höning​ ,

As per stipulated in Ref man and in wiki Coprocessor power management - stm32mpu wakeup can only be done with EXTI.

EXTI mapped to the LPTIM instance is defined in Linux Device Tree.

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
DHöni.1
Associate

Hi Olivier,

thanks for the reply. It is hard for us to figure out how to map the LPTIM to the EXTI events in the Device-Tree. Could you provide an example for this configuration?

Best regards

Dirk