I try to debug a STM32F107VC Cortex M3 with GDB and my J-Link interface HW version 5.3.
The toolchain version is "Sourcery G++ Lite 2010.09-51" and "SEGGER J-Link GDB Server V4.25g (beta)" under Windows 7 Ultimate x64 and I have the following error:
C:\Program Files (x86)\CodeSourcery\Sourcery G++ Lite\bin>arm-none-eabi-gdb.exe
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/>.
0x00000000 in ?? ()
Target endianess set to "little endian"
Select auto JTAG speed (1000 kHz)
Resetting target
Sleep 100ms
.gdbinit:21: Error in sourced command file:
Remote 'g' packet reply is too long: 000000202500000808ed00e0000000205d470008410
000003b000000330100207a422009a41249ae289ae8b41d7029e8e700000800000120ffffffffb41
d0008000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000001
I use .gdbinit and the script is the following:
# connect to the J-Link gdb server
target remote localhost:2331
# Set gdb server to little endian
monitor endian little
# Set JTAG speed in khz
monitor speed auto
# Reset the target
monitor reset
monitor sleep 100
#Open the ELF file with symbols
file "C:\\Users\\Mr32Bit\\Desktop\\Demo\\untitled_install\\bin\\redboot.elf"
# Vector table placed in ROM
monitor writeu32 0xE000ED08 = 0x08000000
#Init registers
monitor reg sp = (0x08000000)
monitor reg pc = (0x08000004)
In attach there is my ELF file
Best regards Gian
The toolchain version is "Sourcery G++ Lite 2010.09-51" and "SEGGER J-Link GDB Server V4.25g (beta)" under Windows 7 Ultimate x64 and I have the following error:
C:\Program Files (x86)\CodeSourcery\Sourcery G++ Lite\bin>arm-none-eabi-gdb.exe
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/>.
0x00000000 in ?? ()
Target endianess set to "little endian"
Select auto JTAG speed (1000 kHz)
Resetting target
Sleep 100ms
.gdbinit:21: Error in sourced command file:
Remote 'g' packet reply is too long: 000000202500000808ed00e0000000205d470008410
000003b000000330100207a422009a41249ae289ae8b41d7029e8e700000800000120ffffffffb41
d0008000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000001
I use .gdbinit and the script is the following:
# connect to the J-Link gdb server
target remote localhost:2331
# Set gdb server to little endian
monitor endian little
# Set JTAG speed in khz
monitor speed auto
# Reset the target
monitor reset
monitor sleep 100
#Open the ELF file with symbols
file "C:\\Users\\Mr32Bit\\Desktop\\Demo\\untitled_install\\bin\\redboot.elf"
# Vector table placed in ROM
monitor writeu32 0xE000ED08 = 0x08000000
#Init registers
monitor reg sp = (0x08000000)
monitor reg pc = (0x08000004)
In attach there is my ELF file
Best regards Gian