cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB5MMGHx stops advertising after resetting from power loss.

MLuis.1
Associate III

 

I’m using a STM32WB5MMGHx module on a battery powered device. When the module loses power due to low battery or the battery being removed it does not advertise after regaining adequate power. Only after restarting or reflashing the wireless stack does the module begin to advertise again.

Here are my cube configurations for BLE:

MLuis1_2-1701166574421.png

 

MLuis1_1-1701166547333.png

How can i solve this? 

2 REPLIES 2
Remy ISSALYS
ST Employee

Hello,

I think the embedded programmable voltage detector inside STM32WB can be useful in your case, see below an extract of the datasheet:

"The device features an embedded programmable voltage detector (PVD) that monitors the VDD power supply and compares it with the VPVD threshold. An interrupt can be generated when VDD drops below the VPVD threshold and/or when VDD is higher than the VPVD threshold. The interrupt service routine can then generate a warning message and/or put the MCU into a safe state. The PVD is enabled by software."

You refer to the STM32WB55 datasheet DS11929 part 3.7.4 Power supply supervisor.

Best Regards

MLuis.1
Associate III

Hi, @Remy ISSALYS 

The power supply is stable at a healthy voltage for this module.
Can i maybe solve my problem by force resetting core 2 at power on?