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.
2019-02-13 06: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.
2019-02-13 02:37 AM
Hello Maryam,
Are you using the GPIOA_PIN_0 as wake-up pin ?
Best Regards,
Mohamed Aymen.
2019-02-13 04: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.
2019-02-13 04:50 AM
Hi, Yes I connect pin A0 to 3.3v to trigger the wakeup
2019-02-13 06: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.
2019-04-04 08: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?
2019-04-04 10:26 AM
Look at the reference manager PWR_CR registers. The answer is either.