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.

EthernetIp-Adapter example does not load

Other Parts Discussed in Thread: SYSBIOS, AM3359Equipment:
Board: ICE v2, CCSv6 vs. 6.0.1.00040,
TI XDS100v2 USB Emulator,
Windows7,
am335x_sysbios_ind_sdk_1.1.0.5
NDK 2.24.1.18
NDK's NSP 1.10.2.09
SYSBIOS 6.40.3.39
Compiler TI v5.1.9


Hello,

the EthernetIp-Adapter example builds. However, there are 31 known warnings.
Trying to load the .out file fails.

This is the error message:
CortxA8: File Loader: Data verification failed at address 0x80000000
Please verify target memory and memory map.
CortxA8: GEL: File: C:\ti\am335x_sysbios_ind_sdk_1.1.0.5\sdk\examples\ethernetip_adapter\Debug\ethernetip_adapter_0.out: a data verification error occurred, file load failed

In a separate project I removed all ethernetip specific parts to get the 'Standalone switch' version as described in the Users Guide. This project compiles without errors and warnings.
But it doesn't load either. The error message is the same.
I finally tried to load a new empty project ( SYSBIOS->GNU Target Examples->Minimal ). No success either. The error message is the same except for the addres, which is 0x80000001.


In the target configuration file
XDS100v2 USB Debug Probe and
ICE_AM3359
have been chosen.
Can anybody suggest what to do?
Thank you.
Regards,
Martin H.
  • Hello,

    Please make sure you are using the right GEL files. For ICEv2, sdk\tools\gel\ICE\TMDXICE3359_v2_1A.gel

    Regards,
    Vinesh
  • I found the file, but it does not show up when I build the target. Would I have to copy it to a certain folder?
    Regards,
    Martin H.
  • I have copied the file to C:\ti\ccsv6\ccs_base\emulation\boards\ice_am3359\gel and then manually modified the path at Cortex A8 of the Target Configuration tree. But that doesn't do it.
    What is the recommended procedure?
    Regards,
    Martin H.
  • Hello Martin,

    You can load the Gel file from Tools->Gel files

    Regards,

    Vinesh

  • Hello Vinesh, in the Edit Perspective there is no 'Tools' item in the menu. 'Tools' does exist in the Debug Perspective but it does not contain a 'Gel files' item. Any ideas? Regards, Martin
  • Have you launched the configuration?
  • Hello Vinesh,

    you are right, Tools->GEL Files exist after having launched the target configuration file.
    Besides I had expected some output into the console window.
    But OnTargetConnect() does not contain any GEL_TextOut("...") so I did not see anything.

    Thank you!

    Regards,
    Martin H.
  • Hello Vinesh,

    another problem I am facing is that the project does not load reliably when I want to debug it.
    Sometimes it is ok and after loading the out file the pogramme stops in main.c and stepping through the programme is possible. But in most cases it is not.
    According to the CCS menu one might assume that the programme is running: the Suspend and Terminate menu icons are active. The LCD on the ICE board still shows that the Ethercat demo is running, which has been loaded from SPI when the reset button on the ICE board had been pressed (maybe this is ok). Also the terminal window does not show any outputs from the "standalone switch" (The ethernetip_adapter example has been modified as suggested in the description).

    I assume there is something basically wrong with my way to start as it is sometimes ok and sometimes not.
    Below is a description of the procedure. Would you please have a look at it?
    Perhaps you can see something that is obviously wrong.

    This is what I did step by step,:
    1. Create the target file
    Connection:XDS100v2 USB Debug Probe
    ICE_AM3395 has been selected as the board
    the GEL file for Cortex A8 is ..\..\..\..\am335x_sysbios_ind_sdk_1.1.0.5\sdk\tools\gel\ICE\TMDXICE3359_v2_1A.gel

    2. The project is the ethernetip_adapter or "standalone switch"
    CCSv6 is in Edit perspective
    board's reset button is pressed
    -->Ethercat demo example is loaded from SPI memory, LCD on ICE board shows text,
    text output on terminal window as expected
    run target configuration file
    connect target to Cortex A8
    -->OnTargetConnect() from TMDXICE3359_v2_1A.gel is started
    (I added a GEL_TextOut("...") command so that I can see the output in the Console window)

    3. Loading the .out file
    --> nothing suspicious, the window shows up with the progress bar indicating that the file is loading
    OnRestart() and OnFileLoaded() from TMDXICE3359_v2_1A.gel start,
    LCD on ICE board still shows the Ethercat demo text
    (that might be ok as the text also is displayed in case the switch project runs properly),
    A tab named 0x8000b8e shows the text "No source available for "0x80041108"" in red letters.

    Somewhere I read that the ethernetip_adapter example can be used for 1 hour only.
    Could that cause the issue?

    Thank you.


    Regards,
    Martin H.
  • Martin,

    I don't think the steps you go through are correct. Please follow this - 

    Specifically Step 4 and the Notes section

    Regards,
    Vinesh

  • Hello Vinesh,

    that helped a lot.
    With that Run->Suspend and Run->Restart the program counter now stops at the main function and I can start stepping through the programme.
    Also, having loaded the .out file, the AM3359_ICE_Initialization script runs without showing any errors.

    As a next step I will try to evaluate the APIs described at
    http://processors.wiki.ti.com/index.php/AM335x_ICSS_Switch_Driver_API_Guide

    Wish me luck!

    Thank you very much for your help.

    Regards,
    Martin H.