Stm32L4 doesn't wakeup from shutdown
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-02-13 12:41 AM
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 [https://github.com/Rayling35/STM32Cube_FW_L4_V1.12.0/blob/master/Projects/NUCLEO-L432KC/Examples/PWR/PWR_SHUTDOWN/Src/main.c]
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?
Solved! Go to Solution.
- Labels:
-
Mbed
-
Power
-
STM32CubeMX
-
STM32L4 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-02-13 6:45 AM
Hello Maryam,
It works properly on my side.
Wake-up from shutdown mode using external RESET or WKUP pin generate a system RESET, in this case the while(1) loop will never be reached.
You can Blink LED before going into shutdown mode. After each wake-up, you can see that the LED is blinking properly.
Best Regards,
Mohamed Aymen.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-02-13 2:37 AM
Hello Maryam,
Are you using the GPIOA_PIN_0 as wake-up pin ?
Best Regards,
Mohamed Aymen.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-02-13 4:09 AM
Perhaps you should read how shutdown and standby work. They never return to the point of "hibernation", rather exit from these modes triggers a reset.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-02-13 4:50 AM
Hi, Yes I connect pin A0 to 3.3v to trigger the wakeup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-02-13 6:45 AM
Hello Maryam,
It works properly on my side.
Wake-up from shutdown mode using external RESET or WKUP pin generate a system RESET, in this case the while(1) loop will never be reached.
You can Blink LED before going into shutdown mode. After each wake-up, you can see that the LED is blinking properly.
Best Regards,
Mohamed Aymen.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-04 8:02 AM
Do this Wakeup Pins accept Pull Down Only (Wakeup with HIGH Level) or can it be configured to Wakeup with a LOW Level as well?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-04 10:26 AM
Look at the reference manager PWR_CR registers. The answer is either.
