cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB standby mode WKUPx

jirdom
Associate II

I'm working with the p-nucleo-wb55, and I would like to configure the pin PA0 , PC13 to wake up the MCU from Standby Mode. I configued PA0 and PC13 from STM32CubeMX to GPIO_EXTI0 and GPIO_EXTI13 respectively.

Config:

PA0 : External Interrupt with Falling edge , Pull-up

PC13 : External Interrupt with Falling edge , Pull-up

In my code I set the sequence that I follow to enable the WKUP line is:

HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN1_LOW);

HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN2_LOW);

HAL_PWR_EnterSTANDBYMode();

But interrupt from PA0 , PC13 not working in standby mode.

I reference from

RM0434: Multiprotocol wireless 32-bit MCU Arm®-based Cortex®-M4 with FPU, Bluetooth® Low-Energy and 802.15.4 radio solution

4 REPLIES 4
Le Corre Pierre
Associate III

Hello @jirdom​ ,

This does not exactly points to your solution but you can have a look inside the STM32Cube_FW_WB_V1.2.0 under Projects\P-NUCLEO-WB55.Nucleo\Examples\PWR.

You will find 5 examples detailing how to go to the various low power mode and use the various wake up sources:

  • PWR_LPRUN: How to enter and exit the Low-power run mode
  • PWR_LPSLEEP: How to enter the Low-power sleep mode and wake up from this mode by using an interrupt
  • PWR_PVD: How to configure the programmable voltage detector by using an external interrupt line. External DC supply must be used to supply Vdd
  • PWR_STANDBY_RTC: How to enter the Standby mode and wake-up from this mode by using an external reset or the RTC wakeup timer
  • PWR_STOP2_RTC: How to enter the Stop 2 mode and wake-up from this mode using an external reset or RTC wakeup timer

Pierre.

Hi Le Corre Pierre(ST Employee)

Thank for your information.

Do have example wake up from standby mode with WKUPx?

I checked from stm32wb55rg datasheet (LINK) on page 35. Standby mode able to wakeup by RF, Reset pin 5 I/Os (WKUPx) BOR, RTC, IWDG.

And the I/Os with wakeup from Standby/Shutdown capability are: PA0, PC13, PC12, PA2, PC5

HSpre.1
Associate III

Hi JIrdom

Did you ever find solution to your problem? I can use the example PWR_STANDBY_RTC and wake up from rtc and wake up from wakeup pin with bare code.

But as soon as i add BLE funtionality wakeup pin does not work anymore. , but RTC wakeup works fine

eloibonte
Associate II

Hello @jirdom​ and @HSpre.1​ ,

I am working on a project with the STM32WB55xx MCU.

I was wondering, even a long time after, if you had found a solution to your problem. I encounter exactly the same situation and I don't know what to do. On the datasheet, ST says :

"Standby Mode - Wakeup capability : Radio system (Bluetooth Low Energy, 802.15.4) ".

But then I couldn't wake up the MCU with RF or even with the WKUPx pins.

If you have any idea I would really appreciate your help :)

Thank you very much,

Best regards,

Eloi B.