Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BLE functionality for STM32WB55 is limited with full version of BLE stack #47991

Closed
r2r0 opened this issue Jul 19, 2022 · 3 comments · Fixed by #48349
Closed

BLE functionality for STM32WB55 is limited with full version of BLE stack #47991

r2r0 opened this issue Jul 19, 2022 · 3 comments · Fixed by #48349
Assignees
Labels
area: Bluetooth bug The issue is a bug, or the PR is fixing a bug platform: STM32 ST Micro STM32 priority: low Low impact/importance bug
Milestone

Comments

@r2r0
Copy link
Member

r2r0 commented Jul 19, 2022

Describe the bug
The stm32wb_ble sample on nucleo_wb55rg board hangs on when it is used in combination with stm32wb5x_BLE_Stack_full_fw.bin (version 0.13.2) as a BLE firmware.
After updating BLE stack with stm32wb5x_BLE_HCILayer_extended_fw.bin sample works as expected.

To Reproduce
Steps to reproduce the behavior:

  1. Update BLE FW with stm32wb5x_BLE_Stack_full_fw.bin (version 0.13.2)
  2. west build -p -b nucleo_wb55rg boards/stm32/power_mgmt/stm32wb_ble
  3. west flash
  4. see error on console and take mesurement of power consumption after shutdown

Expected behavior
In case when full BLE stack version is used mentioned sample should not output any errors and power consumption after shutdown should be much lower (not above 500 uA).

Impact
showstopper

Logs and console output

*** Booting Zephyr OS build zephyr-v3.0.0-6702-g60271524087b  ***
Starting Beacon Demo
Bluetooth init failed (err -5)
BLE disable
BLE restart
Bluetooth init failed (err -5)
BLE disable
Shutdown

Environment (please complete the following information):

  • OS: Linux
  • Toolchain Zephyr SDK 0.14.2
  • Commit SHA 6027152

Additional context
It is marked as showstopper because our application code also uses bt_disable before shutdown.

@r2r0 r2r0 added the bug The issue is a bug, or the PR is fixing a bug label Jul 19, 2022
@mmahadevan108 mmahadevan108 added the priority: low Low impact/importance bug label Jul 19, 2022
@erwango
Copy link
Member

erwango commented Jul 26, 2022

@r2r0, STM32WB Cube package 13.2.0, "full" binaries are no more compatible with use in Zephyr. Instead, you should now use one of the following binaries:
stm32wb5x_BLE_HCILayer_extended_fw.bin
stm32wb5x_BLE_HCILayer_fw.bin

I'll update board documentation to make this clear and take this into account in flash partition .

@r2r0
Copy link
Member Author

r2r0 commented Jul 27, 2022

Thank you @erwango - this closes issue.

@erwango
Copy link
Member

erwango commented Jul 27, 2022

Re-opening as this issue should be used to backport #48349 on V3.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth bug The issue is a bug, or the PR is fixing a bug platform: STM32 ST Micro STM32 priority: low Low impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants