Skip to main content
Associate
March 31, 2025
Question

STM32WB5MM-DK: CPU2 boot failure in BLE_p2pServer example

  • March 31, 2025
  • 1 reply
  • 503 views

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

STTwo-32
Technical Moderator
April 29, 2025

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