Skip to main content
DHöni.1
Associate
January 11, 2022
Question

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

  • January 11, 2022
  • 2 replies
  • 914 views

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?

This topic has been closed for replies.

2 replies

Olivier GALLIEN
ST Technical Moderator
January 14, 2022

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

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
DHöni.1Author
Associate
January 21, 2022

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