I want to use the STANDBY mode in Power Management in the Nucleo-L432KC.
Now I am reading that in the STM32 Power Management is implemented.
What is the best way to get this working for the L432KC? I see that
in arch
there are some power routines implemented. The standby register settings
"look" ok.
Say I want to trigger (event when power fails and "line" is pulled
down) it
sets the Nucleo in "STANDBY" so my RTC is still "OK". And the coin
battery
(CR2032) kicks in...
Then I want it to get back "ALIVE" again when I put a rising edge on
WKUP1
(PA0) event...
How could I best tackle this?
Use the NuttX PM (Power Management) subsystem. Search through the
boards defconfig files for CONFIG_PM for some very simple examples.
There is no real documentation (only this
http://www.nuttx.org/doku.php?id=documentation:pmreport). More real
world usage is more complex. I don't believe that there is any
defconfig for the STM32L4 family so that will be an interesting challenge
There might be something useful to you in this post:
https://groups.google.com/forum/#!searchin/nuttx/power$20management|sort:date/nuttx/1q7jIsrRW5I/wOhaPYDwAAAJ