cancel
Showing results for 
Search instead for 
Did you mean: 

How to restore BLE functionality after waking up from low power mode on STM32WB55?

DaveGoing
Associate II

What operations need to be performed on CPU2 after CPU1 wakes up from Stop mode on STM32WB55 for BLE to work?

I have successfully implemented waking up CPU1 from low power mode, but how can CPU2's BLE functionality be restored? Here is the code:

HAL_DBGMCU_EnableDBGStopMode();
LL_RCC_SetClkAfterWakeFromStop(LL_RCC_STOP_WAKEUPCLOCK_MSI);
HAL_PWREx_HoldCore(PWR_CORE_CPU2); /* Disable C2 */

LL_C2_PWR_SetPowerMode(LL_PWR_MODE_SHUTDOWN);
HAL_SuspendTick();
HAL_PWREx_EnterSTOP2Mode(PWR_STOPENTRY_WFI);

HAL_PWREx_ReleaseCore(PWR_CORE_CPU2); /* Boot CPU2 after reset or wakeup from stop or standby modes */

HAL_ResumeTick();

  • I found that the clock needs to be configured and I am working on resolving it.....
  • I am able to scan for the device, but I cannot connect to it.
1 REPLY 1
STTwo-32
ST Employee

Hello @DaveGoing 

I suggest you follow the implementation of the BLE_HeartRate example  to understand how the waking up and communication between the two CPU works.

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.