Skip to main content
Associate III
January 23, 2026
Question

STM32WB5MMGHx FreeRTOS and Custom BLE p2p_server app

  • January 23, 2026
  • 1 reply
  • 162 views

Hello.
I'm currently working on the above cpu and trying to implement a custom ble p2p server app. I have 1 service and 2-3 characteristics and i want to add Freertos for time critical constraints managenments. Correct me if im wrong, but it seems that the Freertos stack is incompatible with a custom ble p2p server template. The only thing that i can choose to use when enabling Freertos is the heart monitor template. Is there any work around or do i have to ditch free rtos all together and go bare metal instead ? 

1 reply

Visitor II
March 12, 2026

CubeMX won't let you create a custom service when using FreeRTOS, you have to modify the code yourself.

 

https://github.com/gurhalilalpha/CustomBLEWithFreeRTOS  here i tried an example on how to create a custom service. it uses FreeRTOS instead of sequencer. But do not use the .ioc file to generate the code.