lpc2368 - Unable to read/write eth controller regigisters by GDB

Started by Paolo Faverio March 6, 2009
Hi all,
I'm working with LPC2368, and I need to debug TCP/IP application.
I'd like to read/write Ethernet controller registers using GDB-Openocd.
Using GDB memory dump command at Ethernet controller registers memory address space, it shows everything 0x0000.

Do I need to set something in the openocd or gdb config file ?

Thanks
paolo

An Engineer's Guide to the LPC2100 Series

We noticed this too under Eclipse (hence gdb). If you put in a specific
item in the Watchpoint area, that would work fine.
The reason I surmised was that Eclispe-gdb always did memory dumps using
Byte access, whatever display format (Byte, Word etc) you chose. The
underlying access was always Byte-wide. Now this is fine for the normal
RAM as it is Byte accessible, but not so for Ethernet RAM which is only
32 bit accessible.

What was even more interesting was that IAR tried to up-sell us to their
IDE due to this problem, but on testing we discovered that it too could
not access the Ethernet RAM as a memory dump !

Possible Workaround: define a large unsigned long array that covers your
Ethernet RAM and then look at it as array elements.

Cheers,
Bruce

-----Original Message-----
From: l... [mailto:l...] On Behalf
Of Paolo Faverio
Sent: Friday, 6 March 2009 10:01 AM
To: l...
Subject: [lpc2000] lpc2368 - Unable to read/write eth controller
regigisters by GDB

Hi all,
I'm working with LPC2368, and I need to debug TCP/IP application.
I'd like to read/write Ethernet controller registers using GDB-Openocd.
Using GDB memory dump command at Ethernet controller registers memory
address space, it shows everything 0x0000.

Do I need to set something in the openocd or gdb config file ?

Thanks
paolo