JLinkGDBServer and gdb (arm-none-eabi-gdb): Remote 'g' packet reply is too long:

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

  • JLinkGDBServer and gdb (arm-none-eabi-gdb): Remote 'g' packet reply is too long:

    Hi,

    Thanks to welcome me on this forum.

    I am trying to prepare "from scratch" a set of tools on Linux to cross-compile/debug code for STM3210E evalboard.

    I am using for this purpose the CodeSourcery toolchain and:
    - A Segger JLink Version8.0
    - gdb (arm-none-eabi-gdb), simply by entering commands by hand
    - JLinkGDBServer (I do not use openocd as I face issues to get it work with the Segger JTAG).

    The JTAG firmware has been flashed with the most recent version.

    I am facing the following issue when I try to download symbol files from GDB or sometimes, when I try to connect to the server:

    (gdb) target remote localhost:2331
    Remote debugging using localhost:2331
    Remote 'g' packet reply is too long: 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000


    Well, did someone already face this issue ?

    Regards,
    Apple92
  • Now i have the same problem with: windows Sourcery G++ Lite 2010.09-51 and j-link gdb-server 4.22f or 4.23d (beta)

    ich@x200s /cygdrive/c/a/usb-device-massstorage-project
    $ arm-none-eabi-gdb bin/usb-device-massstorage-project-at91sam3u-ek-at91sam3u4-
    flash.elf
    GNU gdb (Sourcery G++ Lite 2010.09-51) 7.2.50.20100908-cvs
    Copyright (C) 2010 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law. Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "--host=i686-mingw32 --target=arm-none-eabi".
    For bug reporting instructions, please see:
    <support.codesourcery.com/GNUToolchain/>...
    Reading symbols from c:\a\usb-device-massstorage-project\bin\usb-device-massstorage-project-at91sam3u-ek-at91sam3u4-flash.elf...done.
    (gdb) target remote localhost:2331
    Remote debugging using localhost:2331
    Remote 'g' packet reply is too long: 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    (gdb) monitor endian little


    ...\yagarto\bin\arm-none-eabi-gdb.exe and j-link gdb-server 4.23d hasnt this problem but an other:

    ich@x200s /cygdrive/c/a/usb-device-massstorage-project
    $ "/cygdrive/c/Program Files (x86)\yagarto\bin\arm-none-eabi-gdb.exe" bin/usb-d
    evice-massstorage-project-at91sam3u-ek-at91sam3u4-flash.elf
    GNU gdb (GDB) 7.2
    Copyright (C) 2010 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law. Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "--host=i686-pc-mingw32 --target=arm-none-eabi".
    For bug reporting instructions, please see:
    <gnu.org/software/gdb/bugs/>...
    Reading symbols from C:\a\usb-device-massstorage-project/bin/usb-device-massstorage-project-at91sam3u-ek-at91sam3u4-flash.elf...done.
    (gdb) target remote localhost:2331
    Remote debugging using localhost:2331
    Ignoring packet error, continuing...
    warning: unrecognized item "timeout" in "qSupported" response
    Ignoring packet error, continuing...
    Ignoring packet error, continuing...
    Ignoring packet error, continuing...
    Ignoring packet error, continuing...
    Ignoring packet error, continuing...
    Ignoring packet error, continuing...
    Malformed response to offset query, timeout
    (gdb) monitor endian little
    "monitor" command not supported by this target.
    ...


    ...\yagarto\bin\arm-none-eabi-gdb.exe and j-link gdb-server 4.22f is working

    The post was edited 1 time, last by oli@snr.ch ().