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.

What are the steps to add TI-RTOS to an existing IAR project?

I see that there are custom build steps, extra compiler options, extra linker options needed to get a TI-RTOS project built in IAR. Are these documented anywhere?

Regards,

Nitya

  • Hi Nitya,
    The cleanest way I'd recommend is to create an empty TI-RTOS IAR project and then migrate your existing IAR sources over. You can find the steps to create TI-RTOS IAR projects here.
    If you're still sold on going the other way round of adding TI-RTOS to an IAR project unfortunately we don't have any documentation with steps outlined to do this. The IAR workbench integration that we currently provide generates all the compiler, linker options and build steps that's needed. This hides what could be a complicated process if it's tried manually. One thing you can try is to first backup your IAR project and then following the steps under Creating TI-RTOS Examples with IAR Embedded Workbench in the same link I shared earlier, start at #6 ignoring steps #1-5 which instruct to create an empty IAR project. Instead you'll be using your existing non-empty IAR project. Next follow the rest of the steps and import the Empty TI-RTOS project. This should add the Empty TI-RTOS project (with its options and settings) on top of your existing IAR project. You can now merge your main.c with TI-RTOS empty.c which will be added to your project.

    Let me know if this helps.

    Regards,
    Moses