[SOLVED]J-Link GDB Server - Connection closed!

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

  • [SOLVED]J-Link GDB Server - Connection closed!

    I'm having trouble with the J-Link GDB Server. The problem is that the connection to the GDB client closes immediately after the connection is established with the server.

    I'm running J-Link GDB Server on a Windows 7 64-bit PC. I have a SAM-ICE (J-Link ARM) v8.00, connected via JTAG to our board that has an AT91SAM9G10. The J-Link is using firmware "J-Link ARM V8 compiled Jan 31 2011 18:34:52". The GDB client version is 7.0.1.

    J-Link GDB Server V4.24b Log Window:

    SEGGER J-Link GDB Server V4.24b
    JLinkARM.dll V4.24b (DLL compiled Feb 22 2011 20:47:17)

    Listening on TCP/IP port 2331

    J-Link connected
    Firmware: J-Link ARM V8 compiled Jan 31 2011 18:34:52
    Hardware: V8.00
    S/N: 28004705
    OEM: SAM-ICE
    Feature(s): RDI

    J-Link found 1 JTAG device, Total IRLen = 4
    JTAG ID: 0x0792603F (ARM9)
    SAM-ICE found !

    Connected to 10.128.0.248
    SAM-ICE found !
    Connection closed!


    GDB client console output:
    target remote 10.128.1.92:2331
    Ignoring packet error, continuing...
    warning: unrecognized item "timeout" in "qSupported" response

    I actually had everything working when I was evaluating GDB Server about two weeks ago. At this time I was using GDB Server v4.20h and the firmware of the J-Link was an older revision. My settings on the client side haven't changed since then, but now it doesn't work. I'm wondering if updating J-Link's firmware caused the problem.

    I've also tried different combinations of GDB Server and ARM toolchains without success:

    Our Timesys toolchain (gcc v4.4.3, gdb v7.0.1).
    yagarto-bu-2.21_gcc-4.5.2-c-c++_nl-1.19.0_gdb-7.2_eabi_20101223 (connected to j-link gdb-server locally)
    yagarto-bu-2.20.1_gcc-4.5.1-c-c++_nl-1.18.0_gdb-7.1_eabi_20100813
    (connected to j-link gdb-server locally)
    GDB Server 4.20h
    GDB Server 4.22f
    GDB Server 4.24b

    According to the following thread, arm-none-eabi-gdb.exe and j-link gdb-server 4.22f is working:
    JLinkGDBServer and gdb (arm-none-eabi-gdb): Remote 'g' packet reply is too long:
    But not for me.

    I've also tried different JTAG speeds without success.

    Suggestions are greatly appreciated! Thanks!

    Images
    • J-Link_GDBServer_V4.24b_Screenshot.PNG

      63.45 kB, 594×543, viewed 2,937 times
  • unrecognized item "timeout" in "qSupported" response

    Hello,
    similar thing here, but on Win XP, with GDB Server V4.24c :

    GNU gdb (Red Suite 2010Q1 by Code Red) 7.0.50.20100218-cvs
    ...
    This GDB was configured as "--host=i686-mingw32 --target=arm-none-eabi".
    ...
    Reading symbols from ... done.
    Ignoring packet error, continuing...
    warning: unrecognized item "timeout" in "qSupported" response
    Ignoring packet error, continuing...
    ...
    Ignoring packet error, continuing...
    .gdbinit:7: Error in sourced command file:
    Malformed response to offset query, timeout

    This happens always when I try to connect for the second time.
    The first time after (re-)starting GDB Server it always works.

    Any idea?

    Regards
    Gerald KK
  • Hi Gerald,

    we have fixed a problem regarding GDB Server + Starting and closing the debug session multiple times.
    We will release a new version of the software, later today (V4.24d, V4.25c).

    We will inform you as soon as the new version is available.


    Best regards
    Alex
    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.