Associate III
November 22, 2021
Question
Wake from standby not working. STM32H743IIT6
- November 22, 2021
- 2 replies
- 1143 views
I have a custom board with an led on PD7 and Normally High push button on PI11. There is also a pushbutton set up on NRST. Device is a STM32H743IIT6
I can get the processor to go into standby okay. This is confirmed by the __HAL_PWR_GET_FLAG(PWR_FLAG_SB) == SET being false if I repower the circuit but true if I push the NRST button. So far so good.
I can not get the processor to wake on the PI11 PWR_WAKEUP_PIN4.
HAL_PWR_DisableWakeUpPin(PWR_WAKEUP_PIN4);
/* Clear all related wakeup flags */
HAL_PWREx_ClearWakeupFlag(PWR_WAKEUP_PIN4);
PWREx_WakeupPinTypeDef sPinParams;
sPinParams.WakeUpPin = PWR_WAKEUP_PIN4;
sPinParams.PinPolarity = PWR_PIN_POLARITY_LOW;
sPinParams.PinPull = PWR_PIN_NO_PULL;
HAL_PWREx_EnableWakeUpPin(&sPinParams);
/* Enter the Standby mode */
HAL_PWR_EnterSTANDBYMode();I've tried rising edge too but no luck. Is there some other piece of configuration I'm missing, like enabling a clock or power domain or something?
I've attached a zip of my entire cube IDE project.