STM32H7B3IIT6: Enter Standby Mode with PB11 and also Exit Standby Mode with PB11
Hello,
I am using the STM32H7B3IIT6 MCU to control a master control board, which has a push button connected to PB11 with the following hardware:
My objective for this is the following:
- When the system is running and I press this button, the MCU puts the entire system into standby (Sends stop signals to components, puts CAN and LCD display into standby, then puts the MCU into standby to minimize power consumption by the system's battery).
- When the system is off and I press this same button, the MCU resets to a new "run" of the firmware and turns everything back on again.
According to another forum post I made, any pin connected to an EXTI line can be used to do this, so I selected PB11. However, I'm looking through the reference manual and they just refer to "wakeup pins" and don't define what they are or how to configure them as wake-up pins.
Can anyone please explain to me how to do the following steps:
- Configure PB11 as a wakeup pin from standby mode
- Send the MCU into Standby mode when the push button connected to PB11 is pushed
- Exit the Standby mode when the push button connected to PB11 is pushed again
Thank you in advance.
