Monday, May 21st 2018, 5:27am UTC+2

You are not logged in.

  • Login
  • Register

Apple92

Beginner

Date of registration: Jan 17th 2011

Posts: 3

1

Monday, January 17th 2011, 6:30pm

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

oli@snr.ch

Beginner

Date of registration: Feb 7th 2011

Posts: 5

2

Tuesday, February 8th 2011, 12:27am

try to...

"ALT F4" the j-link gdb-server, pull out the j-link from USB, reconnect, restart - and use the newest j-link software. The hole SEGGER SW seems not to be to stable. But restart all the things will help...

oli@snr.ch

Beginner

Date of registration: Feb 7th 2011

Posts: 5

3

Tuesday, February 8th 2011, 11:25am

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 <http://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:
<https://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 <http://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:
<http://www.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

This post has been edited 1 times, last edit by "oli@snr.ch" (Feb 8th 2011, 11:34am)


oli@snr.ch

Beginner

Date of registration: Feb 7th 2011

Posts: 5

4

Tuesday, February 8th 2011, 11:29am

Is there a list of working toolchains ...

... for arm-none-eabi-gdb???

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

This post has been edited 1 times, last edit by "oli@snr.ch" (Feb 8th 2011, 11:35am)