help with LPC2378STK+Signalyzer+OpenOCD

Hi,

I’m using Olimex LPC2378-STK board and eVere Signalyzer JTAG and OpenOCD, I’ve met several problems debuging the board.

OpenOCD has connected to the board.

First of all, gdb does not download program with ‘load main.elf’. seems to me it gdb trys to load to address 0x0, which is the flash memory, which causes OpenOCD to error “memory write caused data abort”, and gdb replies ‘load failed’. All I can do now is use Flash Magic to flash it and start gdb without the load command.

Second, when I use ‘monitor flash’ to program the flash, do I need erase the sectors first? if so how many sectors do I need to erase? is there a way to calculate?

Third, the LPC2000 peripheral registers (#defines in lpc23xx.h) are not included in the debug symbols, that means I cannot use gdb to check a register like FIO1PIN, how can I check the value of the registers during debug.

The rest is that arm-elf-gdb is pretty unstable, sometimes it jumps among instructions, sometimes it just hangs.

Thank you