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.

Can't build EtherCAT example

Other Parts Discussed in Thread: SYSBIOS

Hi

We are trying to build the EtherCat example (not the full feature application). We did all the steps according to user guide, but now the following errors appear during build:


**** Clean-only build of configuration Debug for project ethercat ****

"c:\\ti\\ccsv6\\utils\\bin\\gmake" -k clean
cleaning ../src/sysbios ...
DEL /F "ethercat.out" "configPkg\linker.cmd" "configPkg\compiler.opt" "ethercat.hex"
Das System kann die angegebene Datei nicht finden.
gmake: [clean] Error 1 (ignored)
RMDIR /S/Q "configPkg\"
Das System kann die angegebene Datei nicht finden.
gmake: [clean] Error 2 (ignored)
DEL /F "tiescappl.pp" "tiescutils.pp"
C:\ti\am335x_sysbios_ind_sdk_1.1.0.6\sdk\examples\ethercat_slave\Debug\tiescappl.pp konnte nicht gefunden werden
DEL /F "tiescappl.obj" "tiescutils.obj"
C:\ti\am335x_sysbios_ind_sdk_1.1.0.6\sdk\examples\ethercat_slave\Debug\tiescappl.obj konnte nicht gefunden werden
'Finished clean'
' '

**** Build Finished ****

**** Build of configuration Debug for project ethercat ****

"c:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
making ../src/sysbios/sysbios.aea8fnv ...
gmake[1]: Entering directory `C:/ti/am335x_sysbios_ind_sdk_1.1.0.6/sdk/examples/ethercat_slave/src/sysbios'
clea8fnv C:/ti/bios_6_41_00_26/packages/ti/sysbios/BIOS.c ...
asmea8fnv C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/IntrinsicsSupport_asm.asm ...
asmea8fnv C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/TaskSupport_asm.asm ...
asmea8fnv C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/a8/intcps/Hwi_asm.s470 ...
asmea8fnv C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/a8/intcps/Hwi_asm_switch.s470 ...
asmea8fnv C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/exc/Exception_asm.asm ...
"C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/exc/Exception_asm.asm", ERROR! at line 154:
[E0200]
Operation cannot be performed on given operands
.if (__TI_ARM_V7__ = 1)

"C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/exc/Exception_asm.asm", ERROR! at line 158:
[E0001]
Undefined symbol
ldr sp, excStackAddr

"C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/exc/Exception_asm.asm", ERROR! at line 158:
[E0001]
Address must be defined in the current section
ldr sp, excStackAddr

"C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/exc/Exception_asm.asm", ERROR! at line 158:
[E0004]
Illegal operand
ldr sp, excStackAddr

"C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/exc/Exception_asm.asm", ERROR! at line 172:
[E0200]
Operation cannot be performed on given operands
.if (__TI_ARM_V7__ = 1)

"C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/exc/Exception_asm.asm", ERROR! at line 176:
[E0001]
Undefined symbol
ldr sp, excStackAddr

"C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/exc/Exception_asm.asm", ERROR! at line 176:
[E0001]
Address must be defined in the current section
ldr sp, excStackAddr

"C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/exc/Exception_asm.asm", ERROR! at line 176:
[E0004]
10 Assembly Errors, No Assembly Warnings
Illegal operand
ldr sp, excStackAddr

"C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/exc/Exception_asm.asm", ERROR! at line 192:
[E0200]
Operation cannot be performed on given operands
.if (__TI_ARM_V7__ != 1)

"C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/exc/Exception_asm.asm", ERROR! at EOF:
[E0300]
The following symbols are undefined:
__TI_ARM_V7__
excStackAddr

Errors in Source - Assembler Aborted
gmake[1]: *** [exc_Exception_asm.obj] Error 1

>> Compilation failure
asmea8fnv C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/a8/Cache_asm.asm ...
asmea8fnv C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/a8/Mmu_asm.asm ...
asmea8fnv C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/a8/TimestampProvider_asm.asm ...
asmea8fnv C:/ti/bios_6_41_00_26/packages/ti/sysbios/timers/dmtimer/Timer_asm.s470 ...
gmake[1]: Target `all' not remade because of errors.
gmake[1]: Leaving directory `C:/ti/am335x_sysbios_ind_sdk_1.1.0.6/sdk/examples/ethercat_slave/src/sysbios'
gmake: *** [../src/sysbios/sysbios.aea8fnv] Error 2
'Building file: ../ethercat.cfg'
'Invoking: XDCtools'
"C:/ti/xdctools_3_30_05_60_core/xs" --xdcpath="c:/ti/ccsv6/ccs_base;C:/ti/bios_6_41_00_26/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.A8Fnv -p ti.platforms.evmAM3359 -r release -b "C:/ti/am335x_sysbios_ind_sdk_1.1.0.6/sdk/examples/ethercat_slave/.config/xconfig_ethercat/config.bld" -c "c:/ti/ccsv6/tools/compiler/arm_4.9.5" --compileOptions "-g --optimize_with_debug" "../ethercat.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring ethercat.xea8fnv from package/cfg/ethercat_pea8fnv.cfg ...
Warning: xdc.cfg.INCOMPATIBLE_TARGET_VERSION: the compiler version [4.9.5] used by the current target 'ti.targets.arm.elf.A8Fnv' is not compatible with compiler version of targets used to build the following packages; package ti.targets.arm.rtsarm [in C:/ti/bios_6_41_00_26/packages/ti/targets/arm/rtsarm/] was built using the target 'ti.targets.arm.elf.A8Fnv' with compiler version [5.1.5].
; package ti.sysbios.family.arm [in C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/] was built using the target 'ti.targets.arm.elf.A8Fnv' with compiler version [5.1.5].
; package ti.sysbios [in C:/ti/bios_6_41_00_26/packages/ti/sysbios/] was built using the target 'ti.targets.arm.elf.A8Fnv' with compiler version [5.1.5].
; package ti.sysbios.knl [in C:/ti/bios_6_41_00_26/packages/ti/sysbios/knl/] was built using the target 'ti.targets.arm.elf.A8Fnv' with compiler version [5.1.5].
; package ti.sysbios.family.arm.exc [in C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/exc/] was built using the target 'ti.targets.arm.elf.A8Fnv' with compiler version [5.1.5].
; package ti.sysbios.family.arm.a8.intcps [in C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/a8/intcps/] was built using the target 'ti.targets.arm.elf.A8Fnv' with compiler version [5.1.5].
; package ti.sysbios.family.arm.a8 [in C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/a8/] was built using the target 'ti.targets.arm.elf.A8Fnv' with compiler version [5.1.5].
; package ti.sysbios.heaps [in C:/ti/bios_6_41_00_26/packages/ti/sysbios/heaps/] was built using the target 'ti.targets.arm.elf.A8Fnv' with compiler version [5.1.5].
; package ti.sysbios.gates [in C:/ti/bios_6_41_00_26/packages/ti/sysbios/gates/] was built using the target 'ti.targets.arm.elf.A8Fnv' with compiler version [5.1.5].
; package ti.sysbios.hal [in C:/ti/bios_6_41_00_26/packages/ti/sysbios/hal/] was built using the target 'ti.targets.arm.elf.A8Fnv' with compiler version [5.1.5].
; package ti.sysbios.xdcruntime [in C:/ti/bios_6_41_00_26/packages/ti/sysbios/xdcruntime/] was built using the target 'ti.targets.arm.elf.A8Fnv' with compiler version [5.1.5].
; package ti.sysbios.family.arm.a8.ti81xx [in C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/a8/ti81xx/] was built using the target 'ti.targets.arm.elf.A8Fnv' with compiler version [5.1.5].
; package ti.sysbios.timers.dmtimer [in C:/ti/bios_6_41_00_26/packages/ti/sysbios/timers/dmtimer/] was built using the target 'ti.targets.arm.elf.A8Fnv' with compiler version [5.1.5].
; package ti.sysbios.utils [in C:/ti/bios_6_41_00_26/packages/ti/sysbios/utils/] was built using the target 'ti.targets.arm.elf.A8Fnv' with compiler version [5.1.5].

generating custom ti.sysbios library makefile ...
Starting build of library sources ...
making C:/ti/am335x_sysbios_ind_sdk_1.1.0.6/sdk/examples/ethercat_slave/src/sysbios/sysbios.aea8fnv ...
gmake[1]: Entering directory `C:/ti/am335x_sysbios_ind_sdk_1.1.0.6/sdk/examples/ethercat_slave/src/sysbios'
asmea8fnv C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/exc/Exception_asm.asm ...
"C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/exc/Exception_asm.asm", ERROR! at line 154:
[E0200]
Operation cannot be performed on given operands
.if (__TI_ARM_V7__ = 1)

"C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/exc/Exception_asm.asm", ERROR! at line 158:
[E0001]
Undefined symbol
ldr sp, excStackAddr

"C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/exc/Exception_asm.asm", ERROR! at line 158:
[E0001]
Address must be defined in the current section
ldr sp, excStackAddr

"C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/exc/Exception_asm.asm", ERROR! at line 158:
[E0004]
Illegal operand
10 Assembly Errors, No Assembly Warnings

ldr sp, excStackAddr

"C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/exc/Exception_asm.asm", ERROR! at line 172:
[E0200]
Operation cannot be performed on given operands
.if (__TI_ARM_V7__ = 1)

"C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/exc/Exception_asm.asm", ERROR! at line 176:
[E0001]
Undefined symbol
ldr sp, excStackAddr

"C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/exc/Exception_asm.asm", ERROR! at line 176:
[E0001]
Address must be defined in the current section
>> Compilation failure
ldr sp, excStackAddr

"C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/exc/Exception_asm.asm", ERROR! at line 176:
[E0004]
Illegal operand
ldr sp, excStackAddr

"C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/exc/Exception_asm.asm", ERROR! at line 192:
[E0200]
Operation cannot be performed on given operands
.if (__TI_ARM_V7__ != 1)

"C:/ti/bios_6_41_00_26/packages/ti/sysbios/family/arm/exc/Exception_asm.asm", ERROR! at EOF:
[E0300]
The following symbols are undefined:
__TI_ARM_V7__
excStackAddr

Errors in Source - Assembler Aborted
gmake[1]: *** [exc_Exception_asm.obj] Error 1
gmake[1]: Leaving directory `C:/ti/am335x_sysbios_ind_sdk_1.1.0.6/sdk/examples/ethercat_slave/src/sysbios'
gmake: *** [C:/ti/am335x_sysbios_ind_sdk_1.1.0.6/sdk/examples/ethercat_slave/src/sysbios/sysbios.aea8fnv] Error 2
Build of libraries failed.
error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_30_05_60_core/packages/xdc/cfg/SourceDir.xs", line 184: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2:

js: "C:/ti/xdctools_3_30_05_60_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
gmake.exe: *** [package/cfg/ethercat_pea8fnv.xdl] Error 1
gmake.exe: *** Deleting file `package/cfg/ethercat_pea8fnv.xdl'
gmake.exe: *** [package/cfg/ethercat_pea8fnv.xdl] Deleting file `package/cfg/ethercat_pea8fnv.h'
gmake.exe: *** [package/cfg/ethercat_pea8fnv.xdl] Deleting file `package/cfg/ethercat_pea8fnv.c'
js: "C:/ti/xdctools_3_30_05_60_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 ****

Do you have any idea what is going wrong?

Regards,
Daniel