[SOLVED] J-Link error - "Could not measure total IR len. TDO is constant high." SWD stuck in reset

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

  • [SOLVED] J-Link error - "Could not measure total IR len. TDO is constant high." SWD stuck in reset

    I am trying to use J-Link to debug my custom board with arm microcontroller - LPC2148FBD64-S.
    I am using SEGGER J-Link Commander V6.20h with Firmware: J-Link Pro V4.
    S/N : 174403384




    When trying to use the JTAG debugger I get the error - Could not measure total IR len. TDO is constant high.
    I do read Vtref close to 3.3V as expected.
    So, when I couldn't get the JTAG to communicate with the board, I tried SWD and this time Jlink driver tries to download the application on the board, but it just gets stuck in the reset handler and I just see the debugger stopping at the reset vector line of code in my cstartup file.
    Also find attached the debug log when I used the SWD.

    SWD.txt


    Do you have any suggestions for a fix or what the problem might be?

    Thanks.

    The post was edited 1 time, last by burn ().

  • Hello,

    Thank you for your inquiry.

    The described behaviour is rather odd.
    Was the J-Link working on another target?
    Do you have an eval board with the particular chip to test against?
    Could you please post the full Commander output when trying to connect?
    How is JTAG/SWD wired on your custom board?

    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.
  • Hi Nino,

    The Jlink has been working for another board that I used for other applications. It had the same microcontroller LPC2148.
    I have 8 pin JTAG connection available on the board. So I just use the 3.3V, nTrst, TDI, TMS, TCK, TDO and GND pins from the 20 pin JTAG.
    Find below the debug outputs









    Thanks!
  • Hello,

    The error output you are seeing suggest that the JTAG connection is physically not connected properly.
    At least TDO is not wired as expected and is pulled constantly high.
    Please check your physical debug connection again and if all for JTAG needed connections are present.

    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.