0
\$\begingroup\$

I'm using Mbed coding on STM32L432KC nucleo board. I'm copying the code from the STM32 cube code examples to put my MCU in shutdown. See here.

The code compiles fine. I just added an LED blink inside the while (1) loop after the shutdown command to see if the MCU has wakeup up but it never blinks.

Any idea what I'm doing wrong?

Electric_90
2,1621 gold badge15 silver badges26 bronze badges
asked Feb 13, 2019 at 9:55
\$\endgroup\$
1
  • 1
    \$\begingroup\$ You should simplify the code which reproduces the issue to a bare minimum, then post it in your question. There's a high chance you'll find the issue yourself in the process. \$\endgroup\$ Commented Feb 13, 2019 at 12:18

1 Answer 1

1
\$\begingroup\$

Mbed OS 5.11 (latest release) will automatically put the MCU in deep sleep for you, no need to use the STM32 Cube examples. See the power management docs. You probably want to enable tickless mode as well, by adding MBED_TICKLESS=1 to the macros section of mbed_app.json.

If you need standby (no register retaining) mode, see https://github.com/janjongboom/stm32-standby-rtc-wakeup

answered Feb 13, 2019 at 16:17
\$\endgroup\$

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.