cancel
Showing results for 
Search instead for 
Did you mean: 

Detecting wakeup source of STM32MP151

AShar.10
Associate III

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 1

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.