[ABANDONED] Failed to open listener port 2331

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

  • [ABANDONED] Failed to open listener port 2331

    I'm trying to use the j-LINK EDU debug probe along with a custom board built for our product.
    This board has a STM32L152RE Arm microcontroller and a JTAG pin out to be used with this wire
    I use TrueStudio IDE to build are project.

    It worked well for almost a week, I could flash and debug our board effortlessly from within the IDE itself. Until suddenly it started showing me the following error -

    ...............................................................................
    SEGGER J-Link GDB Server V6.22f Command Line Version

    JLinkARM.dll V6.22f (DLL compiled Jan 12 2018 16:18:01)

    Command line: -port 2331 -s -CPU Cortex-M -device STM32L152RE -endian little -speed 4000 -if swd -vd
    -----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: STM32L152RE
    Target interface: SWD
    Target interface speed: 4000kHz
    Target endian: little

    Connecting to J-Link...
    J-Link is connected.
    Firmware: J-Link V10 compiled Apr 20 2018 16:47:09
    Hardware: V10.10
    S/N: 260103243
    OEM: SEGGER-EDU
    Feature(s): FlashBP, GDB
    Checking target voltage...
    Target voltage: 1.75 V
    ERROR: Failed to listen at socket (Err = -1)
    ERROR: Failed to open listener port 2331
    Restoring target state and closing J-Link connection...
    Shutting down...
    Failed to open listener port 2331
    ...............................................................................................

    I can confirm that neither the board nor the Debug probe have an issue because the both of them communicate and establish connection using the 'J-link Commander' (See attached images)

    Please can someone help solve the issue
    Images
    • J-LINK COMMANDER ISSUE.png

      140.76 kB, 1,519×857, viewed 1,636 times
    • J-link truestudio config.png

      212.98 kB, 1,614×991, viewed 1,262 times
  • Hello,

    Thank you for your inquiry.
    Such an issue is not known to us.
    According to your post it seems that you are using a J-Link EDU for commercial purposes.
    This would be a violation of the terms of use agreement.
    Do you have another J-Link probe that can be used for commercial purposes (J-Link Base or higher)? Otherwise we would have to close this inquiry down.

    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.