Programming and Running BLE stack in CPU2
Greetings,
Currently the project has a requirement for a Custom BLE server profile. I have a few doubts, for which I'm seeking clarifications.
- I flashed the 'stm32wb5x_BLE_Stack_full_fw' v1.14 at the specified memory location as per the release notes. The binary was successfully upgraded. When I perform the step debug, the 'WirelessInfo' returns the proper values. In the next step, most of the times 'p_sys_ready_event' returns FUS_FW_RUNNING instead of WIRELESS_FW_RUNNING. What is the cause for this? Even though the wireless stack is programmed why does the return value is not proper?
- When the return value of p_sys_ready_event is proper(WIRELSS_FW_RUNNING), the program moves forward. Program hits the 'APP_BLE_Init' function and the command packet is initialized. Then 'SHCI_C2_BLE_Init' is hit. This function is returns the status with the value 0x04(undefined in the documents) and the program gets stuck in Error handler(). Based on the comments provided before the error handler function, CPU2 might not have the wireless binaries. If that is the case, then the wireless info should have returned the improper value right? What might be the reason for the program to hit Error handler instead of moving forward?
Awaiting your response at the earliest.
Thanks,
Akash Bharadwaj