Hi,
i am using LPC2919/01 microcontroller right now with Eclipse, and arm-elf-gdb and Jlink GDB server.
Debugging in RAM works perfect, but my code reaches the 32 KByte RAM limit, and i wanted to run my code in Flash.
Compiling and linking with no error, but on GDB Server log i see this:
"Connected to 127.0.0.1
Reading all registers
Read 4 bytes @ address 0x00000000 (Data = 0x18F09FE5)
Resetting target
Select flash device: LPC2919
Flash download enabled
Flash breakpoints enabled
Target endianess set to "little endian"
Select auto JTAG speed (1000 kHz)
Downloading 4080 bytes @ address 0x00000000
Downloading 4096 bytes @ address 0x00000FF0
Downloading 4096 bytes @ address 0x00001FF0
Downloading 4096 bytes @ address 0x00002FF0
Downloading 4080 bytes @ address 0x00003FF0
Downloading 4096 bytes @ address 0x00004FE0
Downloading 4080 bytes @ address 0x00005FE0
Downloading 700 bytes @ address 0x00006FD0
Downloading 36 bytes @ address 0x0000728C
ERROR: Can not read register 0 (R0), CPU may not be halted
Connection to debugger closed !
ERROR: Can not read register 1 (R1), CPU may not be halted
ERROR: Can not read register 2 (R2), CPU may not be halted
ERROR: Can not read register 3 (R3), CPU may not be halted
ERROR: Can not read register 4 (R4), CPU may not be halted
ERROR: Can not read register 5 (R5), CPU may not be halted
ERROR: Can not read register 6 (R6), CPU may not be halted
ERROR: Can not read register 7 (R7), CPU may not be halted
ERROR: Can not read register 10 (R8_USR), CPU may not be halted
ERROR: Can not read register 11 (R9_USR), CPU may not be halted
ERROR: Can not read register 12 (R10_USR), CPU may not be halted
ERROR: Can not read register 13 (R11_USR), CPU may not be halted
ERROR: Can not read register 14 (R12_USR), CPU may not be halted
ERROR: Can not read register 15 (R13_USR), CPU may not be halted
ERROR: Can not read register 16 (R14_USR), CPU may not be halted
ERROR: Can not read register 9 (R15 (PC)), CPU may not be halted
ERROR: Can not read register 8 (CPSR), CPU may not be halted
ERROR: Can not read register 30 (R14_ABT), CPU may not be halted
ERROR: Can not read register 28 (SPSR_ABT), CPU may not be halted
ERROR: Can not read register 36 (R14_UND), CPU may not be halted
ERROR: Can not read register 34 (SPSR_UND), CPU may not be halted
Setting breakpoint @ address 0x00003B88, Size = 4, BPHandle = 0x0001
All pending breakpoints removed
J-Link connected
Firmware: J-Link ARM V7 compiled Jun 30 2009 11:05:27
Hardware: V7.00
S/N: 57000554
Feature(s): FlashBP, FlashDL, GDB
J-Link found 2 JTAG devices, Total IRLen = 8
JTAG ID: 0x0596802B (ARM9)
"
My init is:
"
target remote localhost:2331
monitor reset
monitor flash device = LPC2919
monitor flash download = 1
monitor flash breakpoints = 1
monitor endian little
monitor speed auto
break main
#monitor reset 2
load
"
If i set this "monitor reset 2" before load, i dont get these error, but there are strange problems during debugging, for example in my startup code, the initialisation of bss section hangs, can not clear all the segment.
Debugging in RAM, i havn't got any problem with the code...
I have tried: "monitor flash device = LPC2919/01", but it have not worked either.
Does anybody have any idea?
Thanks,
Zsolt
i am using LPC2919/01 microcontroller right now with Eclipse, and arm-elf-gdb and Jlink GDB server.
Debugging in RAM works perfect, but my code reaches the 32 KByte RAM limit, and i wanted to run my code in Flash.
Compiling and linking with no error, but on GDB Server log i see this:
"Connected to 127.0.0.1
Reading all registers
Read 4 bytes @ address 0x00000000 (Data = 0x18F09FE5)
Resetting target
Select flash device: LPC2919
Flash download enabled
Flash breakpoints enabled
Target endianess set to "little endian"
Select auto JTAG speed (1000 kHz)
Downloading 4080 bytes @ address 0x00000000
Downloading 4096 bytes @ address 0x00000FF0
Downloading 4096 bytes @ address 0x00001FF0
Downloading 4096 bytes @ address 0x00002FF0
Downloading 4080 bytes @ address 0x00003FF0
Downloading 4096 bytes @ address 0x00004FE0
Downloading 4080 bytes @ address 0x00005FE0
Downloading 700 bytes @ address 0x00006FD0
Downloading 36 bytes @ address 0x0000728C
ERROR: Can not read register 0 (R0), CPU may not be halted
Connection to debugger closed !
ERROR: Can not read register 1 (R1), CPU may not be halted
ERROR: Can not read register 2 (R2), CPU may not be halted
ERROR: Can not read register 3 (R3), CPU may not be halted
ERROR: Can not read register 4 (R4), CPU may not be halted
ERROR: Can not read register 5 (R5), CPU may not be halted
ERROR: Can not read register 6 (R6), CPU may not be halted
ERROR: Can not read register 7 (R7), CPU may not be halted
ERROR: Can not read register 10 (R8_USR), CPU may not be halted
ERROR: Can not read register 11 (R9_USR), CPU may not be halted
ERROR: Can not read register 12 (R10_USR), CPU may not be halted
ERROR: Can not read register 13 (R11_USR), CPU may not be halted
ERROR: Can not read register 14 (R12_USR), CPU may not be halted
ERROR: Can not read register 15 (R13_USR), CPU may not be halted
ERROR: Can not read register 16 (R14_USR), CPU may not be halted
ERROR: Can not read register 9 (R15 (PC)), CPU may not be halted
ERROR: Can not read register 8 (CPSR), CPU may not be halted
ERROR: Can not read register 30 (R14_ABT), CPU may not be halted
ERROR: Can not read register 28 (SPSR_ABT), CPU may not be halted
ERROR: Can not read register 36 (R14_UND), CPU may not be halted
ERROR: Can not read register 34 (SPSR_UND), CPU may not be halted
Setting breakpoint @ address 0x00003B88, Size = 4, BPHandle = 0x0001
All pending breakpoints removed
J-Link connected
Firmware: J-Link ARM V7 compiled Jun 30 2009 11:05:27
Hardware: V7.00
S/N: 57000554
Feature(s): FlashBP, FlashDL, GDB
J-Link found 2 JTAG devices, Total IRLen = 8
JTAG ID: 0x0596802B (ARM9)
"
My init is:
"
target remote localhost:2331
monitor reset
monitor flash device = LPC2919
monitor flash download = 1
monitor flash breakpoints = 1
monitor endian little
monitor speed auto
break main
#monitor reset 2
load
"
If i set this "monitor reset 2" before load, i dont get these error, but there are strange problems during debugging, for example in my startup code, the initialisation of bss section hangs, can not clear all the segment.
Debugging in RAM, i havn't got any problem with the code...
I have tried: "monitor flash device = LPC2919/01", but it have not worked either.
Does anybody have any idea?
Thanks,
Zsolt