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.

ISDK v1.1.0.3 ethernetip_adapter demo

Guru 10570 points
Other Parts Discussed in Thread: SYSBIOS, AM3359

Hello.

I am evaluating ISDK using ICEv2.
Although I installed ISDK v1.1.0.3 and try ethernetip_adapter demo(without any modification), it is not operate correctly.

Do anyone encounter the same issue?
Do you have any workaround on this?

Environment is:
  CCS v5.5.0.00077
  CGT TI v4.9.2
  XDCtools v3.24.3.33
  SYS/BIOS v6.35.1.29
  NDK v2.22.2.16

To check issue, I am doing following sequence.
  1. Install ISDK v1.1.0.3 to my PC.
  2. Import the ethernetip_adapter demo to CCS.
  (C:\ti\am335x_sysbios_ind_sdk_1.1.0.3\sdk\examples\ethernetip_adapter)
  3. Open SYS/BIOS configuration file(app.cfg) to generate files regarding project.
  4. Rebuild project and I got "ethernetip_adapter.out".
  In this point, there are one error and several warnings.

  5. Invoke debugger and connect ICEv2 using on board emulation.
  6. Run --> Reset --> CPU Reset(HW)
  7. Script --> System Initialization --> AM3359_ICE_Initialization
  8. Load "ethernetip_adapter.out" to target board.
      In this point, AM335x keep running.

  9. When I push halt button, program counter indicates 0x2008C (It means data abort exception handler).

If you have more information, please let me know.

Best regards, RY

  • Moving this to the SYS/BIOS forum.

  • RY,

    As mentioned in "Note" here - http://processors.wiki.ti.com/index.php/AM335x_SYSBIOS_Industrial_SDK_Getting_Started_Guide#Launching_and_Debugging_application_in_CCS Please click on "Restart"

    Regards,
    Vinesh

  • RY,

       Regarding the error you are getting in Step 4, can you check whether you have the file mkhex4bin.exe in the location CCS_INSTALL\ccsv5\utils\tiobj2bin.

    Regards,

    Prajith

  • Vinesh-san, Prajith-san
    Thank you for your advise.

    Vinesh Balan said:

    As mentioned in "Note" here - http://processors.wiki.ti.com/index.php/AM335x_SYSBIOS_Industrial_SDK_Getting_Started_Guide#Launching_and_Debugging_application_in_CCS Please click on "Restart"

    When I did "Restart", ARM keep running again.
    And, after click to halt, it specifies data abort(0x0002008C).

    Prajith Jayarajan said:

       Regarding the error you are getting in Step 4, can you check whether you have the file mkhex4bin.exe in the location CCS_INSTALL\ccsv5\utils\tiobj2bin.

    Yes. there is mkhex4bin.exe

    Can you see the operation correctly in your environment?
    BTW, unlike ISDK v1.1.0.3, it can operate correctly when I use ISDK v1.1.0.1.

    Best regards, RY

  • RY,

               Please refer to the form post. It refers to the procedure to load program in CCS in detail  http://e2e.ti.com/support/embedded/tirtos/f/355/t/318653.aspx?pi199400=1.

    Also make sure you are running the GEL file meant for ICE2.1 and not the one for ICE1

    regards,

    Prajith

  • Prajith-san,

    Thank you for your advise. Sorry for my late reply.
    I refered url above. But, my issue is not cleared.
    Off course, I am using GEL file for ICEv2.1.
    After that, I tried some examinations:

    a) When I use ARM CGT v4.9.x, .out binary could be made. But, the demo could not be operate.(data abort occurs everytime.)
    There are an error of "ROMS directive" and several warnings.

    b) When I use ARM CGT v5.0.x, .out binary could be made. Demo could be operate correctly. There is no error, but there are several warnings.

    c) When I use ARM CGT v5.1.x, .out binary could NOT be made. There are three errors and several warnings.

    So, I think this issue depends on CGT version.
    If it possible, I would like to ask you:
    - Can you see the same result on your environment?

    Best regards, RY

  • RY,

           Below is the Tools version recommended for ISDK 01.01.00.03.

    • Code Composer Studio  version CCS 5.5.0.00077
    • SYSBIOS 6.35.04.50 Real Time Operating System
    • Network Development Kit NDK 2.22.3.20
    • ARM Compiler version is TI v5.1.1 which comes as default with the CCS version mentioned above

    Regards,

    Prajith

  • RY,

            The Ethernetip example is tested using the above components. Can you try it out using them?

    Regards,

    Prajith

  • RY,


    Also Please use XDC tools version 3.25.3.72 . ISDK 1.1.0.3 was tested using this version

    Regards,

    Nijin

  • Prajith-san, Nijin-san,

    Thank you so much for your seamless support.

    Q) I would like to ask you whether this issue occurs only my PC.
    What do you think?

    =============
    I tested under the environment you said. But, .out binary could not been made.
    (There are 23 errors and 36 warnings.)


    - ISDK v1.1.0.3
    - CCS v5.5.0.00077
    - ARM CGT v5.1.1
    - SYS/BIOS v6.35.04.50
    - NDK v2.22.3.20
    - XDC tools v3.25.3.72

    You can see my environment from attached my built log.8306.built.log

    And a part of it is following:

    **** Build of configuration Debug for project ethernetip_adapter ****

    'Building file: ../app.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_25_03_72/xs" --xdcpath="C:/ti/ccsv5/ccs_base;C:/ti/bios_6_35_04_50/packages;C:/ti/ndk_2_22_03_20/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.A8Fnv -p ti.platforms.evmAM3359 -r debug -c "C:/ti/ccsv5/tools/compiler/arm_5.1.1" --compileOptions "-g --optimize_with_debug" "../app.cfg"
    ......
    'Building file: ../main.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv5/tools/compiler/arm_5.1.1/bin/armcl" -mv7A8 --code_state=32 --abi=eabi -me --include_path="C:/ti/ccsv5/tools/compiler/arm_5.1.1/include" --include_path="C:/ti/am335x_sysbios_ind_sdk_1.1.0.3/sdk/protocols/ethernetip_adapter/firmware" -g --gcc --

    Best regards, RY

  • RY,

    Are you making any changes to the default project settings? We do not get these errors over here, and it looks like some issue with the CCS configurations.

    Warnings are OK, it's because of conflict of header files between components.

    Regards,
    Vinesh

  • Vinesh-san,

    Yes, I am making no changes in the ISDK project.
    (Although I re-installed ISDK, but error was occured.)

    I understand you have no errors.
    Thanks.

    Best regards, RY

  • RY,

    the log indicates you build is missing the symbols for the TI RTS lib. This usually comes with the compiler and is automatically build the first time it is required.

    So either this build step failed or your project configuration is missing the lib reference. 

    Something like this:

    'Invoking: ARM Linker'

    "C:/ti/ccsv5/tools/compiler/arm_5.1.2/bin/armcl" -mv7A8 --code_state=32 --abi=eabi -me -g --gcc --define=_INCLUDE_NIMU_CODE --define=am3359 --diag_warning=225 --display_error_number --diag_suppress=112 --diag_suppress=176 -z -m"profinet_slave.map" --heap_size=0x800 --stack_size=0x800 -i"C:/ti/ccsv5/tools/compiler/arm_5.1.2/lib" -i"C:/ti/ccsv5/tools/compiler/arm_5.1.2/include" --reread_libs --warn_sections

    Usually the rts lib dependence is automatic but you may also set to a specific one:

    Regards,

  • Flank-san,

    Thank you so much for your advise.
    There is no keyword "<automatic>" in my project.
    I cleared all errors with it, also the demo operate completely.  Thanks again!!

    Best regards, RY

  • HI Ry-San, Did you fixed this probelm? how you did it?

  • terrance-san,

    Yes. I have already cleared it.
    I set the <automatically> to the Runtime support library like following:

    Best regards, RY