[ABANDONED] JLink unable to connect to target

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

  • [ABANDONED] JLink unable to connect to target

    Both JLinkRTTViewer and JLink command line can not connect to target; JLink output:
    ----------------------
    J-Link>conf
    USB-Address: 0
    Enum. type: Real-SN is used
    Real-SN: 50112953
    KS-Power: Off (Default)
    J-Link>swospeed
    Target connection not established yet but required for command.
    Please specify device / core. <Default>: NRF52832_XXAA
    Type '?' for selection dialog
    Device>exit
    Please specify target interface:
    J) JTAG (Default)
    S) SWD
    F) FINE
    I) ICSP
    C) C2
    T) cJTAG
    TIF>S
    Specify target interface speed [kHz]. <Default>: 4000 kHz
    Speed>
    Device "NRF52832_XXAA" selected.


    Connecting to target via SWD
    InitTarget() start
    InitTarget() end
    InitTarget() start
    InitTarget() end
    InitTarget() start
    InitTarget() end
    InitTarget() start
    InitTarget() end
    Cannot connect to target.
    J-Link>Target connection not established yet but required for command.
    ^C
    Fri 01/31/2020 18:01:25 C:\Program Files (x86)\SEGGER\JLink>

    JLink version is 6.44a, but I tried a later version 6.62a


    Log file of nordic reset command is:

    --------------------------
    Fri Jan 31 18:17:54$ cat log.log
    --------------------------------------------------------------------------------
    C:\Program Files (x86)\Nordic Semiconductor\nrf5x\bin\nrfjprog.exe -r --log
    nrfjprog verion 9.7.2
    --------------------------------------------------------------------------------
    FUNCTION: open_dll.
    FUNCTION: open_dll.
    FUNCTION: enum_emu_snr.
    FUNCTION: enum_emu_snr.
    FUNCTION: enum_emu_snr.
    FUNCTION: enum_emu_snr.
    FUNCTION: connect_to_emu_with_snr.
    FUNCTION: connect_to_emu_with_snr.
    FUNCTION: connect_to_emu_without_snr.
    FUNCTION: enum_emu_snr.
    Device "NRF52832_XXAA" selected.
    FUNCTION: read_connected_emu_snr.
    FUNCTION: read_connected_emu_snr.
    FUNCTION: read_device_family.
    FUNCTION: read_device_family.
    JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -1.
    JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -102.
    FUNCTION: close_dll.
    FUNCTION: close_dll.
  • Hi,
    Thank you for your inquiry.
    Such an issue is not known to us.

    1) Could you please follow the troubleshooting article on the page linked below
    and send us a screenshot of the entire J-Link Commander output?
    wiki.segger.com/J-Link_cannot_…the_CPU#Target_connection
    2) Could you please send us a J-Link log file? How to enable:
    wiki.segger.com/J-Link_DLL#Enable_J-Link_Log_File
    3) Do you use custom hardware or an evaluation board? In the latter case which one?
    3.1) If custom hardware, do you experience the same problem on an evaluation board?
    4) Is there an application running on the target?
    5) Is the target in any low power mode or similar?

    Best regards,
    Fabian
    Please read the forum rules before posting: Forum Rules

    Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
    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.