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.

  • Resolved

CCS/AM3359: How to use J-Link Debugger with AM339ICE2 in CCS.

Intellectual 330 points

Replies: 4

Views: 138

Part Number: AM3359

Tool/software: Code Composer Studio

hi. there...

I have an AM3359ICE(TMDSICE3359) and J-Link Debugger.

I configured the H/W by referring to the following URL document And I connected the J-Link to the AM3359ICE.
processors.wiki.ti.com/.../AM335x_Industrial_Communication_Engine_EVM_Rev2_1_HW_User_Guide

1. I Run CCS and Project - Import CCS Projects - ethtercat_slave_full Project

2. Environment Screenshoot

 2.1 Properties for ethercat_slave_full_AM335x_arm



 2.2 ethercat_slave_full_AM335x_arm Debug Congigurations
  2.2.1 Main


  2.2.2 Program


  2.2.3 Target


  2.2.4 Source


  2.2.5 Common

 2.3 ICE_AM3359.ccxml TargetConfigs
  2.3.1 Basic


  2.3.2 Advenced

3. Questions.

 Q1. Is Environment properly set up?

 Q2. How do I validate the physical JTAG connectivity between AM3359ICE2 and J-Link in CCS?

 Q3. Running the Debug Session will result in the following error. How do I fix errors?

 Q4. I built the ethercat_slave_full_AM335x_arm and got the following files: How to download images to AM3359ICE2?
  ethercat_slave_full_AM335x_arm.bin / ethercat_slave_full_AM335x_arm.map / ethercat_slave_full_AM335x_arm.out

in advance thank you very much.

  • Guru 137985 points
    Hi,

    Thanks for the very detailed post. Answering your questions:

    Q1 .The configuration seems ok.
    Q2. The low-level validation is harder to be done with the Jlink, given that it does not feature the Test Connection button. You can check wtih Segger support to see if they have a utility that performs a very low-level verification.
    Q3. The error message in red indicates the device is not responding to the requests from the Debug Probe, therefore it may be locked up due to pre-existing running code on the board (a common feature of the AM335x ICE boards, given they come pre-flashed with demonstration code).
    You can try to change the boot modes of your kit to prevent the board from booting from its internal flash, thus allowing the JTAG communications to properly work. Please refer to the board user's guide.
    Q4. The last screenshot indicates you are following a proper procedure. The file that is loaded via CCS is the one that has the .out extension.

    Hope this helps,
    Rafael

    When posting, click on the link Insert Code, Attach Files and more... to attach images, files or use nice formatting.

    If my reply answers your question please click on the green button "This resolved my issue".

  • In reply to desouza:

    Thank you for your response.


    I have additional questions.


    Q1. Does the board user guide mean HW_User_Guide?


    Q2. Is the following hardware configuration correct?


    Q3. How to download images to AM3359ICE2 with J-Link in CCS?


    in advance thank you very much.

  • Guru 137985 points

    In reply to simon kim:

    Hi,

    I don't have the exact same ICE board as you (mine is Rev 1), but I am still retrofitting it to get the cTI 20-pin connector so I can test it thoroughly.

    One detail: I can tell from your last picture that you have a very long cable - I wonder if it may be introducing some noise or excessive delays in communications. Also, make sure the pinout matches the table in the reference below:

    http://dev.ti.com/tirex/#/?link=Development%20Tools%2FDebug%20Probes%2FXDS%2FDocuments%2FJTAG%20Connectors

    I will have additional details tomorrow when I finish the rework on my board. 

    Regards,

    Rafael 


    When posting, click on the link Insert Code, Attach Files and more... to attach images, files or use nice formatting.

    If my reply answers your question please click on the green button "This resolved my issue".

  • In reply to desouza:

    Hi.

    I sincerely appreciate your information.

    dev.ti.com/.../

    After referring to the above URL, debugging is possible as follows

    Next I want to download to the AM3359 board.

    What should I do with CCS?

    in advance thank you very much.

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.