Hi guys,
I'm working on a Olimex LPC2378-STK with xVere signalyzer JTAG and
OpenOCD. It connects in gdb with the target command, but it refuse to
download program, openocd reports 'memory write caused data abort
address 0x00000000' and I can't debug. What is the problem?
Thanks a lot.
OpenOCD and LPC2378-STK
Started by ●October 15, 2007
Reply by ●October 15, 20072007-10-15
On Monday 15 October 2007 19:04:28 rootofchaos wrote:
> Hi guys,
>
> I'm working on a Olimex LPC2378-STK with xVere signalyzer JTAG and
> OpenOCD. It connects in gdb with the target command, but it refuse to
> download program, openocd reports 'memory write caused data abort
> address 0x00000000' and I can't debug. What is the problem?
>
> Thanks a lot.
Address 0x0 is flash memory - you can't write flash like you write RAM.
If you compiled your application to run out of flash you have to write it to
flash using either NXP's serial download utility or using OpenOCD's support
for LPC2000 flashes (accessible via telnet or GDB's monitor command).
If you wanted to run your application out of RAM you should check your linker
script and makefiles.
Regards,
Dominic
> Hi guys,
>
> I'm working on a Olimex LPC2378-STK with xVere signalyzer JTAG and
> OpenOCD. It connects in gdb with the target command, but it refuse to
> download program, openocd reports 'memory write caused data abort
> address 0x00000000' and I can't debug. What is the problem?
>
> Thanks a lot.
Address 0x0 is flash memory - you can't write flash like you write RAM.
If you compiled your application to run out of flash you have to write it to
flash using either NXP's serial download utility or using OpenOCD's support
for LPC2000 flashes (accessible via telnet or GDB's monitor command).
If you wanted to run your application out of RAM you should check your linker
script and makefiles.
Regards,
Dominic