seema
1
Hi
Is anyone around using this combination to debug FLASH???
i can write to flash but I can’t seem to debug it!
i get the following error:
0xe01fc040: 00000000
flash ‘lpc2000’ found at 0x00000000
wrote file lpc_uart.bin to flash bank 0 at offset 0x00000000 in 0s 796809us
(Internal error: pc 0x0 in read in psymtab, but not in symtab.) x 5 lines
_boot () at crt0.S:40
(Internal error: pc 0x0 in read in psymtab, but not in symtab.)
Current language: auto; currently asm
(Internal error: pc 0x0 in read in psymtab, but not in symtab.) x8 lines
This is a GDB error, and I’m not really sure what it means.
A few things to keep in mind:
-
use the same toolchain to compile and to debug (i.e. not a GDB/Insight from a different toolchain)
-
while the OpenOCD needs a plain binary to write to flash, GDB/Insight needs a ELF executable
-
if in doubt, try with GDB first, use Insight when you’re sure that GDB connects, resumes, steps etc. correctly
Regards,
Dominic
seema
3
Hi Dominic!
I have indicated the binary file here in my makefile:
program: $(TARGET).elf $(TARGET).bin
and i use the .elf file when i use Insight
Also this sort of thig happens when I connect to target using GDB:
C:\Work\copy\examples\FLASH lpc_uart0>openocd -f “FLASH lpc2xxx_jtagkey.cfg”
Info: openocd.c:82 main(): Open On-Chip Debugger (2006-08-17 17:00 CEST)
Info: target.c:219 target_init_handler(): executing reset script 'lpc2148.scr
ipt’
Warning: arm7_9_common.c:781 arm7_9_halt(): target was already halted
Info: server.c:67 add_connection(): accepted ‘gdb’ connection from 0
Info: server.c:367 server_loop(): dropped ‘gdb’ connection
which is good…the drop in connection is just when i close Insight
But…what do u mean when you say same toolchain?