STM32F469 Disco How to use wakeup button

An area to discuss ARM specific problems and examples

Moderator: Benj

Post Reply
stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

STM32F469 Disco How to use wakeup button

Post by stefan.erni »

I have a STM32F469 Board
On this Board is a wakeup button. How can I use this function and button? How let I sleep a STM32FXX?
Wakeup.PNG
(15.64 KiB) Downloaded 4205 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: STM32F469 Disco How to use wakeup button

Post by Benj »

Hello,

You can try this C to enter sleep mode.

Code: Select all

/* Request to enter SLEEP mode */
 __WFI();
Apparently any enabled interrupt can be used to wake from sleep.

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: STM32F469 Disco How to use wakeup button

Post by stefan.erni »

My Board dont like to sleep....
I used the command and no error but no sleep from the board

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: STM32F469 Disco How to use wakeup button

Post by Benj »

Hello,

I took the line of code from this page. There is a lot more code there but nothing that is jumping out at me.
https://community.st.com/thread/34217-w ... sleep-mode

Leigh or Sean may be able to offer more solutions.

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: STM32F469 Disco How to use wakeup button

Post by stefan.erni »

Hi Ben
With the help of LeighM I have done nice webinterface. But now I have to make a few powersave functions.
with the microchip cpu that was easy.....
I need to bring this board to sleep. And I would also like to change the clock during the run.
Also the touchscreen must save energy, but this starts to flicker when I play with the system clock. Is there a command to turn off the background lighting?

Post Reply