NUCLEO-H723 Standby mode immediate exit on second and subsequent entry
Hello,
I am evaluating the STM32H723 with the NUCLEO-H723ZG board and I need to use the standby mode with GPIO wake-up.
On the board, I have added a 10k pull-down resistor between pin PA0 (connector CN10 pin 29) and GND. I also have wire that I use to touch PA0 with 3V3.
On the firmware, I use the default project for the NUCLEO-H723ZG. Then, in MCC, I activate PWR Wake-Up 1.
In main.c, I add a simple function to put the MCU into standby mode that only accept the Wake-Up 1 event as the wake-up signal to reset the board. I also flash the yellow LED 10 times before calling the go to standby mode function as a visual indication.
The expected behavior would be that the yellow LED blinks 10 times then it goes dark. When I touch PA0 with the 3.3 V wire, the board should go back alive and blinks the yellow LED 10 times before going dark in standby mode again.
However, this is not what I am experiencing! On start up, the LED blinks 10 times then it goes into standby mode until I touch PA0. Then it restarts and the LED blinks but it doesn't go back into standby mode! It seems to reset immediately when going into standby mode the second and subsequent entry, even if I don't touch the PA0 pin with my 3.3 V wire.
I have to use the reset button or a power cycle to return to the standby mode without exiting immediately.
I guess there is something that is not properly reset when exiting the standby mode the first time but I can't get my hand on it so far...
I have attached the .ioc and the main.c files of the project.
Side note: I have tried the example with the RTC wakeup provide in STM32H7 cubeMX and it works as expected... I don't know why the GPIO pin wake-up doesn't work...
Thank you for your time helping me figure out this issue.
