[SOLVED]J-Link GDB Server V4.20h cann't be connected with eclipse GDB .

  • [SOLVED]J-Link GDB Server V4.20h cann't be connected with eclipse GDB .

    J-Link GDB Server V4.20h cann't be connected whit Eclipse GDB,
    but J-Link GDB Server V4.14i can be connected with Eclipse GDB very well.
    Someone else encountered this?
  • Hi,

    What about the current version of the GDB Server (V4.32a)?
    Does it show the same behavior?
    Are you running eclipse and the GDBServer on the same host or remotely via TCP/IP?
    Could you please provide a more detailed description of the problem? Does the connect on the IP side fail or do some actions which are needed to perform on the target fail?


    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 Alex
    1--- I run Eclipse GDB in VMware ubuntu10.10.
    2 --- The GDB is come from Sourcery_G++_Lite.
    3 --- The target is arm9-9261 atmel.
    4 --- GDB Server IP is 192.168.14.14,GDB IP is 192.168.14.15.
    5 -- -Eclipse config is:

    GDB command: /root/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gdb
    Command Set: Standard (linux)
    Protocol version:mi
    startup:
    target remote 192.168.14.14:2331
    monitor endian little
    monitor speed auto
    monitor reset 0
    .....
    6---Use Jlink GDB Server V4.32a I can see the firt four TCP/IP packages :
    GDB to Jlink SDB Server:(192.168.14.15:59083 ->192.168.14.14:2331)

    00 1C C0 E3 68 6B 00 0C 29 0C 3B 3B 08 00 45 00 00 3C FC 71 40 00 40 06
    A0 DC C0 A8 0E 0F C0 A8 0E 0E E6 CB 09 1B B2 B9 78 40 00 00 00 00 A0 02
    16 D0 F4 57 00 00 02 04 05 B4 04 02 08 0A 00 59 84 31 00 00 00 00 01 03
    03 06

    GDB Server to GDB:(192.168.14.14:2331 ->192.168.14.15:59083)


    00 0C 29 0C 3B 3B 00 1C C0 E3 68 6B 08 00 45 00 00 28 CA BD 00 00 80 06
    D2 A4 C0 A8 0E 0E C0 A8 0E 0F 09 1B E6 CB 00 00 00 00 B2 B9 78 41 50 14
    00 00 F7 80 00 00

    GDB to Jlink SDB Server:(192.168.14.15:59084 ->192.168.14.14:2331)


    00 1C C0 E3 68 6B 00 0C 29 0C 3B 3B 08 00 45 00 00 3C 45 80 40 00 40 06
    57 CE C0 A8 0E 0F C0 A8 0E 0E E6 CC 09 1B B2 A9 C1 E4 00 00 00 00 A0 02
    16 D0 AA 8F 00 00 02 04 05 B4 04 02 08 0A 00 59 84 64 00 00 00 00 01 03
    03 06

    GDB Server to GDB:(192.168.14.14:2331 ->192.168.14.15:59084)


    00 0C 29 0C 3B 3B 00 1C C0 E3 68 6B 08 00 45 00 00 28 CA C0 00 00 80 06
    D2 A1 C0 A8 0E 0E C0 A8 0E 0F 09 1B E6 CC 00 00 00 00 B2 A9 C1 E5 50 14
    00 00 AD EB 00 00
    In the follow packages the GDB's port add one every time.for example:59083,59084,59085.....
    7 ---Use Jlink GDB Server V4.14i I can see the firt four TCP/IP packages:

    GDB to Jlink SDB Server:(192.168.14.15:59995 ->192.168.14.14:2331)

    00 1C C0 E3 68 6B 00 0C 29 0C 3B 3B 08 00 45 00 00 3C 34 05 40 00
    40 06 69 49 C0 A8 0E 0F C0 A8 0E 0E EA 5B 09 1B 5E 44 6E 84 00 00 00 00
    A0 02 16 D0 78 A5 00 00 02 04 05 B4 04 02 08 0A 00 5D 5A 81 00 00 00 00
    01 03 03 06


    GDB Server to GDB:(192.168.14.14:2331 ->192.168.14.15:59995)

    00 0C 29 0C 3B 3B 00 1C C0 E3 68 6B 08 00 45 00 00 40 D0 BD 40 00 80
    06 8C 8C C0 A8 0E 0E C0 A8 0E 0F 09 1B EA 5B 05 32 54 A0 5E 44 6E 85 B0
    12 FB 7C 82 F3 00 00 02 04 05 B4 01 03 03 00 01 01 08 0A 00 00 00 00 00
    00 00 00 01 01 04 02

    GDB to Jlink SDB Server:(192.168.14.15:59995 ->192.168.14.14:2331)

    00 1C C0 E3 68 6B 00 0C 29 0C 3B 3B 08 00 45 00 00 34 34 06 40 00
    40 06 69 50 C0 A8 0E 0F C0 A8 0E 0E EA 5B 09 1B 5E 44 6E 85 05 32 54 A1
    80 10 00 5C 64 00 00 00 01 01 08 0A 00 5D 5A 82 00 00 00 00


    GDB Server to GDB:(192.168.14.14:2331 ->192.168.14.15:59995)

    00 0C 29 0C 3B 3B 00 1C C0 E3 68 6B 08 00 45 00 00 34 D0 BE 40 00
    80 06 8C 97 C0 A8 0E 0E C0 A8 0E 0F 09 1B EA 5B 05 32 54 A1 5E 44 6E A0
    80 10 FB 61 8C 6F 00 00 01 01 08 0A 00 03 DC 6C 00 5D 5A 82
    In the follow packages the GDB's port is 59995.and never changed.

    Thanks!