Skip to main content
Visitor II
October 28, 2025
Question

Detecting wakeup source of STM32MP151

  • October 28, 2025
  • 1 reply
  • 139 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

    This topic has been closed for replies.

    1 reply

    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.