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/TM4C1231H6PM: How do I get xdc/xs to create the src/sysbios folder in a user-defined location?

Part Number: TM4C1231H6PM
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI-RTOS

I'm working with TM4C123/9 via Code Composer 7; I have a single code base that uses TI-RTOS/NDK/Tivaware and is being used across a number of products.

I am trying to create a single Code Composer project for the code base, setting up different build configurations for each product/target.

During a build, there is a folder generated in the root project folder named src/sysbios that contains what looks object files for the TI-RTOS components.  It seems like these files need to be compiled specifically for the target.

Is there a way to get this src/sysbios folder to be generated in the folder for the build configuration where all the other compiler-generated files are found, instead of the project root folder?

I run into some time-consuming problems with the build configurations from time to time, and am not sure whether this folder being shared among different build configurations is a source of the problems.

In the project properties, under CCS Build -> XDCtools, don't see any option that would help with this. The xs command has an option for the output folder "-o", but this does not affect where the src/sysbios folder is created.

Under CCS Build -> XDCtools -> Advanced options, there are two other places which could help:  configuration script arguments (--cfgArgs) and additional compiler options (--compileOptions). Still trying to find the docs for these options, but if there are any recommendations here, they would be greatly appreciated.

thanks in advance.

  • Hi,

    You can add the following into the .cfg file

    BIOS.libDir = "myFavoriteDir";

    and the kernel objects will be directed to this directory (under the build configuration).

  • Todd, thanks, this does the trick.

    Per this answer, I actually supplied the following configuration script argument (--cfgArgs) to the XDCTools advanced options so that it is not necessary to hard code the folder into  the .cfg script:

    SysbiosOutputDir="${BuildDirectory}"

    In the .cfg  script, I set BIOS.libDir as follows:

    BIOS.libDir = SysbiosOutputDir;