cancel
Showing results for 
Search instead for 
Did you mean: 

I'm trying to get wakeup from STOP mode on a P-NUCLEO-WB55 using the example project PWR_STOP1. It stops OK, but isn't woken up by a button push. I confirmed that the button push was generating interrupts. Any suggestions?

TWood.4
Associate III
 
3 REPLIES 3
MM..1
Chief III

? code press </>

Remy ISSALYS
ST Employee

Hello,

You can BLE_HeartRate example available in STM32CubeWB package which allow to enter in stop mode and wake up when a button is pressed.

Best Regards

SLei.1
Associate II

Hi, I'm trying on stop mode lately, and also encountered with this problem.

I searched a lot and finally found a error description in page 12 of document "stm32wb55xxstm32wb35cx-device-errata" which is related to this error.

Incorrect exit from Stop modes when the DBGMCU/DBG_STOP is enabled
Description
When DBG_STOP is set in the microcontroller debug unit (DBGMCU), systick is still running and can trigger the
CPU to exit Stop 0, Stop 1, or Stop 2, but the system remains in low power state. The CPU therefore fetches
incorrect data from the inactive Flash which will generate a hard fault.
Workaround
Disable systick before entering in Stop mode when DBG_STOP is set in DBGMCU.

So the solution is add  HAL_DBGMCU_DisableDBGStopMode(); before entering STOP mode. It is proved to work on my board.

Maybe this answer is too late for you, but I hope it will help other developers.