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.

Change default directories for DSP/BIOS generated files with CCS4

Hi everybody,

I am using CCS 4.2 and have a project using DSP/BIOS 5.41. It is compiled for a C64+ DSP.
The project is named "core" and its source files are located in a directory "core". The CCS4-project files are located in a subdirectory "core/ccs4". There are several configurations like "Debug" and "Release". The DSP/BIOS configuration (core/core.tcf) is linked to the project.

If I build the project with configuration "Debug", then the generated files corecfg.cmd, corecfg.h... are put in the directory core/ccs4/Debug. But since corecfg.h is included also from other dependent projects, I would like to put them into another directory which is the same for each configuration, e.g. with the core.tcf in the core directory.

So I added the entry -Dconfig.programName="<src_dir>/core" in the Build Settings of the TConf Script Compiler. But this leads to errors like

'Building file: corecfg.s??'
'Invoking: Compiler'
"C:/Programme/Texas Instruments/ccsv4/tools/compiler/C6000 Code Generation Tools 6.1.19/bin/cl6x" -@"corecfg_ccsCompiler.opt"
>> ERROR: no source files, nothing to do
'Finished building: corecfg.s??'
' '
'Building file: corecfg_c.c'
'Invoking: Compiler'
"C:/Programme/Texas Instruments/ccsv4/tools/compiler/C6000 Code Generation Tools 6.1.19/bin/cl6x" -@"corecfg_c_ccsCompiler.opt"
>> ERROR: no source files, nothing to do
'Finished building: corecfg_c.c'


and

cannot find file "<src_dir>/Core/DspObj/Debug/corecfg_c.obj"
cannot find file "<src_dir>/Core/DspObj/Debug/corecfg.obj"


and many other linker errors.

Is it possible to put the generated files in another directory as it is described for CCS 3.3 (http://processors.wiki.ti.com/index.php/DSP_BIOS_FAQ#Q:_Is_it_possible_to_change_the_default_directories_for_the_BIOS_generated_files.3F)?
If yes, what am I doing wrong?

Thanks,
Tobias

  • Tobias,

    Unfortunately I couldn't find a way to properly redirect the control the output of the BIOS files on CCSv4. I will keep investigating but I am not sure if there is a complete solution, as the IDE expects the generated files to be in a given location (the compiler also has an option to redirect output files that fails when called from within the IDE).

    Best regards,

    Rafael