GDBServer: Upgrade 4.42B version of Problem?

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

  • GDBServer: Upgrade 4.42B version of Problem?

    HI
    My J-link -ce used 4.36g above normal, the problem appears in 4.42b;





    EGGER J-Link GDB Server V4.42b

    JLinkARM.dll V4.42b (DLL compiled Feb 14 2012 15:26:46)

    Waiting for J-Link connection...
    J-Link is connected.
    Firmware: J-Link ARM V8 compiled Feb 8 2012 14:30:39
    Hardware: V8.00
    S/N: XXXXXX
    OEM: J-Link-CE
    Listening on TCP/IP port 2331
    Waiting for GDB connection...

    It stoped "Waiting for GDB connection..." forever!!
    Who Answer my question? thank's ?( ?(

    The post was edited 5 times, last by tealeaf ().

  • Hello,

    The behavior of the GDBServer has been changed a bit.
    The problem in the old implementation was, that GDBServer was always trying connecting directly to the target when starting up
    which did not allow the user to setup some basic settings like target endianess and initial JTAG speed which are necessary to guarantee a proper target connection.
    The new version of the GDBServer waits to connect to the target until GDB requests a connection to the GDBServer.

    As soon as you connect to the GDBServer, it connects to the target.
    Example:
    (Windows + r): arm-none-eabi-gdb
    (gdb) target remote localhost:2331
    --> Now GDBServer connects to the target


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

    There is not much to understand:
    a) The GDBServer waits for an incoming connection from GDB before it tries to communicate with the target
    b) The example I added in my last post was a sample call to start GDB (by typing "arm-none-eabi-gdb" in the command line under Windows) and telling it to connect to a GDBServer on port 2331 (by typing "target remote localhost:2331")
    (Should look like in the attached screenshots)

    Hope it helps.

    Best regards
    Alex
    Images
    • GDBConnectsToGDBServer.gif

      9.26 kB, 668×331, viewed 1,020 times
    • GDBServerConnectsToTarget.gif

      12.19 kB, 550×593, viewed 877 times
    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,

    Of course there is a GDBServer version for Windows :)
    It was there a long time before the Linux version. But according to your screenshots you are already using the Windows version.
    If you mean if there is any new version:
    The latest release version for Windows & Linux can always be downloaded here: segger.com/jlink-software.html
    The latest beta version for Windows & Linux can always be downloaded here: segger.com/beta-software-version.html


    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.