2021-10-13 11:09 AM
Its possible to get a flag after standby mode?
The signal used to wake up the mcu will remain a lot or time, so I can read it before the waking up, so maybe changing the configurtaion of the pins to normal GPIO?
No idea how to solve it and I'm new in this kind of applications.
Solved! Go to Solution.
2021-10-13 12:51 PM
Read the status of the pins at startup using HAL_GPIO_ReadPin(GPIOA, GPIO_PIN_x). No need to reconfigure anything.
2021-10-13 12:19 PM
Waking signal is so short?, that you cant detect it after main start?
2021-10-13 12:22 PM
The waiking signal will be very long, around 10 seconds, but I can't find the way to read it. I know the MCU goes to standby and wakes without problem, but I can't find the command to read which pin was activated.
2021-10-13 12:32 PM
You only simple GPIO input read A0 an A2 use if startup flag is WU
2021-10-13 12:51 PM
Read the status of the pins at startup using HAL_GPIO_ReadPin(GPIOA, GPIO_PIN_x). No need to reconfigure anything.
2021-10-13 01:11 PM
Great, I was expecting something complex because I thought I can't use that pins as normal GPIOs, but now it works. Thank you very much
2021-10-13 01:12 PM
Works perfect, thank you vey much