Hi,
I successfully integrated Code Sourcery in CCSv5. My aim is now at developing a simple app which should call the codec engine, whose target is a DM6446 board. I've already managed to create an app with CCS and Code Sourcery (by creating a C/C++ Project, and following the procedure described in the TI's wiki), but I cannot repeat this procedure when it comes to include XDCTools (I'm using xdctools 3.20.08.88, xdais 7.20.00.07, ipc 1.22.03.23, bios 6.31.04.27).
As a first attempt, I created the new app as a C/C++ project. I also created a new RTSC configuration file, and CCS prompted me: "Do you wish to enabled RTSC suppoprt for project 'Test'?". After replying 'yes', whenever I try to open test.cfg I get the following error: "An error has occurred. See error log for more details java.lang.NullPointerException". As a result of this approach, when I build the project, the xdctools configuro step is skipped at all, as revealed in the console output:
**** Build of configuration Debug for project Test ****
make all
Building file: ../hello.c
Invoking: ARM Sourcery Linux GCC C Compiler
arm-none-eabi-gcc -O0 -Wall -Wa,-adhlns="hello.o.lst" -c -fmessage-length=0 -MMD -MP -MF"hello.d" -MT"hello.d" -mcpu=cortex-m3 -mthumb -g3 -gdwarf-2 -o"hello.o" "../hello.c"
As a second approach, I created the new app as a CCS project selecting the "empty RTSC Project" template, which I now for sure to work with XDCTools. As "RTSC Target" I selected "gnu.targets.arm.GCArmv5T" (this configuration works when I use XDCTools from shell), and as "RTSC Platform" I selected "ti.platforms.evmDM6446". This time I can properly edit test.cfg. However, when building the project I get:
**** Build of configuration Release for project Prova ****
/home/gabriele/sw/ccs/ccsv5/utils/gmake/gmake -k all
Building file: ../Prova.cfg
Invoking: XDCtools
"/home/gabriele/sw/ccs/xdctools_3_20_08_88/xs" --xdcpath="/home/gabriele/sw/ccs/ipc_1_22_03_23/packages;/home/gabriele/sw/ccs/bios_6_31_04_27/packages;/home/gabriele/sw/ccs/xdais_7_20_00_07/packages;/home/gabriele/sw/ccs/xdais_7_20_00_07/examples;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.GCArmv5T -p ti.platforms.evmDM6446 -r whole_program -b "/home/gabriele/sw/ruiva-sw/ecv/ccs/Prova/config.bld" -c "/home/gabriele/sw/ccs/ccsv5/tools/compiler/tms470" "../Prova.cfg"
making package.mak (because of package.bld) ...
js: "./package.bld", line 60: Error: template generation of 'compiler.opt' failed: Error: /home/gabriele/sw/ccs/ccsv5/tools/compiler/tms470/bin/arm-none-eabi-gcc cannot be found. Ensure that rootDir for the GCArmv5T target is set correctly in ./config.bld
gmake: *** Deleting file `package.mak'
This reveals that CCS is building using TMS740 compiler, instead of Code Sourcery. This is further confirmed by looking at "Properties->C/C++ Build/Settings". The problem in this case is that I don't know how to change this configuration. I tried to go to "Properties->C/C++ Build/Tool Chain Editor", to uncheck "Display compatible toolchains only" and to select "ARM Linux GCC (Sourcery G++ Lite)", but I can't find anymore the linker in "Properties->C/C++ Build/Settings" and I lost any reference to XDCTools in "Properties/CCS Build".
In a nutshell: I would like to create with CCS a new project which is built with Code Sourcery G++ Lite, meanwhile using XDCTools to access the Codec Engine. Is this possible? If so, how?
Thanks
Gabriele