cancel
Showing results for 
Search instead for 
Did you mean: 

nucleo_wb55rg zephyr samples/bluetooth/peripheral failure

aw-engineer
Associate II

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?

stack.png

stack-runs.png

 

5 REPLIES 5
aw-engineer
Associate II

I have found additional information:

samples/boards/st/power_mgmt/stm32wb_ble

succeeds with stm32wb5x_BLE_HCILayer_fw.bin versions:

  • 1.17
  • 1.19
  • 1.20
  • 1.21
*** 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 off

unable to verify with:

  • 1.22.0

fails with runtime error:

  • 1.23
  • 1.24
*** 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 off

 samples/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
aw-engineer
Associate II

Further testing shows samples/bluetooth/peripheral runs after disabling prj.conf setting CONFIG_FLASH_MAP

EMECH
ST Employee

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.

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. 

EMECH
ST Employee

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.