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.

build Building Full Feature EtherCAT Application出现错误

Other Parts Discussed in Thread: SYSBIOS

我硬件版本是AM335X ICE V2.1

软件版本
• Code Composer Studio [2] version CCS 6.1.1.00022
• SYS/BIOS 6.42.2.29 Real Time Operating System
• XDC Tool 3.31.2.38_core
• NDK 2.24.3.35

操作步骤

1. Download EtherCAT stack version 5.11 from ETG website [27] and extract it to a local folder.
2. Apply ( See Apply instructions below) TI_ECAT.patch file found at
$(IA_SDK_HOME)\protocols\ethercat_slave\ecat_appl\patch on extracted Beckhoff stack code.
3. Copy the patched Beckhoff source files (.c and .h) to
$(IA_SDK_HOME)\Protocols\ethercat_slave\ecat_appl\EcatStack
4. Launch CCS and import ecat_appl project found at $(IA_SDK_HOME)\Protocols\ethercat_slave\ecat_appl to
CCS
5. Define macros in ecat_appl\EcatStack\ecat_def.h as required for your application. (a) Ensure that TIESC_HW is
set to 1. (b) For running default application, set TIESC_APPLICATION to 1 and CiA402_DEVICE to 0. For
SYSBIOS Industrial SDK 02.01.01 User Guide 35
running CiA402 application, set TIESC_APPLICATION to 0 and CiA402_DEVICE to 1.

6. Build the project. This will generate the application binary which can be used to run on AM335x.

refactor了一下RTSC,build时候出线如下错误,请帮分析原因


**** Build of configuration am335x_debug for project ecat_appl ****

"C:\\TI\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../am335x_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.A8F -p ti.platforms.evmAM3359 -r debug -c "C:/TI/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3" "../am335x_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 am335x_app.xa8fg from package/cfg/am335x_app_pa8fg.cfg ...
generating custom ti.sysbios library makefile ...
js: "C:/TI/xdctools_3_31_02_38_core/packages/xdc/cfg/Main.xs", line 48: XDC runtime error: can't find program 'am335x_app.xa8fg's linker command template file: 'C:\ti\am335x_sysbios_ind_sdk_1.1.0.10\sdk/protocols/ethercat_slave/ecat_appl/ecat_appl.xdt' along the path C:/TI/bios_6_42_02_29/packages;C:/ti/xdctools_3_31_02_38_core/packages;..;
gmake.exe: *** [package/cfg/am335x_app_pa8fg.xdl] Error 1
gmake.exe: *** Deleting file `package/cfg/am335x_app_pa8fg.xdl'
gmake.exe: *** [package/cfg/am335x_app_pa8fg.xdl] Deleting file `package/cfg/am335x_app_pa8fg.h'
gmake.exe: *** [package/cfg/am335x_app_pa8fg.xdl] Deleting file `package/cfg/am335x_app_pa8fg.c'
js: "C:/TI/xdctools_3_31_02_38_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 ****

请帮分析原因,谢谢

x 出现错误。请重试或与管理员联系。