Skip to main content
Attila Szabo
Associate
March 24, 2025
Question

STM32WB55 BLE Notification goes to Hard Fault

  • March 24, 2025
  • 1 reply
  • 395 views

Hi everybody,

I have a custom board with STM32WB55CGU7 targeting BLE application. I have flashed it with the latest "stm32wb5x_BLE_Stack_full_fw.bin". On application side I have generated a code based on custom template, with server, pheripheral mode. I can write the device (and toggle a LED), but when I add a charachteristic with notification and I call the "Custom_STM_App_Update_Char(...)" function to update the charachteristic (outside of the BLE callback and the source data is a global variable) I always encounter a hard fault with imprecise error. So, this is the call graph. It always fails at the memcopy. It is linked, I see the ASM behind the call. The two address and the size seems to be valid for me.
Custom_STM_App_Update_Char()->Aci_gatt_update_value->hci_Send_req()->SendCmd() and inside this after calling the memcpy function, it goes to hard fault with imprecise error.
So, does anyone had similar problem? I would appreciate any tought that could push me out from the mud.

1 reply

Billy OWEN
ST Employee
March 24, 2025

Hi @Attila Szabo 

 

This post has been escalated to the ST Online Support Team for additional assistance.  We'll contact you directly.

 

Regards,

Billy