Hi,
I face some issues with debugging a simple LED application for my STM32 stamp module (steitec.net/product_info.php?l…12-Stamp&products_id=143&).
My setup: I use the CodeSourcery toolchain, along with Eclipse Helios (CDT) and MingW in a Windows 7 (64 bit) environment.
My J-Link is pretty new: Firmware: J-Link ARM V8 compiled Nov 19 2010 11:55:23 and the Segger toolchain has version 4.20p. The init file - based on page 21 of the Jlink GDB Server documentation - is:
Display All
When starting the gdb server, the log says:
When starting the debugging in Eclipse, the following log output is generated:
Obviously, there are some issues with the download.
Furthermore, the GDB-Debugger throws an error window stating "Can not read register 27 (CONTROL) while CPU is running".
I would like to add that the download of the related main.hex file via serial interface works without any problems.
Attached is the zip archive with main.elf and the linker script.
Can anybody help me?
Cheers
Christoph
I face some issues with debugging a simple LED application for my STM32 stamp module (steitec.net/product_info.php?l…12-Stamp&products_id=143&).
My setup: I use the CodeSourcery toolchain, along with Eclipse Helios (CDT) and MingW in a Windows 7 (64 bit) environment.
My J-Link is pretty new: Firmware: J-Link ARM V8 compiled Nov 19 2010 11:55:23 and the Segger toolchain has version 4.20p. The init file - based on page 21 of the Jlink GDB Server documentation - is:
Source Code
- # Connect to the J-Link gdb server
- target remote localhost:2331
- monitor speed Auto
- # STM32F103RBT6
- monitor flash device = STM32F103RB
- monitor flash breakpoints = 1
- monitor flash download = 1
- load elf/main.elf
- # Initializing PC and stack pointer
- monitor reg r13 = (0x00000000)
- monitor reg pc = (0x00000004)
When starting the gdb server, the log says:
J-Link found 2 JTAG devices, Total IRLen = 9
JTAG ID: 0x3BA00477 (Cortex-M3)
When starting the debugging in Eclipse, the following log output is generated:
Connected to 127.0.0.1
Reading all registers
Read 4 bytes @ address 0x00000000 (Data = 0x20004FFF)
Select auto JTAG speed (1000 kHz)
Select flash device: STM32F103RB
Flash breakpoints enabled
Flash download enabled
Downloading 484 bytes @ address 0x08000000
Downloading 5736 bytes @ address 0x080001E4
Downloading 40 bytes @ address 0x0800184C
Writing register (PC = 0xE4010008)
ERROR: No matching RAMCode found (11713201)
Failed to download RAMCode.
Please check your flash settings!
Connection to debugger closed !
Obviously, there are some issues with the download.
Furthermore, the GDB-Debugger throws an error window stating "Can not read register 27 (CONTROL) while CPU is running".
I would like to add that the download of the related main.hex file via serial interface works without any problems.
Attached is the zip archive with main.elf and the linker script.
Can anybody help me?
Cheers
Christoph
The post was edited 4 times, last by christoph ().