Skip to content

WeAct Studio STM32WB55 doesn't work with this BLE stack #86

@tankist-git-2

Description

@tankist-git-2

I have WeAct Studio STM32WB55 board STM32WB55 board. I use Arduino IDE 2.3.6. I use "STM32 MCU based boards by STM" 2.11.0 platform. I use "STM32duinoBLE" 1.4.1 library. I uploaded suggested firmware stack for radio module MCU for this chip (stm32wb5x_BLE_HCILayer_fw.bin 1.24.0). I tried to use "Peripheral -> Advertising -> RawDataAdvertising" example.

The result is my code is hanging in the infinite loop inside BLE.begin() function.

The further investigation showed that the code is hanging in HCISharedMemTransportClass::write() function in the line:
while (!phase_reset);
during the HCI.reset() stage. The phase_reset flag set just in one place: in function evt_received() which is never called.

I added some log in code so there is a result:

Starting application...
syscmd_status_not, status:1
WB copro FW version = 1.24.0
syscmd_status_not, status:0
syscmd_status_not, status:1
IPM Channel Open Completed
Command tx -> 0x1 0x3 0xC 0x0
Invoking mbox_write()...
mbox_write() done

I expected phase_reset done message which never happened because of infinite loop in while (!phase_reset);

I attached my sketch directory and library directory to reproduce the error. The only differences are adding log messages (I prepended them with /TEMP+/ prefix). Also I attached Arduino settings for my board.

STM32duinoBLE.zip
stm32wb55_ble_RawDataAdvertising.zip

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions