[SOLVED] J-Link EDU cannot connect to target

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

  • [SOLVED] J-Link EDU cannot connect to target

    Hi,

    I'm trying to Debug as JLINK EDU on a towerkit for a Kinetis K64 using MCU Xpresso IDE and I get this message everytime I launch a debug session.



    Could not connect to target.
    SEGGER J-Link GDB Server V6.32b Command Line Version
    JLinkARM.dll V6.32b (DLL compiled May 8 2018 18:26:33)
    Command line: -nosilent -swoport 2332 -select USB=260109454 -telnetport 2333 -singlerun -endian little -noir -speed auto -port 2331 -vd -device MK64FX512xxx12 -if SWD -halt -reportuseraction
    -----GDB Server start settings-----
    GDBInit file: none
    GDB Server Listening port: 2331
    SWO raw output listening port: 2332
    Terminal I/O port: 2333
    Accept remote connection: localhost only
    Generate logfile: off
    Verify download: on
    Init regs on start: off
    Silent mode: off
    Single run mode: on
    Target connection timeout: 0 ms
    ------J-Link related settings------
    J-Link Host interface: USB
    J-Link script: none
    J-Link settings file: none
    ------Target related settings------
    Target device: MK64FX512xxx12
    Target interface: SWD
    Target interface speed: auto
    Target endian: little
    Connecting to J-Link...
    $$UserActionStart$$: Terms of use
    $$UserActionEnd$$: Terms of use
    J-Link is connected.
    Device "MK64FX512XXX12" selected.
    Firmware: J-Link V10 compiled Jul 23 2018 09:53:14
    Hardware: V10.10
    S/N: 260109454
    OEM: SEGGER-EDU
    Feature(s): FlashBP, GDB
    Checking target voltage...
    Target voltage: 3.18 V
    Listening on TCP/IP port 2331
    Connecting to target...InitTarget()
    Connect Under Reset
    Connect Under Reset
    InitTarget()
    Connect Under Reset
    Connect Under Reset
    ERROR: InitTarget(): PCode returned with error code -1
    InitTarget()
    Connect Under Reset
    Connect Under Reset
    InitTarget()
    Connect Under Reset
    Connect Under Reset
    ERROR: InitTarget(): PCode returned with error code -1
    ERROR: Could not connect to target.
    Target connection failed. GDBServer will be closed...Restoring target state and closing J-Link connection...
    Shutting down...
    Could not connect to target.

    debug is working with USB but I'm trying to use J LINK
  • Hello,

    Thank you for your inquiry.
    Such an issue is not known to us.
    Does connecting with the J-Link commander work? wiki.segger.com/J-Link_cannot_…nection_is_unsuccessful_2
    Could you provide a J-Link log file of the failed GDB session? wiki.segger.com/Enable_J-Link_log_file

    EDIT: We received your inquiry per e-mail in parallel. Please try to use one communications channel for future inquires so no information gets lost.
    This thread will be closed now.

    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.