‎2019-11-18 11:28 PM
Hello,
I made several modifications to the STM32WB HandsOn_3 example (based on p2p-server project located at c:\STM32WB_workshop\HandsOns\HansdsOn_3) and succeeded to communicate with my mobile application - all OK =)
However the above working solution is based on Sequencer (UTIL_SEQ_Run(~0) ) scheduling mechanism. As my entire project is based on freeRTOS, I'd like to find the best approach on how to convert the working Sequencer mechanism into freeRTOS Mechanism? (for P2P server project)
P.S
2. I checked the example located at: ..\Repository\STM32Cube_FW_WB_V1.3.0\Projects\P-NUCLEO-WB55.Nucleo\Applications\BLE\BLE_HeartRateFreeRTOS
This example works OK, however:
I need help, to decide which approach will be the best starting point, before FW modification either PS#1 or PS#2 ?
Thanks In Advance,
Micha
‎2019-11-27 05:10 AM
Hello,
CubeMx does not convert the example running on FreeRTOS to the Sequencer.
There is "almost" a one to one mapping between the Sequencer and cmsis_os api.
The easiest way is to check the differences between BLE_HeartRateFreeRTOS and BLE_HeartRate. This will provide good hints to move the Sequencer to FreeRTOS ( cmsis_os). There should be no other differences than the one required to switch between the Sequencer and FreeRTOS.
Regards
‎2019-11-27 05:29 AM
Hi Christophe,
Thanks for your reply
I already did what you suggested, and yes I have some clues
However seems that at some point in the near future, ST will supply CubeMX + BLE + freeRTOS example, from what I have seen, there are some differences between cmcis_os API vs. the latest freeRTOS that generated by CubeMX
Seems need to wait a bit and to get complete example CubeMX + BLE + freeRTOS which supports also low power, etc
Best Regards,
Micha