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.

Using modified TI RTOS driver source files

Hello everyone,

I'm currently using the Tiva C Launchpad wirth CCS 5.4 and the TI RTOS 1.10 package. Everything works fine, the examples compile and run as expected.

What I'm now trying to do is to change the TI RTOS UART driver sources found in \tirtos_1_10_00_23\packages\ti\drivers\uart\UARTTiva.c and change some UART settings (e.g Interrupt settings). Sadly my changes have no influence on my project; to be sure of that I've inserted some syntax errors in the UARTTive.c file but my TI RTOS project still compiles without an error, completely ignoring the purposely inserted syntax errors. That means that for some reason the compiler is not recompiling/using my modified sources.

Can anyone help me with this problem?

Many thanks

Christian

  • Hi Christian,

    The drivers are in a library. You need to

    1. change the source in ti\drivers (or ti\drivers\uart) as needed and then rebuild the libraries. Refer to the User Guide on how to rebuild the driver libraries.

    2. Add the necessary source files into your project. They will be compiled when you build your project.

    Note: if you change the driver's header file (e.g. change enums or structures), ROV for that driver might not work anymore. Of course this does not impact target code, just ROV.

    Todd

  • Hello Todd,

    I've read the User Guide and I'm now trying to rebuild the drivers through "gmake -f tirtos.mak drivers" but at a certain point of the compilation process the toolchain complains that no C2000 compiler can be found (I didn't install the C2000 toolchain because I don't need it). I couldn't find the place where I can specify for which HW platform (in my case the Cortex M4F) the RTOS drivers should be built.

  • Christian,

    I'd clean the drivers first:

    ..\<xdctools_install_dir>gmake.exe -f tirtos.mak clean-drivers

    and then remove the striked out line following line from tirtos.mak

    XDCARGS= \
        ti.targets.C28_float=\"$(ti.targets.C28_float)\" \
        ti.targets.arm.elf.M3=\"$(ti.targets.arm.elf.M3)\" \

    and then rebuild the drivers

    ..\<xdctools_install_dir>gmake.exe -f tirtos.mak clean-drivers

    Todd

  • Hi Todd, thank you for your precise and concise answers! They were very helpful and for now everything works flawlessly!

    Christian