This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3200: Porting of MQTT-Client code from FreeRTOS code to TI-RTOS

Part Number: CC3200

I have gone through MQTT-Client code given in SDK. I want to port the code from FreeRTOS  to TI-RTOS?

What changes should I make in code and project properties?

I would appreciate any help in this context.

Thanks.

  • Hi Prachi,

    There is no good guide for the porting between FREERTOS and TI-RTOS.
    The CC3200 examples uses an abstraction layer called OSLIB (api starts with "osi_") so the applications (at least those that were written with RTOS support - see details in processors.wiki.ti.com/.../CC3200_SDK_Sample_Applications) are basically ready to get ported.
    In the project setting you should replace the library under <sdk-root>/oslib/ccs.
    Then look for small changes such as setting of the interrupt vector base need by TI-RTOS (follow for example the use of "USE_TIRTOS" in the wlan_ap example).
    The stack sizes might need to be updated as well.

    Br,
    Kobi
  • Hello all,

    I am also facing the same issue and want to port the code from FREE RTOS to TIRTOS 

    I am using Mqtt example code and I tried changing the configuration in properties of the project and my code is now showing as active configuration for TI-RTOS and code is also working fine,

    However i want to add clock module in the mqtt example code but i am getting stack sizes error which you have mentioned in last line 

    So please help me with solution for this error,

    And also i didnt understand what do you mean say in the below line.

     

    Kobi Leibovitch said:
    Hi Prachi,

    In the project setting you should replace the library under <sdk-root>/oslib/ccs.

    Please help with this soon,

    Thank You

  • Hi,

    Under OSLIB you can find 2 adaptation drivers:

    1) free_rtos.a - adapter between the OSI API and FreeRTOS (that is used by default)

    2) ti_rtos.a - adapter between OSI and TI RTOS (this is the one you need to update instead).

    If you have issues with the stack sizes, you can try try to increase the sizes.

    Br,

    Kobi

  •  Hello Kobi,

    Thank You for replying,

    As per your suggestion i tried making changes on my side,

    And i have attached a snapshot of my screen below with changes please check and verify if i have made correct alteration.

  • Hello Kobi,

    Thank You for replying,

    As per your suggestion i tried making changes on my side,

    And i have attached a snapshot of my screen below with changes please check and verify if i have made correct alteration

    Thanks and Regards

    Utkarash