Skip to main content
Associate II
August 27, 2024
Solved

STM32WB works with Custom BLE, rtos and stop modes

  • August 27, 2024
  • 1 reply
  • 1076 views

What would be the best way to develop firmware on the STM32WB with customized Bluetooth and using an RTOS?

When using FreeRTOS, I’m unable to generate custom BLE code in CubeMX, and I’m having difficulty controlling the device’s sleep mode. It seems that the Bluetooth stack already has a mechanism for controlling sleep, but with my FreeRTOS v2, it’s not working properly.

Considering the two microcontrollers: STM32WB55 and STM32WB0, do they have differences regarding this?

Thanks

Best answer by STTwo-32

Hello @Viniciuspsc 

I suggest you follow the example of project implementing the BLE communication based on FreeRTOS. For example, for the STM32WB55 we have the BLE_HeartRateFreeRTOS (it includes a .ioc file so it is easy to understand how it works, implement internally the low power modes between tasks,. 

For the STM32WB0 we have the BLE_p2pServer_FreeRTOS that does not include a .ioc file since it is a new product. You need to debug your code to understand how it works.

Best Regards.

STTwo-32

1 reply

STTwo-32
STTwo-32Best answer
Technical Moderator
August 27, 2024

Hello @Viniciuspsc 

I suggest you follow the example of project implementing the BLE communication based on FreeRTOS. For example, for the STM32WB55 we have the BLE_HeartRateFreeRTOS (it includes a .ioc file so it is easy to understand how it works, implement internally the low power modes between tasks,. 

For the STM32WB0 we have the BLE_p2pServer_FreeRTOS that does not include a .ioc file since it is a new product. You need to debug your code to understand how it works.

Best Regards.

STTwo-32