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.

AM437x IDK: Full feature EtherCAT application build errors

Other Parts Discussed in Thread: SYSBIOS

We used a AM437x Industrial Development Kit and it works correctly with the base program (EtherCAT).

Nevertheless, we encountered some difficulties to build full feature EtherCAT application with CCS.

We followed the instructions from your user guide, but we had the following compilation error from CCS 6.1.1.00022.

 **** Build of configuration am437x_debug for project ecat_appl ****

"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all

'Building file: ../am437x_app.cfg'

'Invoking: XDCtools'

"C:/ti/xdctools_3_31_00_24_core/xs" --xdcpath="C:/ti/bios_6_41_04_54/packages;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A9F -p ti.platforms.evmAM437X -r debug -c "C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3" "../am437x_app.cfg"

configuring am437x_app.xa9fg from package/cfg/am437x_app_pa9fg.cfg ...

generating custom ti.sysbios library makefile ...

Starting build of library sources ...

=> xdc.exec:

---> buildCmd = C:/ti/xdctools_3_31_00_24_core/gmake.exe -f C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/protocols/ethercat_slave/ecat_appl/src/makefile.libs GEN_SRC_DIR=C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/protocols/ethercat_slave/ecat_appl/src

---> genDir = C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/protocols/ethercat_slave/ecat_appl/src

making C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/protocols/ethercat_slave/ecat_appl/src/sysbios/sysbios.aa9fg ...

gmake[1]: Entering directory `C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/protocols/ethercat_slave/ecat_appl/src/sysbios'

asma9fg C:/ti/bios_6_41_04_54/packages/ti/sysbios/family/arm/IntrinsicsSupport_asm_gnu.asm ...

arm-none-eabi-gcc.exe: error: CreateProcess: No such file or directory

gmake[1]: Leaving directory `C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/protocols/ethercat_slave/ecat_appl/src/sysbios'

gmake[1]: *** [arm_IntrinsicsSupport_asm_gnu.o] Error 1

gmake: *** [C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/protocols/ethercat_slave/ecat_appl/src/sysbios/sysbios.aa9fg] Error 2

error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_31_00_24_core/packages/xdc/cfg/SourceDir.xs", line 192: xdc.cfg.SourceDir :

=> Build of generated source libraries failed:

js: "C:/ti/xdctools_3_31_00_24_core/packages/xdc/cfg/Main.xs", line 167: Error: Configuration failed!

xdctools_3_31_00_24_core\gmake.exe: *** [package/cfg/am437x_app_pa9fg.xdl] Error 1

xdctools_3_31_00_24_core\gmake.exe: *** Deleting file `package/cfg/am437x_app_pa9fg.xdl'

xdctools_3_31_00_24_core\gmake.exe: *** [package/cfg/am437x_app_pa9fg.xdl] Deleting file `package/cfg/am437x_app_pa9fg.h'

xdctools_3_31_00_24_core\gmake.exe: *** [package/cfg/am437x_app_pa9fg.xdl] Deleting file `package/cfg/am437x_app_pa9fg.c'

js: "C:/ti/xdctools_3_31_00_24_core/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.

gmake: *** [configPkg/linker.cmd] Error 1

gmake: Target `all' not remade because of errors.

**** Build Finished ****

Could you help me?

  • I will forward this to the ISDK team.
  • Hi Caroline,

    You may try the same tool chain as listed here:

    • SYS/BIOS 6.42.2.29 Real Time Operating System
    • XDC Tool 3.31.2.38_core

    And make sure you have applied the patch properly as described here:

    The successful build log looks like below:

    **** Build of configuration am437x_debug for project ecat_appl ****

    "C:\\ti\\ccsv6_1_1\\ccsv6\\utils\\bin\\gmake" -k all
    'Building file: ../am437x_app.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_31_02_38_core/xs" --xdcpath="C:/ti/bios_6_42_02_29/packages;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A9F -p ti.platforms.evmAM437X -r debug -c "C:/ti/ccsv6_1_1/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3" "../am437x_app.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring am437x_app.xa9fg from package/cfg/am437x_app_pa9fg.cfg ...
    generating custom ti.sysbios library makefile ...
    Starting build of library sources ...
    making C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/protocols/ethercat_slave/ecat_appl/src/sysbios/sysbios.aa9fg ...
    gmake[1]: Entering directory `C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/protocols/ethercat_slave/ecat_appl/src/sysbios'
    asma9fg C:/ti/bios_6_42_02_29/packages/ti/sysbios/family/arm/IntrinsicsSupport_asm_gnu.asm ...

    Regards, Garrett