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.
Hi all,
I’m trying to create a ccsV4 project
by using the command line (CCSv 4.2.0.10012).
I was able to create a DSP/BIOS V5
executable project, but there is still an issue.
I want to generate the flowing
lines:
<tool
id="com.ti.rtsc.buildDefinitions.DSPBIOS_5.40.tool.9792689" name="TConf Script
Compiler"
superClass="com.ti.rtsc.buildDefinitions.DSPBIOS_5.40.tool">
<option
id="com.ti.rtsc.buildDefinitions.DSPBIOS_5.40.tool.SCRIPT_VARIABLES.769361720" superClass="com.ti.rtsc.buildDefinitions.DSPBIOS_5.40.tool.SCRIPT_VARIABLES"
valueType="stringList">
<listOptionValue
builtIn="false" value="config.target=emulator"/>
</option>
</tool>
But I was not able to set the value
config.taget=emulator.
I was only able to get
this:
<tool id="com.ti.rtsc.buildDefinitions.DSPBIOS_5.40.tool.530099445" name="TConf Script Compiler" superClass="com.ti.rtsc.buildDefinitions.DSPBIOS_5.40.tool"/>
In a CCS environment,
“config.target=emulator” is set in Build
Properties->TConf Script Compiler->General Options->Script environment
variables.
I guess, I have to use the –cfgArgs keyword in my script, but I don’t
know how.
Please, can anyone explain me what to
do?
You’ll find my script below.
Thanks and regards
Mathieu
set PROJECT_NAME=edmaRingBufferLauncherTest_B2BMultiInst
set CGT_VERSION=7.0.4
set BIOS_VERSION=5.41.07.24
set CONFIG_0=Release_TCI6488
set CONFIG_1=Debug_TCI6488
set PROJECTROOT=.
set CCSV4_ROOT="C:\Program Files\Texas Instruments\ccsv4"
%CCSV4_ROOT%\eclipse\jre\bin\java ^
-jar %CCSV4_ROOT%\eclipse\startup.jar ^
-data %PROJECTROOT% -application com.ti.ccstudio.apps.projectCreate ^
-ccs.name %PROJECT_NAME% ^
-ccs.device com.ti.ccstudio.deviceModel.C6000.GenericC64xPlusDevice ^
-ccs.endianness little ^
-ccs.cgtVersion %CGT_VERSION% ^
-ccs.outputFormat coff ^
-ccs.rts rts64plus.lib ^
-ccs.configurations %CONFIG_0% %CONFIG_1% ^
-ccs.artifactName "${PROJECT_ROOT}/../../exe/%PROJECT_NAME%" ^
-ccs.setCompilerOptions "-D_COM_BENCH -DCHIP_TCI6488 -D_EDMA_BIOS" ^
-ccs.setCompilerOptions "-D_DEBUG " @configurations %CONFIG_1% ^
-ccs.setCompilerOptions "-I${TIDRVCOMROOT} -I${TIDRVEDMARINGBUFFERLAUNCHERROOT} " ^
-ccs.setCompilerOptions "-I${CG_TOOL_ROOT}/include" ^
-ccs.setCompilerOptions "-I${PROJECT_ROOT}/../../../utils -I${CslDir6488}/inc -I${CslC64xplus_IntcDir}/inc " ^
-ccs.setCompilerOptions "-mv6400+ --gcc -g --mem_model:data=far " ^
-ccs.setLinkerOptions "-i${TIDRVCOMROOT}/ti/drv/com/lib -i${TIDRVEDMARINGBUFFERLAUNCHERROOT}/ti/drv/edmaRingBufferLauncher/lib" ^
-ccs.setLinkerOptions "-i${CslDir6488}/lib -i${CslC64xplus_IntcDir}/lib " ^
-ccs.setLinkerOptions "-lcsl_c6488.lib -lcsl_c64xplus_intc.lib " ^
-ccs.setLinkerOptions "-lti_drv_com_faraday_release_64P.a64P " @configurations %CONFIG_0% ^
-ccs.setLinkerOptions "-lti_drv_edmaRingBufferLauncher_faraday_release_64P.a64P" @configurations %CONFIG_0% ^
-ccs.setLinkerOptions "-o ${PROJECT_ROOT}/../../exe/%PROJECT_NAME%_Release_TCI6488.out" @configurations %CONFIG_0% ^
-ccs.setLinkerOptions "-m ${PROJECT_ROOT}/../../exe/%PROJECT_NAME%_Release_TCI6488.map" @configurations %CONFIG_0% ^
-ccs.setLinkerOptions "-lti_drv_com_faraday_debug_64P.a64P " @configurations %CONFIG_1% ^
-ccs.setLinkerOptions "-lti_drv_edmaRingBufferLauncher_faraday_debug_64P.a64P" @configurations %CONFIG_1% ^
-ccs.setLinkerOptions "-o ${PROJECT_ROOT}/../../exe/%PROJECT_NAME%_Debug_TCI6488.out" @configurations %CONFIG_1% ^
-ccs.setLinkerOptions "-m ${PROJECT_ROOT}/../../exe/%PROJECT_NAME%_Debug_TCI6488.map" @configurations %CONFIG_1% ^
-ccs.setLinkerOptions "--stack_size=0x10000 --heap_size=0x10000 " ^
-ccs.setLinkerOptions --cfgArgs ${"-Dconfig.target=emulator"} ^
-ccs.linkFile __LNK_SRC_EdmaRingBufferLauncherUtils_/utils/cslUtils.c ^
-ccs.linkFile __LNK_SRC_%PROJECT_NAME%_/src/main.c ^
-ccs.linkFile __LNK_SRC_%PROJECT_NAME%_/project/testEDMARB.cmd ^
-ccs.linkFile __LNK_SRC_%PROJECT_NAME%_/project/testEDMARB.tcf ^
-ccs.linkFile __LNK_SRC_%PROJECT_NAME%_/project/testEDMARB.tci ^
-rtsc.biosVersion %BIOS_VERSION%
Mathieu said:-ccs.setLinkerOptions --cfgArgs ${"-Dconfig.target=emulator"} ^
I don't think ccs.setLinkerOptions is the option you want to used in this case. Let me find out for sure...