Skip to main content
Jlim.1
Associate II
Apr 12, 2021 3:27 PM UTC
Question

BLE Stack on CPU2 not working

I tested BLE example with NUCLEO-WB55 board. It worked well.

Now we are going to run the BLE example on the custom board.

I made a board with STM32WB55CE MCU.

Although the custom board application was uploaded as shown in the example NUCLEO-WB55, an error occurs in the code shown below.

app_ble.c
 
 /**
 * Starts the BLE Stack on CPU2
 */
 if (SHCI_C2_BLE_Init( &ble_init_cmd_packet ) != SHCI_Success)
 {
 Error_Handler();
 }

I thought the BLE stack went up wrong, so I uploaded the BLE stack, but it doesn't work the same way.

Where should I look?

This topic has been closed for replies.

6 replies

HPope.1
Visitor II
Dec 6, 2021 6:12 PM UTC

Did you ever find a solution for this? I'm experiencing the same issue

DPars.2
Associate II
Dec 9, 2021 4:31 PM UTC

I'm seeing the same issue with our custom board with a STM32WB55CE MCU. I assume no solution has been found?

YTalh.1
Associate II
Dec 13, 2021 10:58 PM UTC

Having the same issue here with the Thread stack: the program hangs at  "ThreadInitStatus = SHCI_C2_THREAD_Init();"

I am running the exact same code as I did on the Nucleo board with the exact same option bytes and FUS version. Only difference is that I am using a custom board now.

Did you ever figure out a solution for this?

DPars.2
Associate II
Dec 14, 2021 1:48 PM UTC

Unfortunately not. I thought I had fixed one of the boards by upgrading the BLE firmware from 1.12.1 to 1.13.0 but when I tried to repeat that fix on another board I keep getting the FUS_STATE_IMG_NOT_AUTHENTIC error at the end of the update and the build still fails at SHCI_C2_THREAD_Init().

HPope.1
Visitor II
Dec 16, 2021 8:05 PM UTC

After talking with stm32 for a bit, I scrapped everything, as they sent me this much newer tutorial: https://www.youtube.com/watch?v=i10X4Blr8ns&t=16s

Using this I was able to get things running to the point that the bluetooth micro was spitting out:

“Wireless Firmware version 0.0.0

Wireless Firmware build 0

FUS version 1.1.1

SHCI_SUB_EVT_CODE_READY - FUS_FW_RUNNING�?

At that point, it was pointed out that while my FUS was fine, I needed to upgrade my wireless stack.

After doing that everything worked cleanly.

Good luck.

detakm
Associate
Mar 12, 2022 4:23 PM UTC

Was anyone on this post able to figure out what solves this issue? I am having the same problem but with the Zigbee stack, the function call SHCI_C2_ZIGBEE_Init() never returns.