[SOLVED] Jlink and daisy chain issue

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] Jlink and daisy chain issue

    Hi,

    I have an issue whith Jlink in Jtag daisy chain configuration:


    |JLINK plus| -----TDI------>| RM48 | ------------> | AM3354 |
    | |
    | <--- TDO -----------------------------------------|


    when I run the following command :

    Source Code

    1. JLinkGDBServerCLExe -select IP=xx.xx.xx.xx -device RM48L7x -if JTAG -speed auto -ir -jlinkscriptfile JlinkTarget.conf

    with this config file :



    Source Code

    1. void ConfigTargetSettings(void) {
    2. JLINK_SYS_Report("J-Link script file: Manually configuring JTAG chain");
    3. JLINK_JTAG_SetDeviceId(0, 0x3BA00477); // IRLen: 4 AM3354
    4. JLINK_JTAG_SetDeviceId(1, 0x4BA00477); // IRLen: 4 RM48=> CoreSight DAP (This is the one we want to communicate with)
    5. //
    6. // Pre-select CoreSight DAP to be the one J-Link shall communicate with, for this session
    7. //
    8. JLINK_JTAG_IRPre = 4; // Sum of IRLen of all JTAG TAPs preceding the one we want to communicate with
    9. JLINK_JTAG_DRPre = 1; // Number of JTAG TAPs preceding the one we want to communicate with
    10. JLINK_JTAG_IRPost = 0; // Sum of IRLen of all JTAG TAPs following the one we want to communicate with
    11. JLINK_JTAG_DRPost = 0; // Number of JTAG TAPs following the one we want to communicate with
    12. JLINK_JTAG_IRLen = 4; // IRLen of device we want to communicate with
    13. return 0;
    14. }
    Display All

    I get this error :

    Source Code

    1. <...>
    2. Connecting to J-Link...
    3. J-Link is connected.
    4. Firmware: J-Link Pro V4 compiled Apr 20 2018 16:46:30
    5. Hardware: V4.00
    6. S/N: 174402511
    7. Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
    8. Checking target voltage...
    9. Target voltage: 3.27 V
    10. Listening on TCP/IP port 2331
    11. Connecting to target...ERROR: CPU-TAP not found in JTAG chain
    12. ERROR: CPU-TAP not found in JTAG chain
    Display All


    Is there a wrong thing in my configuration file ?
  • Hello,

    Thank you for your inquiry.
    Unfortunately both these devices require special JTAG connect handling as they both have a so called TI ICEPICK on board which is also in the JTAG chain and needs to be configured.
    In a "single" device chain J-Link takes care of this themselves.
    However if you daisy chain two different ICEPICK devices together you get a JTAG chain like this: 0: AM3354 1: ICEPICK0 2: RM48 3: ICEPICK1.
    We will discuss this internally if such a setup is possible using a JLinkScript and come back to you.

    For further discussion, would it be OK for you if we contact you on the e-mail address that you registered with on the forum?

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Hello,

    sorry for delay in response. In the meantime we have setup a support ticket system.
    Could you open a ticket at segger.com/ticket for further discussion?

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.