Build AZRTOS with CMSIS-RTOS v2 or use ThreadX calls directly

Martin D'Silva 1 Reputation point
2022-03-03T00:06:54.507+00:00

Hi,

I want to know if it is best practice to mix both CMSIS_OS2 API threads and native THreadX threads in a project or should I just port old code over to native THreadX threads instead.

I'm building an embedded device using AZRTOS and STM32 Microcontroller platform. I have to port STM's cellular modem FW package to run in my application. That package is based on FREE RTOS and CMSIS_OS V1 api. After porting that functionality I will need to then use NETXDUO to run the PPP interface plus build out the application logic.

My options are

  1. Converting the cellular modem interface to CMSIS_OS2 API and then use ThreadX native API for any new threads
  2. Convert the cellular modem interface directly to ThreadX native API

Is option 1 best practice or should I just convert all the FreeRTOS calls to ThreadX?

Thanks

Azure RTOS
Azure RTOS
An Azure embedded development suite including a small but powerful operating system for resource-constrained devices.
330 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Scott Azure RTOS 4,051 Reputation points
    2022-03-03T16:04:50.66+00:00

    I would suggest converting directly to native ThreadX.

    You do have a third option: use our FreeRTOS layer https://github.com/azure-rtos/threadx/tree/master/utility/rtos_compatibility_layers/FreeRTOS

    1 person found this answer helpful.
    0 comments No comments