Skip to main content
AShar.10
Associate II
October 28, 2025
Question

Detecting wakeup source of STM32MP151

  • October 28, 2025
  • 1 reply
  • 140 views

Hello ST Community,

 

We are developing a product based on STM32MP151 which has 2 (WKUP) GPIOs connected to wake our battery-powered product from sleep or shutdown. Can somebody please let us know how we can detect which GPIO triggered the wakeup in linux userspace?

 

We have to execute specific functions in our C application based on which GPIO triggered wakeup of our STM32MP151 based product. We are using latest openstlinux distribution package and we are open to creating a kernel module if that's required, but need some basic guidance on where to look at.

 

Please note: We also use "rtcwake" to wakeup our product at regular intervals. Our product needs both GPIO and RTC wakeup sources.

 

Best Regards,

Ayush Sharma

1 reply

Jean-Christophe_TROTIN
ST Employee
December 4, 2025

Hi @AShar.10,

 

I could suggest that you have a look at the following article in the STM32 MPU wiki:

 

Hope this information helps.

 

Regards,

JC.

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.