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.

RTOS/CC1310: What parts of the RTOS release.cfg by safely modified

Part Number: CC1310
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI-RTOS

I am attempting to change the behavior of the System_printf namely the Character Output function.

I see that for all projects that it seems to inherit the RTOS configuration from "tiros_builds_CC1310_LAUNCHXL_release_ccs project I think?

The way I understand it the default TI-RTOS is in ROM for the CC1310 (code size and speed advantage) so I assume that most/none of the options in release.cfg cannot be changed as the RTOS cannot be rebuilt as it resides in ROM.

Is my understanding correct??

Can any of the options in release.cfg be changed, without forcing the RTOS into Flash?    If so which ones?    If it can be changed how do you make this configuration project specific?

If the System -> System Providers -> SysCallback Character Output Function cannot be changed is there any way to override this (linker trick or function that changes this callback) to use my own function without moving the RTOS to flash?

Thanks,

                                Shawn

  • Hi Shawn,

    You are correct that most of our example projects inherit the TI_RTOS part from the "tirtos_build_x_release_ccs" projects. Typically, changing a parameter that would need you to move to flash would prompt you a compilation error/warning. In some cases you don't get a warning for trying to change the "Clock" parameters, however, these are also locked if you are using ROM.

    There is a list of functions that is part of the ROM in the SDK that you could have a look at to figure out what should be OK to modify or not:

    <SDK>\kernel\tirtos\packages\ti\sysbios\rom\cortexm\cc26xx\golden\CC26xx
  • M-W,

    Thanks that is what I suspected.

    However as I am seeing no output from System_printf that according to the RTOS Config uses the SysCallback module I would have to assume there is some way to instantiate your own callback function to get System_printf putting characters out the UART or SPI?? Hopefully without moving the RTOS to flash.
  • Hi Shawn,

    Yes, it should be possible to define your own put and flush functions, only exit and abort seem to exist in ROM. How to define the callback functions can be found in the module API documentation:

    dev.ti.com/.../index.html