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,
We are running SYS/BIOS with NDK on our production board using the CPSW interface. Our current software versions:
Processor AM3352
Code Composer Version: 6.0.1.00040
Compiler TI v5.1.6
SYS/BIOS 6.40.3.39
XDCTools 3.30.3.47_core
NDK 2.24.0.11
System Analyzer (UIA Target) 1.3.1.08
We are currently having issues with the NDK and have rebuilt a copied version for testing. After getting the test version of the NDK into the project properties by loading it trough Window-->Preferences--> Code Composer Stdio-->RTSC-->Products, we began to get compile failures because the xdcpath was not set to the current directory specified in the Project properties-->CCS Build-->XDCtools. When we look in the .cproject file at the top level of the project directory tree I can see the incorrect path being shown under the "fileInfo id". When I look under the project properties CCS Build-->XDCTools, the xdcpath looks correct. Why doesn't the .cproject file get updated correctly?
Thanks,
John C.
Compiler error showing incorrect path to ndk------------------------------------------------------------------------------------------------
**** Build of configuration Debug for project AIRtrac_sysbios ****
"C:\\ti\\ccsv6\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../airtrac.cfg'
'Invoking: XDCtools'
"C:/ti/ccsv6/xdctools_3_30_03_47_core/xs" --xdcpath="C:/ti/uia_1_03_01_08/packages;C:/ti/am335x_sysbios_ind_sdk_1.1.0.5/sdk/platform;C:/ti/ccsv6/ccsv6/ccs_base;C:/ti/bios_6_40_03_39/packages;C:/ti/nsp_1_10_02_09/packages;C:/ti/ndk_2_24_00_11_copy/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.A8Fnv -p AIRtrac_1 -r debug -c "C:/ti/ccsv6/ccsv6/tools/compiler/arm_5.1.6" --compileOptions "-g --optimize_with_debug" "../airtrac.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring airtrac.xea8fnv from package/cfg/airtrac_pea8fnv.cfg ...
js: "C:/Users/jconover/workspace_v6_1/AIRtrac_sysbios/airtrac.cfg", line 25: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: can't locate the package 'ti.ndk.config' along the path: 'C:/ti/uia_1_03_01_08/packages;C:/ti/am335x_sysbios_ind_sdk_1.1.0.5/sdk/platform;C:/ti/ccsv6/ccsv6/ccs_base;C:/ti/bios_6_40_03_39/packages;C:/ti/nsp_1_10_02_09/packages;C:/ti/ndk_2_24_00_11_copy/packages;C:/ti/ccsv6/xdctools_3_30_03_47_core/packages;..;'. Ensure that the package path is set correctly.
"./package/cfg/airtrac_pea8fnv.cfg", line 195
gmake.exe: *** [package/cfg/airtrac_pea8fnv.xdl] Error 1
Warning: directory "C:/ti/ndk_2_24_00_11_copy/packages" on package path does not exist
js: "C:/ti/ccsv6/xdctools_3_30_03_47_core/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
making ../src/sysbios/sysbios.aea8fnv ...
gmake[1]: Entering directory `C:/Users/.../workspace_v6_1/AIRtrac_sysbios/src/sysbios'
clea8fnv C:/ti/bios_6_40_03_39/packages/ti/sysbios/BIOS.c ...
asmea8fnv C:/ti/bios_6_40_03_39/packages/ti/sysbios/family/arm/IntrinsicsSupport_asm.asm ...
asmea8fnv C:/ti/bios_6_40_03_39/packages/ti/sysbios/family/arm/TaskSupport_asm.asm ...
asmea8fnv C:/ti/bios_6_40_03_39/packages/ti/sysbios/family/arm/exc/Exception_asm.asm ...
asmea8fnv C:/ti/bios_6_40_03_39/packages/ti/sysbios/family/arm/a8/TimestampProvider_asm.asm ...
asmea8fnv C:/ti/bios_6_40_03_39/packages/ti/sysbios/family/arm/a8/Mmu_asm.asm ...
asmea8fnv C:/ti/bios_6_40_03_39/packages/ti/sysbios/family/arm/a8/Cache_asm.asm ...
asmea8fnv C:/ti/bios_6_40_03_39/packages/ti/sysbios/family/arm/a8/intcps/Hwi_asm.s470 ...
asmea8fnv C:/ti/bios_6_40_03_39/packages/ti/sysbios/family/arm/a8/intcps/Hwi_asm_switch.s470 ...
asmea8fnv C:/ti/bios_6_40_03_39/packages/ti/sysbios/timers/gptimer/Timer_asm.s470 ...
asmea8fnv C:/ti/bios_6_40_03_39/packages/ti/sysbios/timers/dmtimer/Timer_asm.s470 ...
area8fnv BIOS.obj arm_IntrinsicsSupport_asm.obj arm_TaskSupport_asm.obj exc_Exception_asm.obj a8_TimestampProvider_asm.obj a8_Mmu_asm.obj a8_Cache_asm.obj intcps_Hwi_asm.obj intcps_Hwi_asm_switch.obj gptimer_Timer_asm.obj dmtimer_Timer_asm.obj ...
gmake[1]: Leaving directory `C:/Users/.../workspace_v6_1/AIRtrac_sysbios/src/sysbios'
gmake: Target `all' not remade because of errors.
From the .cproject file, the NDK directory is incorrect ---------------------------------------------------------------------------
<fileInfo id="com.ti.ccstudio.buildDefinitions.TMS470.Debug.367402827.582417462" name="airtrac.cfg" rcbsApplicability="disable" resourcePath="airtrac.cfg" toolsToInvoke="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.686796931.1289797647">
<tool id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.686796931.1289797647" name="XDCtools" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.686796931">
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH.945835473" name="Package repositories (--xdcpath)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH" valueType="stringList">
<listOptionValue builtIn="false" value=""${COM_TI_UIA_INSTALL_DIR}/packages""/>
<listOptionValue builtIn="false" value=""C:\ti\am335x_sysbios_ind_sdk_1.1.0.5\sdk\platform""/>
<listOptionValue builtIn="false" value=""${TARGET_CONTENT_BASE}""/>
<listOptionValue builtIn="false" value=""${BIOS_CG_ROOT}/packages""/>
<listOptionValue builtIn="false" value=""${NSP_INSTALL_DIR}/packages""/>
<listOptionValue builtIn="false" value=""C:\ti\ndk_2_24_00_11_copy\packages""/>
</option>
</tool>
<tool customBuildStep="true" id="org.eclipse.cdt.managedbuilder.ui.rcbs.1706620786" name="Resource Custom Build Step">
<inputType id="org.eclipse.cdt.managedbuilder.ui.rcbs.inputtype.991487736" name="Resource Custom Build Step Input Type">
<additionalInput kind="additionalinputdependency" paths=""/>
</inputType>
<outputType id="org.eclipse.cdt.managedbuilder.ui.rcbs.outputtype.1105796459" name="Resource Custom Build Step Output Type"/>
</tool>
</fileInfo>
----------------------------------------------------------------------------------------------------
Current Project settings showing the correct xdcpath:
As a desperation move we deleted the following line from the .cproject file:
<listOptionValue builtIn="false" value=""C:\ti\ndk_2_24_00_11_copy\packages""/>
After we deleted the line we were able to compile correctly. The problem now is that we can't add any new NDK builds. We need to add one as there is currently a bug in the NDK 2.24.00.11. We have received instructions for patching and have completed building the patch but are unable to load it.
We tried loading the patch via Window-->Preferences--> Code Composer Stdio-->RTSC-->Products->Search Now, but it does not recognize the new NDK directory. Is there some issues with Code Composer finding new components?
Thanks,
John C.