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.

3359 ice v2编译ethercat slave 出错

Other Parts Discussed in Thread: SYSBIOS, AM3359, PROFIBUS

大家好,

   硬件是使用的3359ice v2的板子,现在下载软件版本号如下:

am335x_sysbios_ind_sdk_01.01.02.01

ccs用的是 Version: 6.1.3.00034 

 倍福的SSC5.10

下面是配置界面截图:

但是我编译的时候有如下提示:

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_sysbios_ind_sdk_01.01.02.01/sdk/platform/am335x/lib" -i"D:/ti/am335x_sysbios_ind_sdk_01.01.02.01/sdk/os_drivers/lib" -i"D:/ti/am335x_sysbios_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_sysbios_ind_sdk_01.01.02.01/sdk/platform/am335x/lib/am335x_platform.lib" -l"D:/ti/am335x_sysbios_ind_sdk_01.01.02.01/sdk/starterware/binary/armv7a/cgt_ccs/am335x/drivers/drivers.lib" -l"D:/ti/am335x_sysbios_ind_sdk_01.01.02.01/sdk/starterware/binary/armv7a/cgt_ccs/am335x/evmAM335x/platform/platform.lib" -l"D:/ti/am335x_sysbios_ind_sdk_01.01.02.01/sdk/os_drivers/lib/sys_bios_driver.lib" -llibc.a 
<Linking>
warning #10247-D: creating output section ".text" without a SECTIONS
   specification
warning #10247-D: creating output section ".const" without a SECTIONS
   specification
warning #10247-D: creating output section ".data" without a SECTIONS
   specification
warning #10247-D: creating output section ".bss" without a SECTIONS
   specification

warning #10247-D: creating output section
>> Compilation failure
makefile:176: recipe for target 'ecat_appl.out' failed
   "ti.sysbios.family.arm.a8.mmuTableSection" without a SECTIONS specification
warning #10247-D: creating output section "xdc.meta" without a SECTIONS
   specification
warning #10247-D: creating output section ".vecs" without a SECTIONS
   specification
warning #10247-D: creating output section ".bss:.common" without a SECTIONS
   specification
warning #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.obj

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "ecat_appl.out" not built
gmake: *** [ecat_appl.out] Error 1
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

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

  • 感觉版本有点老,下一个最新的试试:

    http://processors.wiki.ti.com/index.php/SYSBIOS_Industrial_SDK_02.01.01_Release_Notes

  • 请问您编译的是哪个工程?

  • hi,Yaoming

    我编译的工程位于下面的目录:

    D:\ti\am335x_sysbios_ind_sdk_01.01.02.01\sdk\protocols\ethercat_slave\ecat_appl

    还有个疑问,对于ethercat slave 这个上面的这个所谓的Full Feature Demo Application与Simple Demo Application 在ethercat 的功能上有哪些不一样?谢谢

  • 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)\tools\flashing tools\SPI_Flash\pre_built\CCS_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)\tools\gel
    • Load pre-built  ${IA_SDK_HOME}\tools\flashing_tools\SPI_Flash\pre_built\CCS_based\isdk_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转usb的连接线到电脑上,看到电脑上有个串口,连接上之后,只会提示如下信息:

    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

  • 你要烧写ICE的板子,但是我看你的烧写工具用的是isdk_spi_flasher.out,这个是idk的,要用ice的。

  • jason lee5 说:

    hi,Yaoming

    我编译的工程位于下面的目录:

    D:\ti\am335x_sysbios_ind_sdk_01.01.02.01\sdk\protocols\ethercat_slave\ecat_appl

    还有个疑问,对于ethercat slave 这个上面的这个所谓的Full Feature Demo Application与Simple Demo Application 在ethercat 的功能上有哪些不一样?谢谢

       Full feature, 顾名思义,就是全功能了,demo版本的只能进行一些io的操作,如果有点击什么的,需要全功能的stack.

  • Hi, ,请问您邮箱多少。

  • woshidahuaidan2011爱他hotmail点考木