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?
STM32F469 Disco How to use wakeup button
Moderator: Benj
-
- Valued Contributor
- Posts: 654
- Joined: Fri Aug 19, 2016 2:09 pm
- Location: switzerland
- Has thanked: 182 times
- Been thanked: 179 times
- Contact:
- 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
Hello,
You can try this C to enter sleep mode.
Apparently any enabled interrupt can be used to wake from sleep.
You can try this C to enter sleep mode.
Code: Select all
/* Request to enter SLEEP mode */
__WFI();
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- 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
My Board dont like to sleep....
I used the command and no error but no sleep from the board
I used the command and no error but no sleep from the board
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- 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
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?
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?