Skip to main content
Associate III
June 20, 2025
Solved

Unable to turn on BLE WAPN on extended-full stack

  • June 20, 2025
  • 2 replies
  • 385 views

Hey there,

i have a custom board designed which is broadcasting stuff over BLE.

So far i am using the full_stack_fw which works quite well.

In order to turn on extended advertising i wanted to switch over to the full_extended_stack (needed for extended advertisement).

So i flashed the chip with the extended firmware.

After that i created a brand new project in CubeIDE and configured all the things.

Now i try to flash the application but it wont boot up :\

Exeu_0-1750413452410.png

It gets somewhat of a HardFault after turning on BLE WAPN.

Exeu_1-1750413528054.png

If i disable BLE again, it works.. So i am able to toggle an LED for example. No problem. This only occours as soon as BLE is activated.

Do you know what this is about?

Attached the IOC file aswell

 

Best answer by FilipKremen

Hello,

in order to run the extended binaries, the linker script file needs to be modified according to this guide.

STM32WB Bluetooth® LE – wireless stack information - stm32mcu (1.3.1.2)

Please let me know if you're able to run the project after the modification.

 

Best regards,

Filip Kremen

2 replies

Ozone
Principal
June 20, 2025

> It gets somewhat of a HardFault after turning on BLE WAPN.

That is the point to start from.
Read and "decode" the SCB registers that show you the reason for the hardfault.
I suspect a stack overflow. The processor stack of course, not the BLE protocol stack


PS: avoid profanities when naming your projects ...

ExeuAuthor
Associate III
June 20, 2025

Thanks for the answer.

Do you know where i can see the SCB Registers in the IDE?

FilipKremen
FilipKremenBest answer
ST Employee
June 20, 2025

Hello,

in order to run the extended binaries, the linker script file needs to be modified according to this guide.

STM32WB Bluetooth® LE – wireless stack information - stm32mcu (1.3.1.2)

Please let me know if you're able to run the project after the modification.

 

Best regards,

Filip Kremen

ExeuAuthor
Associate III
June 20, 2025

you are my hero! Thank you so much man!

It seems to work now. 

I was close to give up.. But now i can continue :)