GDB Server connection issue with J-Link 4.28c

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

  • GDB Server connection issue with J-Link 4.28c

    I have a J-Link adapter connected to a Cortex-M3 board.
    I want to debug this board from a remote computer (running Linux).
    The GDB-server finds the adapter and the board just fine, but i cannot connect to the server from the remote computer.
    I get "connection timeout" error from the gdb-client.
    To debug this i have tried to connect to the server from the local computer (the same that runs the GDB-server).
    target remote 127.0.0.1:2331 <- works fine
    target remote 192.168.0.55:2331 <- connection timeout

    To rule out any Windows-firewall-issues i tried the exactly same with GDB-server 4.04a
    target remote 127.0.0.1:2331 <- works fine
    target remote 192.168.0.55:2331 <- works fine

    Is there some magic trick needed to be able to connect from a remote computer when you are running J-Link 4.28c?

    Thanks

    Mats
  • Hi Mats,

    Did you verify that the "Localhost only" checkbox is unchecked (Upper right corner, see attached screenshot)?
    By default, J-Link GDB Server is configured to allow connections from localhost only.


    Best regards
    Alex
    Images
    • LocalHostOnly.gif

      10.15 kB, 550×543, viewed 1,096 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.