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.

LAUNCHCC3235MOD: sl_Task in native TI-RTOS

Part Number: LAUNCHCC3235MOD
Other Parts Discussed in Thread: CC3235MODSF

Hello,

I'm using the CC3235MODSF launchpad. I noticed that all examples use POSIX. I don't have any experience with POSIX but I am very comfortable with native TI-RTOS. I've already written a lot of code in TI-RTOS. How do I call sl_Task using native TI-RTOS. Please help. I am hoping I could stick to the native and not redo a lot of my code. And is there anything else important I need to look out for if I call "sl" functions in native TI-RTOS.

Thanks

AJ

  • You just need to create a thread that will run sl_Task (stack should be 2KB unless you do a lot of work in the simplelink handlers).

    Since everything in the SDK uses POSIX, the issue will repeat whenever you will try to use code from the SDK.

    I suggest that you will use the POSIX adaptation for anything that you take from the SDK. You can still use tirtos directly as the POSIX is a wrapper on top of it but be careful about using shared OS objects (e.g. thread synchronization objects and message queues) using different interfaces.

  • Hi Kobi,

    How do you create the thread using TI-RTOS syntax. I tried both Task_Create and Task_Construct but I get errors. Looks like the arguments don't match. The return of sl_Task is a void while  Task_Create expects a different type. Could you please provide me with the correct syntax for this?

    Thanks

    AJ

  • Hi Kobi, 

    I went ahead and switched to POSIX. You may close this issue.

    Thanks

    AJ