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.

CCS: Any way to add #include directive via Program.global in RTSC Project's .cfg file?

Other Parts Discussed in Thread: SYSBIOS

Tool/software: Code Composer Studio

I know I am able to create macros or global variables via Program.global, and those generated symbols can be accessed by including "xdc/cfg/global.h" in runtime code.

But is it achievable that I want to access some header files through "xdc/cfg/global.h?

  • Hi,

    Do you mean you want to contribute #includes into "xdc/cfg/global.h" (and not just macros/global variables)? If a variable from a module is added into global.h, the #include is added also.

    For example, in the .cfg there is this

    Program.global.heap0 = HeapTrack.create(heapTrackParams);

    in the global.h file there is this

    #include <ti/sysbios/heaps/HeapTrack.h>
    extern const ti_sysbios_heaps_HeapTrack_Handle heap0;

    Todd
  • Hi, Todd. Thank you for the reply.

    But that solution does not apply to the metaonly module. I used the metaonly module with custom header file.