2026-02-08 1:56 PM - last edited on 2026-02-27 1:22 AM by Imen.D
I am unable to successfully run zephyr samples/bluetooth/peripheral on nucleo_wb55rg. The software appears to enter a fault handler. The basic blinky project does work (samples/basic/blinky)
Wireless stack stm32wb5x_BLE_HCILayer_fw.bin v1.24 is programmed and running (see attachments) I have also tried v1.23 without success.
Is there a known good combination of software and hardware for stm32 BLE and zephyr?
2026-02-10 1:04 PM
I have found additional information:
samples/boards/st/power_mgmt/stm32wb_ble
succeeds with stm32wb5x_BLE_HCILayer_fw.bin versions:
*** Booting Zephyr OS build v4.3.0-5716-gcb901b90bfe5 ***
Starting Beacon Demo
Bluetooth initialized
Beacon started, advertising as xx:xx:xx:xx:xx:xx (public)
Beacon stopped
Beacon started
Beacon stopped
Bluetooth disable
Bluetooth restart
Bluetooth initialized
Beacon started, advertising as xx:xx:xx:xx:xx:xx (public)
Beacon stopped
Beacon started
Beacon stopped
Bluetooth disable
Powering offunable to verify with:
fails with runtime error:
*** Booting Zephyr OS build v4.3.0-5716-gcb901b90bfe5 ***
Starting Beacon Demo
Bluetooth initialized
Beacon started, advertising as xx:xx:xx:xx:xx:xx (public)
Beacon stopped
Beacon started
Beacon stopped
Bluetooth disable
Bluetooth disable failed (err -5)
Bluetooth restart
Bluetooth init failed (err -120)
Bluetooth disable
Bluetooth disable failed (err -5)
Powering offsamples/bluetooth/peripheral
fails with runtime error
*** Booting Zephyr OS build v4.3.0-5716-gcb901b90bfe5 ***
[00:00:00.506,000] <err> os: ***** BUS FAULT *****
[00:00:00.506,000] <err> os: Precise data bus error
[00:00:00.506,000] <err> os: BFAR Address: 0x80daff8
[00:00:00.506,000] <err> os: r0/a1: 0x200051a0 r1/a2: 0x080daff8 r2/a3: 0x080db000
[00:00:00.506,000] <err> os: r3/a4: 0x2000519f r12/ip: 0x00000001 r14/lr: 0x08024007
[00:00:00.506,000] <err> os: xpsr: 0x81000000
[00:00:00.507,000] <err> os: Faulting instruction address (r15/pc): 0x0804557e
[00:00:00.507,000] <err> os: >>> ZEPHYR FATAL ERROR 25: Unknown error on CPU 0
[00:00:00.507,000] <err> os: Current thread: 0x20001460 (unknown)
[00:00:00.534,000] <err> os: Halting system
2026-02-12 12:05 PM
Further testing shows samples/bluetooth/peripheral runs after disabling prj.conf setting CONFIG_FLASH_MAP
2026-03-03 9:04 AM
Hi,
Yes you have the correct combination software and hardware for stm32 BLE and zephyr.
The trouble can be linked to the status of the flash memory before the download of the ZEPHYR application binary with west (according historic of the NUCLEO board you can have a download of older version of coprocessor binary and an other application binary)
To avoid the trouble, do not hesitate to do a "Full erase chip" with STM32CubeProgrammer tool before the west flash, to be sur that the flash space dedicated for the application binary is clean.
Let me know if it is better.
2026-03-03 9:08 AM
Hi,
You cannot try with older version of the coprocessor binary without ZEPHYR STM32 driver adaptation.
Each integration of a new coprocessor binary version imply some ZEPHYR STM32 driver adaptations linked to this new version.
2026-03-03 9:10 AM
Hi,
As explained before, to avoid the trouble, do not hesitate to do a "Full erase chip" with STM32CubeProgrammer tool before the west flash, to be sur that the flash space dedicated for the application binary is clean.
Let me know if it is better.
Best regards.