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.

How can we run the WLAN Station example in TI-RTOS, it seems to only work with the free rtos. Is there sample code out there for the TI RTOS

Other Parts Discussed in Thread: CC3200, CC3200SDK

We are having problems getting the WLAN station example code running on the TI_RTOS, it works just fine with the FreeRTOS but we would like to use the TI_RTOS.  Is there sample code that can be downloaded?

thank you

al

  • Al -

    The complete process for installing the required components and building wlan_station using TI RTOS is documented in Section 3 of the CC3200 SimpleLink™ Wi-Fi® and IoT Solution With MCU LaunchPad™ Getting Started Guide:  

    http://www.ti.com/lit/ug/swru376a/swru376a.pdf 

  • Hi Jim,

    Thank you for responding to me.  I have followed these steps but what I get is not an TI-RTOS project but a freeRTOS project.  I need to control other external hardware and I would like to use the TI-RTOS.  The only difference I see between what is in the documentation and what I have installed is the documentation has this directory "C:\TI\CC3200SDK_1.0.0\cc3200-sdk" and my installed directory is "C:\TI\CC3200SDK\cc3200-sdk".  Do I have older examples than I should have?  Should there be a *.cfg file in the wlan_station project?

    thank you

    al

  • I am looking at the CC32xx Getting Started with WLAN Station, it says ti_rtos and ti_rtos_config projects need to be imported and they can be found in CC3200-SDK under ti_rtos folder.  I only have ti_rtos_config available.  Where can I get the ti_rtos project?


    al

  • Al -

    The only difference I see between what is in the documentation and what I have installed is the documentation has this directory "C:\TI\CC3200SDK_1.0.0\cc3200-sdk" and my installed directory is "C:\TI\CC3200SDK\cc3200-sdk".  Do I have older examples than I should have?  Should there be a *.cfg file in the wlan_station project?

    Your installed path is fine.  Fyi, the location doesn't really matter, since you can "fine-tune" the directory location at installation time, anyway - for example, my CC3200SDK install is F:\ti\CC3200SDK\cc3200-sdk.  

    The CCS installer will adjust the paths visible under the Properties/Resource/Linked Resources/Linked Paths tab to pick up install-time PATH customizations. It matters when referencing the documentation, but you can use Windows Search/Explorer. 

    I am looking at the CC32xx Getting Started with WLAN Station, it says ti_rtos and ti_rtos_config projects need to be imported and they can be found in CC3200-SDK under ti_rtos folder.  I only have ti_rtos_config available.  Where can I get the ti_rtos project?

    From the pdf:

    Select the wlan_station, driverlib, simplelink, oslib and ti_rtos_config projects. Click Finish. For any
    library import, do not check the 'Copy projects into workspace' option. This would break the links the
    libraries have to their dependencies. The wlan_station project will automatically be copied to the
    workspace.

    Select the ti_rtos_config project in Project Explorer, and select Project>Properties from the menu.
    Setup the ti_rtos_config project configuration as shown in Figure 7. Select the latest versions of
    XDCtools and TI-RTOS for SimpleLink. Also verify the platform is selected as
    ti.platforms.simplelink:CC3200

    The TI-RTOS version is a selection under Properties/General for the ti_rtos_config project as shown in Figure 7, rather than a separate project - on a fresh install, you will only have one version of XDCTools TI RTOS available.

    You have to build the projects in the order noted in the pdf (simplelink, ti_rtos, driverlib, oslib, wlan_station). and  you should be able to isolate any build-related problems on a per-project basis - for example, if you have problems building ti_rtos, it's a bit soon to be worried about the wlan_station project configuration.  

    If you can't determine the source of a build issue for one of the projects, it's helpful to post the step that is failing (simplelink, or ti_rtos, or ...), along with the compiler/linker output for the step that failed, to help other forum members assist you.  

  • It is compiling fine, I don't know how to switch from the freeRTOS to the TI-RTOS.  Where does the .cfg file come from?  Another post on here said it was a setting in the linker, what setting would that be?

    al

  • Assuming you successfuly built simplelink and ti_rtos...

    Under oslib/Properties/General:

    (Note: you can NOT just select ti_rtos from the Configurations dropdown and click OK!)

    Click Manage Configurations 

    (oslib:Manage Configurations dialog is displayed)

    Select ti_rtos

    Click Active

    Click OK

    (Properties/General pane is displayed)

    Change Configuration to ti_rtos (Active)

    Click OK to save your property changes.

    Rebuild oslib.

    Rebuild driverlib

    Under wlan_station/Properties/Build/Dependencies:

    Remove the reference to free_rtos and add a reference to ti_rtos_config (not sure why this one dependency is present, given TI's instructions to build in a specific order, but it is present in my build env).

    Under wlan_station/Properties/Build/ARM Compiler/Advanced Options/Predefined Symbols:

    Remove the define for USE_FREERTOS, and add USE_TIRTOS.

    Under wlan/station/Properties/Build/ARM Linker/File Search Path:

    Make sure that "${CC3200_SDK_ROOT}/oslib/ccs/ti_rtos/ti_rtos.a" is listed as a search path (and free_rtos is NOT).

    Save your property changes.

    Rebuild wlan_station.

    Hope this helps - I know the oslib "Select configuration from the dropdown and click OK changes nothing unless you change your active configuration" had me going when I first built wlan_station...

  • Thank you, that is what I needed, it compiles with the TI RTOS.  Is there any way to get a .cfg file for the project?

    al

  • Hi Allen,

    I am closing the thread, if issue still exist please open a new thread and add a link to this one for reference.

    Best regards,

    Naveen