cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB5MM-DK: CPU2 boot failure in BLE_p2pServer example

karppa
Associate

I'm experiencing an issue with the BLE_p2pServer example where CPU2 seems to fail to boot properly. Environment:

Board: STM32WB5MM-DK
IDE: STM32CubeIDE (latest version)
STM32CubeProgrammer for flashing wireless stack
Example: BLE_p2pServer from STM32CubeMX, imported to CubeIDE from .ioc

Details: The application crashes during CPU2 boot sequence, specifically at LL_PWR_EnableBootC2(). UART debug prints show the execution stops during this operation:

hw_ipcc.c:

void HW_IPCC_Enable( void )

{

__SEV(); /* Set internal event flag and send event to CPU2 */

__WFE(); /* Clear internal event flag */

Debug_Print(">LL_PWR_EnableBootC2\r\n");

LL_PWR_EnableBootC2(); // Crashes here

Debug_Print("<LL_PWR_EnableBootC2\r\n");

...

Serial output shows:
>LL_PWR_EnableBootC2
<LL_PWR_En[SERIAL/DIRECT] INFO: DISCONNECTED

registers.png shows that PC is on default handler infinite loop after unexpected interrupt.

What could cause this type of behavior?

1 REPLY 1
STTwo-32
ST Employee

Hello @karppa 

Could you please try to update the stack and FUS to the correct .bin files from the STM32CubeWB V1.22.0 and STM32CubeProgrammer V2.19.0 and click on the "Start Wireless Stack" button before runnig your project on the board.

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.