In ccs4 I found it useful to include a local TCI configuration file in order to setup different conditions for the production code versus units tests
In trying to do the same in ccs5 with SYS/BIOS I have a problem in the editor. In my CFG file I put the line:
utils.importFile("NanoScan2.tci");
After saving the CFG I get this error:
Can't find import file: 'NanoScan2.tci' (not found along 'E:\NanoScan\Firmware\workspace\NanoScan2;C:/ti/xdctools_3_22_04_46/include;C:/ti/xdctools_3_22_04_46/packages') NanoScan2.cfg
I set "config.importPath=" as specified in section 3.4 of "Migrating a DSP/BIOS 5 Application to SYS/BIOS 6" (spraas7e). The CFG compiles and the task specified in the TCI file is run.
1) Apparently there is a problem in the editor so that it cannot find include files in the same way as the XDC compiler.
2) The list of paths seems strange. The CFG file is a linked file from the production project stored in E:\NanoScan2\Firmware\workspace\NanoScan2. I don't want it to look in that directory. I wnat it to in the directory of the current unit test project (E:\NanoScan2\Firmware\workspace\UnitTests). Each project will have its own TCI file.
3) The previously mentioned section 3.4 states the I should enter "<full path to Tconf include files>". Hard coded paths will only work on one computer.
3a) I found where I could use an environment variable. But this is a workspace not an install directory. Setting an environment variable to point to a workspace seems odd.
3b) The XDC compiler looks first in the source file path. Since I want different TCI files in different directories I need to be able to specify directory search order. This problem seems insurmountable.