Skip to main content
Associate II
October 29, 2024
Solved

Wake up MCU from STOP2 mode

  • October 29, 2024
  • 2 replies
  • 1051 views

Hello

We are working on a product using the STM32WLE5JC MCU. The features a magnetic switch that generates interrupts (specifically a low to high transition) which is meant to wake up the MCU from STOP2 mode. What is the ideal way to do this? We have few free GPIO pins. Could we use any GPIO with an external interrupt or does the switch need to be connected to dedicated wakeup pin? 

Best answer by STTwo-32

Hello @helixembedded 

As said @Andrew Neil, you can use the GPIO to wake up the MCU from stop 2 mode. You just have to configure it since it is not a default configuration. If you are using the wireless part of the SMT32WL, the Low power mode settings (set and exit) will be implemented throw the Low Power Manager (LPM) software.

Best Regards.

STTwo-32

 

2 replies

Andrew Neil
Super User
October 29, 2024

Looks like GPIO should be able to do it:

AndrewNeil_0-1730197614070.png

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
STTwo-32
STTwo-32Best answer
Technical Moderator
October 30, 2024

Hello @helixembedded 

As said @Andrew Neil, you can use the GPIO to wake up the MCU from stop 2 mode. You just have to configure it since it is not a default configuration. If you are using the wireless part of the SMT32WL, the Low power mode settings (set and exit) will be implemented throw the Low Power Manager (LPM) software.

Best Regards.

STTwo-32