cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB getting stuck into Hard Fault on unsuccessful Bluetooth connection attempt!

abbas14
Associate II

We have tried using

NVIC_SystemReset();

but it seems it only resets the M4 core and not the M0+ responsible for Bluetooth communication.

It would be really appreciable if someone could guide us towards identifying the cause behind this behavior, and how to eliminate it.

2 REPLIES 2
Remi QUINTIN
ST Employee

​A few questions to understand the context:

  • are you using a coin battery or a main supply? If a coin battery, what is the model?
  • Do you active the SMPS mode?
  • Was the device scanning or advertising? what's its role: central or peripheral?
  • Did the issue happen before or after connection?

Really appreciate your prompt response, Remi QUINTIN.

We are using a Li-Ion battery to power our custom designed board. Rest assured, there are no fluctuations and/or loading effects on the supply line. The controller that we are using is STM32WB50, and it does not have a SMPS. The device is advertising as a server (central).

This issue happens during a connection attempt, if the attempt fails. If the connection attempt is successful, the device works great. Although it is a rare event, but it does happen, which will ruin the customer experience. ​