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.

Relocating/ the SYS/BIOS 'src' subdirectory does not work



I am quite new to CCS and Sys/Bios. The first trap I ran into was a folder named "src" is automatically excluded from build. So when I tried to make up a "hello world" project for test purposes and created a folder "src" for my sources which works with every other IDE I know, with CCS this wouldn't build.

After some resarch I found this document

http://processors.wiki.ti.com/index.php/SYS/BIOS_FAQs

which surprised me with the fact Sys/Bios lib files are intentionally placed in a folder named "src". I must admit "src" is not a name I would expect to find library files in.

Unfortunately when I follow the instructions for the workaround in adding the line

BIOS.libDir "= ../../libs";

to my cfg script, I get a compiler error "missing ; before statement" in the next line (which is empty).

Any ideas what might cause this are greatly appreciated. Thanks very much for your help.

  • Hi Mark,

    I think you have a miss-placed quote, it should be 

    BIOS.libDir = "../../libs";

    I just tested it out and it worked fine:

    Regards,

    -- Emmanuel

  • Thanks very much for your help.

    Could you please correct the SYS/BIOS FAQ page, that's where I copied the mis-placed quote from.

    Do you know why "src" is used as default name for the objects files of the Sys/Bios library in the first place? If you ask professional C programmers, 120 out of 100 will tell you that a folder "src" should contain nothing but source files and it must not be used for object files, lib files, list files, doc files, pictures from the last holiday or what ever else.

  • Hi Mark,

    Some other software products use the src folder to store generated source files. Those files are persistent to the project and allow the user to manually modify them if necessary. However, SYS/BIOS does not leverage code generation tools, so the source folder only contains the kernel object files.

    Hope this helps,
    -- Emmanuel