STM32WB55 Error on start of BLE stack
Hi,
I'm currently trying to get Bluetooth working from Zephyr. I'm working with the Zephyr sample code
zephyr\samples\bluetooth\peripheral_dis.
I'm using a Nucleo-WB55RG board. Using STMCubeProgrammer I've loaded the FUS at 0x080EE000 and the file stm32wb5x_BLE_Stack_full_fw.bin at 0x080D0000. The chart in the release notes doesn't appear completely with any of the browsers I've tried so I may be using the wrong addresses, but it's the best I can do.
The log from STMCubeProgrammer shows:
17:25:54 : STM32CubeProgrammer API v2.19.0 | Windows-64Bits
17:26:03 : UR connection mode is defined with the HWrst reset mode
17:26:03 : ST-LINK SN : 066EFF564981774867221222
17:26:03 : ST-LINK FW : V2J39M27
17:26:03 : Board : NUCLEO-WB55RG
17:26:03 : Voltage : 3.26V
17:26:03 : SWD freq : 4000 KHz
17:26:03 : Connect mode: Normal
17:26:03 : Reset mode : Hardware reset
17:26:03 : Device ID : 0x495
17:26:03 : Revision ID : Rev X
17:26:03 : Debug in Low Power mode enabled.
17:26:03 : UPLOADING OPTION BYTES DATA ...
17:26:03 : Bank : 0x00
17:26:03 : Address : 0x58004020
17:26:03 : Size : 96 Bytes
17:26:03 : Bank : 0x01
17:26:03 : Address : 0x58004080
17:26:03 : Size : 8 Bytes
17:26:03 : UPLOADING ...
17:26:03 : Size : 4 Bytes
17:26:03 : Address : 0x58004080
17:26:03 : Read progress:
17:26:03 : Data read successfully
17:26:03 : Time elapsed during the read operation is: 00:00:00.000
17:26:03 : UPLOADING ...
17:26:03 : Size : 1024 Bytes
17:26:03 : Address : 0x8000000
17:26:03 : Read progress:
17:26:03 : Data read successfully
17:26:03 : Time elapsed during the read operation is: 00:00:00.006
17:26:46 : Old Firmware delete ...
17:26:46 : Warning: Option Byte: nSWboot0, value: 0x0, was not modified.
17:26:46 : Warning: Option Byte: nboot0, value: 0x1, was not modified.
17:26:46 : Warning: Option Byte: nboot1, value: 0x1, was not modified.
17:26:46 : Warning: Option Bytes are unchanged, Data won't be downloaded
17:26:46 : Time elapsed during option Bytes configuration: 00:00:00.000
17:26:46 : Succeeded to set nSWboot0=0 nboot1=1 nboot0=1
17:26:46 : Opening and parsing file: 0x495_FUS_Operator.bin
17:26:46 : Memory Programming ...
17:26:46 : File : 0x495_FUS_Operator.bin
17:26:46 : Size : 8.00 KB
17:26:46 : Address : 0x08000000
17:26:46 : Erasing memory corresponding to sector 0:
17:26:46 : Erasing internal memory sectors [0 1]
17:26:46 : Download in Progress:
17:26:46 : File download complete
17:26:46 : Time elapsed during download operation: 00:00:00.273
17:26:46 : Application is running, Please Hold on...
17:26:53 : Reconnecting...
17:26:53 : Reconnected !
17:26:53 : Warning: FUS_STATE_NOT_RUNNING
17:26:53 : Warning: Delete Firmware Operation Failure! STACK is Running...Switch to FUS
17:26:53 : Warning: Option Byte: nSWboot0, value: 0x0, was not modified.
17:26:53 : Warning: Option Byte: nboot0, value: 0x1, was not modified.
17:26:53 : Warning: Option Byte: nboot1, value: 0x1, was not modified.
17:26:53 : Warning: Option Bytes are unchanged, Data won't be downloaded
17:26:53 : Time elapsed during option Bytes configuration: 00:00:00.000
17:26:53 : Succeeded to set nSWboot0=0 nboot1=1 nboot0=1
17:26:53 : Opening and parsing file: 0x495_FUS_Operator.bin
17:26:53 : Memory Programming ...
17:26:53 : File : 0x495_FUS_Operator.bin
17:26:53 : Size : 8.00 KB
17:26:53 : Address : 0x08000000
17:26:53 : Erasing memory corresponding to sector 0:
17:26:53 : Erasing internal memory sectors [0 1]
17:26:53 : Download in Progress:
17:26:54 : File download complete
17:26:54 : Time elapsed during download operation: 00:00:00.250
17:26:54 : Application is running, Please Hold on...
17:26:54 : Reconnecting...
17:26:54 : Reconnected !
17:26:58 : Reconnecting...
17:26:58 : Reconnected !
17:26:59 : StartFus activated successfully
17:26:59 : FUS_STATE_IDLE
17:26:59 : Start FUS execution finished
17:26:59 : FUS is now running
17:26:59 : Warning: Option Byte: nSWboot0, value: 0x0, was not modified.
17:26:59 : Warning: Option Byte: nboot0, value: 0x1, was not modified.
17:26:59 : Warning: Option Byte: nboot1, value: 0x1, was not modified.
17:26:59 : Warning: Option Bytes are unchanged, Data won't be downloaded
17:26:59 : Time elapsed during option Bytes configuration: 00:00:00.000
17:26:59 : Succeeded to set nSWboot0=0 nboot1=1 nboot0=1
17:26:59 : Opening and parsing file: 0x495_FUS_Operator.bin
17:26:59 : Memory Programming ...
17:26:59 : File : 0x495_FUS_Operator.bin
17:26:59 : Size : 8.00 KB
17:26:59 : Address : 0x08000000
17:26:59 : Erasing memory corresponding to sector 0:
17:26:59 : Erasing internal memory sectors [0 1]
17:26:59 : Download in Progress:
17:26:59 : File download complete
17:26:59 : Time elapsed during download operation: 00:00:00.275
17:26:59 : Application is running, Please Hold on...
17:27:06 : Reconnecting...
17:27:06 : Reconnected !
17:27:06 : Warning: FUS_STATE_ERR_UNKNOWN
17:27:06 : Download Stack/FUS image at address 0x80D0000 ...
17:27:06 : Opening and parsing file: stm32wb5x_BLE_Stack_full_fw.bin
17:27:06 : Memory Programming ...
17:27:06 : File : stm32wb5x_BLE_Stack_full_fw.bin
17:27:06 : Size : 127.05 KB
17:27:06 : Address : 0x080D0000
17:27:06 : Erasing memory corresponding to sector 0:
17:27:06 : Erasing internal memory sectors [208 239]
17:27:07 : Download in Progress:
17:27:09 : File download complete
17:27:09 : Time elapsed during download operation: 00:00:02.612
17:27:09 : Verifying ...
17:27:09 : Read progress:
17:27:10 : Download verified successfully
17:27:10 : Firmware Upgrade process started ...
17:27:10 : Warning: Option Byte: nSWboot0, value: 0x0, was not modified.
17:27:10 : Warning: Option Byte: nboot0, value: 0x1, was not modified.
17:27:10 : Warning: Option Byte: nboot1, value: 0x1, was not modified.
17:27:10 : Warning: Option Bytes are unchanged, Data won't be downloaded
17:27:10 : Time elapsed during option Bytes configuration: 00:00:00.000
17:27:10 : Succeed to set nSWboot0=0 nboot1=1 nboot0=1
17:27:10 : Opening and parsing file: 0x495_FUS_Operator.bin
17:27:10 : Memory Programming ...
17:27:10 : File : 0x495_FUS_Operator.bin
17:27:10 : Size : 8.00 KB
17:27:10 : Address : 0x08000000
17:27:10 : Erasing memory corresponding to sector 0:
17:27:10 : Erasing internal memory sectors [0 1]
17:27:10 : Download in Progress:
17:27:10 : File download complete
17:27:10 : Time elapsed during download operation: 00:00:00.254
17:27:10 : Application is running, Please Hold on...
17:27:22 : Reconnecting...
17:27:22 : Reconnected !
17:27:22 : Reconnecting...
17:27:22 : Reconnected !
17:27:22 : Firmware Upgrade Success
I then load the application using Zephyr's west. I've enabled logging in Zephyr. The serial output shows:
Booting Zephyr OS build v4.1.0-363-g895d91169e8b ***
BLE Test Code
Enable BLE
[00:00:00.008,000] <wrn> bt_hci_core: opcode 0x1003 status 0x01
Bluetooth init failed (err -5)
The error comes after the line err = bt_enable(NULL);
I'm not sure what the opcode or status is showing me, or what to do to correct this. Any suggestions are appreciated. Thanks.
Lee Thalblum
