TI论坛
直播中

李欣

7年用户 267经验值
私信 关注

3359 ice v2编译ethercat slave出错请问是什么原因造成的?如何解决?

本帖最后由 一只耳朵怪 于 2018-6-21 14:33 编辑

大家好,

   硬件是使用的3359ice v2的板子,现在下载软件版本号如下:
am335x_sy***ios_ind_sdk_01.01.02.01
ccs用的是 Version: 6.1.3.00034
倍福的SSC5.10
下面是配置界面截图:


但是我编译的时候有如下提示:
  1. configured manually.'Finished building: ../EcatStack/tiescutils.c'' ''Building target: ecat_appl.out''Invoking: ARM Linker'"D:/ti/ccsv6/tools/compiler/ti-cgt-arm_15.12.1.LTS/bin/armcl" -mv7A8 --code_state=32 --float_support=VFPv3 -me -g --gcc --define=am3359 --diag_warning=225 --display_error_number --abi=eabi -z -m"ecat_appl.map" --stack_size=0x800 --heap_size=0x800 -i"D:/ti/ccsv6/tools/compiler/ti-cgt-arm_15.12.1.LTS/lib" -i"D:/ti/ccsv6/tools/compiler/ti-cgt-arm_15.12.1.LTS/include" -i"D:/ti/am335x_sy***ios_ind_sdk_01.01.02.01/sdk/platform/am335x/lib" -i"D:/ti/am335x_sy***ios_ind_sdk_01.01.02.01/sdk/os_drivers/lib" -i"D:/ti/am335x_sy***ios_ind_sdk_01.01.02.01/sdk/protocols/ethercat_slave/stack_lib" --reread_libs --define=A8_CORE=1 --warn_sections --xml_link_info="ecat_appl_linkInfo.xml" --rom_model -o "ecat_appl.out" "./EcatStack/SampleApplicationInterface.obj" "./EcatStack/aoeappl.obj" "./EcatStack/bootmode.obj" "./EcatStack/cia402appl.obj" "./EcatStack/coeappl.obj" "./EcatStack/diag.obj" "./EcatStack/ecataoe.obj" "./EcatStack/ecatappl.obj" "./EcatStack/ecatcoe.obj" "./EcatStack/ecateoe.obj" "./EcatStack/ecatfoe.obj" "./EcatStack/ecatslv.obj" "./EcatStack/ecatsoe.obj" "./EcatStack/el9800appl.obj" "./EcatStack/el9800hw.obj" "./EcatStack/emcy.obj" "./EcatStack/eoeappl.obj" "./EcatStack/fc1100hw.obj" "./EcatStack/foeappl.obj" "./EcatStack/mailbox.obj" "./EcatStack/mcihw.obj" "./EcatStack/objdef.obj" "./EcatStack/sampleappl.obj" "./EcatStack/sdoserv.obj" "./EcatStack/testappl.obj" "./EcatStack/tiesc_appreload.obj" "./EcatStack/tiesc_cache_disable.obj" "./EcatStack/tiesc_fw_cir_buff.obj" "./EcatStack/tiescappl.obj" "./EcatStack/tiescbsp.obj" "./EcatStack/tieschw.obj" "./EcatStack/tiescutils.obj" -l"configPkg/linker.cmd" -l"D:/ti/am335x_sy***ios_ind_sdk_01.01.02.01/sdk/platform/am335x/lib/am335x_platform.lib" -l"D:/ti/am335x_sy***ios_ind_sdk_01.01.02.01/sdk/starterware/binary/armv7a/cgt_ccs/am335x/drivers/drivers.lib" -l"D:/ti/am335x_sy***ios_ind_sdk_01.01.02.01/sdk/starterware/binary/armv7a/cgt_ccs/am335x/evmAM335x/platform/platform.lib" -l"D:/ti/am335x_sy***ios_ind_sdk_01.01.02.01/sdk/os_drivers/lib/sys_bios_driver.lib" -llibc.a warning #10247-D: creating output section ".text" without a SECTIONS   specificationwarning #10247-D: creating output section ".const" without a SECTIONS   specificationwarning #10247-D: creating output section ".data" without a SECTIONS   specificationwarning #10247-D: creating output section ".bss" without a SECTIONS   specificationwarning #10247-D: creating output section>> Compilation failuremakefile:176: recipe for target 'ecat_appl.out' failed   "ti.sy***ios.family.arm.a8.mmuTableSection" without a SECTIONS specificationwarning #10247-D: creating output section "xdc.meta" without a SECTIONS   specificationwarning #10247-D: creating output section ".vecs" without a SECTIONS   specificationwarning #10247-D: creating output section ".bss:.common" without a SECTIONS   specificationwarning #10247-D: creating output section ".cinit" without a SECTIONS   specification undefined             first referenced            symbol                   in file                ---------             ----------------           app_reload_code_run   ./EcatStack/tiescutils.obj app_reload_code_size  ./EcatStack/tiescutils.obj app_reload_code_start ./EcatStack/tiescutils.objerror #10234-D: unresolved symbols remainerror #10010: errors encountered during linking; "ecat_appl.out" not builtgmake: *** [ecat_appl.out] Error 1gmake: Target 'all' not remade because of errors.**** Build Finished ****

我想着应该是由于链接导致的错误,但是我无法通过提示找到争取的解决方案,或者补发分辨出具体哪里出了错误,请高手给与提示,谢谢。

回帖(8)

罗兰君

2018-6-21 06:34:25
感觉版本有点老,下一个最新的试试:
http://processors.wiki.ti.com/index.php/SYSBIOS_Industrial_SDK_02.01.01_Release_Notes
举报

曹丽娜

2018-6-21 06:54:13
请问您编译的是哪个工程?
                                                                         如果我的回答解决了您的问题,请确认答案,谢谢!:)
举报

李欣

2018-6-21 07:09:50
引用: jvwueurw 发表于 2018-6-21 06:54
请问您编译的是哪个工程?
                                                                         如果我的回答解决了您的问题,请确认答案,谢谢!:)

hi,Yaoming
我编译的工程位于下面的目录:
D:tiam335x_sy***ios_ind_sdk_01.01.02.01sdkprotocolsethercat_slaveecat_appl
还有个疑问,对于ethercat slave 这个上面的这个所谓的Full Feature Demo Application与Simple Demo Application 在ethercat 的功能上有哪些不一样?谢谢
举报

李欣

2018-6-21 07:18:08
引用: 344868615qq 发表于 2018-6-21 06:34
感觉版本有点老,下一个最新的试试:
http://processors.wiki.ti.com/index.php/SYSBIOS_Industrial_SDK_02.01.01_Release_Notes

hi,Jian Zhou 
通过改变版本已经可以通过编译了,但是,我想把编译好的程序放到spi flash,指导书给出的步骤为:
This section describes how to flash a binary image to the SPI flash on ICE.
The pre-built CCS tool for SPI flash(isdk_spi_flasher.out) can be found in $(IA_SDK_HOME)toolsflashing toolsSPI_Flashpre_builtCCS_based.


  • Make sure that USB cable is connected to PC from ICE
  • Launch CCS 
  • Launch Target configuration for XDS100 emulator. See " Target Configuration" section for details.
  • Load GEL file and execute "AM335x_EVM_Initialization" or "AM3359_ICE_Initialization" script(See "GEL File Loading" section for details), if not done.This is to initialize DDR and On-Chip RAM. GEL file can be found in $(IA_SDK_HOME)toolsgel
  • Load pre-built  $[IA_SDK_HOME]toolsflashing_toolsSPI_Flashpre_builtCCS_basedisdk_spi_flasher.out  to the ICE EVM. See Launching and Debugging application section for details.
  • Ensure that the binary image (e.g. MLO or ethercat_SPI.bin or profibus_slave_SPI.bin) to be flashed is present in the Windows Machine.
  • Enter the board type when prompted as shown below. 
Enter the board type [0-ICE, 1-IDK ]

  • Enter the operation when prompted as shown below. 
Enter Operation [1 - Flash ] [2 - Erase] : ......................但是步骤上说会有提示,但是我没有看到那里有提示。能否给与提示,谢谢。ps:板子通过jtag转u***的连接线到电脑上,看到电脑上有个串口,连接上之后,只会提示如下信息:TI EtherCAT Demo Application Build - 3.3.0 - running on ICE Ver 2
TI Industrial SDK Version : IASDK 2.1.2.2
Device name : AM335X
Chip Revision : AM335x [PG2.1]
ARM Clock rate : 600
Device Type : EtherCAT Device
TI EtherCAT Demo Application Build - 3.3.0 - running on ICE Ver 2

best wishes
jason
举报

更多回帖

发帖
×
20
完善资料,
赚取积分