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.

SYSBIOSSDK-IND-SITARA v02.01.02.02 EtherCAT with CCS 6.2

Other Parts Discussed in Thread: SYSBIOSSDK-IND-SITARA

Hi all,

Our customer is facing a issue of EtherCAT compiler with CCS 6.2.
Tools information:
H/W: AM437x IDK EVM
S/W:
1. SYSBIOSSDK-IND-SITARA v02.01.02.02
2. CCS 6.2
3. SYS/BIOS 6_42_03_35

While compiler the ethercat_slave by CCS6.2, there is a issue and error log as below.
However, the same configuraion with CCS 6.1, the issue is no longer exist.
We try to install the same version of GCC compiler as CCS 6.1 to CCS 6.2, it does not work.
It must uninstall CCS 6.2 and re-install CCS 6.1 then this issue can be solved.

Is there anything going wrong with CCS 6.2?
Anything or any configuration we miss for CCS 6.2?

Best Regards,
Wayne Kuo

Error log:

**** Build of configuration am437x_debug for project ethercat ****

"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../am437x_app.cfg'
'Invoking: XDCtools'
"C:/ti/xdctools_3_32_01_22_core/xs" --xdcpath="C:/ti/bios_6_42_03_35/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.A8Fnv -p ti.platforms.evmAM437X -r debug -c "C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3" "../am437x_app.cfg"
making package.mak (because of package.bld) ...
ti.targets.arm.elf.A8Fnv: warning: exec of 'C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/cl470 --compiler_revision' failed:java.io.IOException: Cannot run program "C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/cl470" (in directory "."): CreateProcess error=2, 系統找不到指定的檔案。; check tools installation
ti.targets.arm.elf.A8Fnv: warning: exec of 'C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/cl470 --compiler_revision' failed:java.io.IOException: Cannot run program "C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/cl470" (in directory "."): CreateProcess error=2, 系統找不到指定的檔案。; check tools installation
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring am437x_app.xea8fnv from package/cfg/am437x_app_pea8fnv.cfg ...
subdir_rules.mk:7: recipe for target 'build-1271787055' failed
error: ti.platforms.evmAM437X.Platform: "C:/ti/bios_6_42_03_35/packages/ti/platforms/evmAM437X/Platform.xs", line 60: ti.platforms.evmAM437X.Platform : The build target ti.targets.arm.elf.A8Fnv is incompatible with this platform.
js: "C:/ti/bios_6_42_03_35/packages/ti/platforms/evmAM437X/Platform.xs", line 65: TypeError: Cannot read property "attrs" from undefined (C:/ti/xdctools_3_32_01_22_core/packages/xdc/platform/Utils.xs#87)
"./package/cfg/am437x_app_pea8fnv.cfg", line 191
gmake.exe: *** [package/cfg/am437x_app_pea8fnv.xdl] Error 1
js: "C:/ti/xdctools_3_32_01_22_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake: *** [build-1271787055] Error 1
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

  • Hello,

    Wayne Kuo said:
    Cannot run program "C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/cl470" (in directory "."): CreateProcess error=2, 系統找不到指定的檔案。; check tools installation

    cl470 is the name of the TI ARM compiler (before it was renamed to armcl in more recent versions of the TI ARM compiler). Why it is trying to run the TI ARM compiler from the GCC ARM compiler directory is confusing. I would like to confirm that the project is configured to use GCC and that you fo have the ARM GCC compiler installed. If so, could you attach you project to this thread so that I can take a look as to why this issue is occuring?

    Thanks

    ki

  • Ki-Soo Lee said:
    Why it is trying to run the TI ARM compiler from the GCC ARM compiler directory is confusing.

    With a SYS/BIOS project:

    a) The compiler directory is set from the Project Properties under General -> Main -> Advanced Setting -> Compiler Version, which allows either a TI or GCC ARM compiler to be selected.

    b) The compiler executable used by the XDCtool is set via the Project Properties under General -> RTSC -> Target, where the target can select either a TI or GCC ARM compiler toolchain.

    The issue is that the Compiler Version can attempt to select the GCC ARM compiler and the RTSC Target can attempt to select the TI ARM compiler, or vice-versa, which then leads to build errors.

    Given that Wayne is attempting to build for the Cortex-A9 based AM437x IDK EVM I think the problem is that the RTSC Target has been set to "ti.targets.arm.elf.A8Fnv", whereas when using the GCC compiler for an AM437x the RTSC Target should be set to "gnu.targets.arm.A9F".

    [For Cortex-A9 devices SYS/BIOS only supports the GCC ARM compiler]