EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

Debugging in Eclipse - Possible to display Peripheral Registers Symbolically?

Started by henrym_33 October 8, 2009
Hi everybody,

I'm debugging my LPC2378 project in Eclipse (GNUARM, OpenOCD, GDB toolchain), and I don't see a way to view the various chip peripheral registers (FIO0PIN, TOIR, U0THR, etc) symbolically. I can only view them using the memory dump window by specifying the register's address, which is sort of clunky. I can view registers r0-15 just fine in the register window.

Is there a way to view these registers symbolically in Eclipse?

Thanks...

An Engineer's Guide to the LPC2100 Series

Hi,

In IAR I don't know of a way to do that either, except by memory dump, Maybe other debuggers can do it using symbolic variable names?

On another note, I am trying to migrate from IAR to Eclipse, and I am having trouble with the whole process. I must admit I am very new to Eclipse, so there is a learning curve there in terms of customisingit to ARM...

How did you go about it?

Thanks, Adrian

--- In l..., "henrym_33" wrote:
>
> Hi everybody,
>
> I'm debugging my LPC2378 project in Eclipse (GNUARM, OpenOCD, GDB toolchain), and I don't see a way to view the various chip peripheral registers (FIO0PIN, TOIR, U0THR, etc) symbolically. I can only view them using the memory dump window by specifying the register's address, which is sort of clunky. I can view registers r0-15 just fine in the register window.
>
> Is there a way to view these registers symbolically in Eclipse?
>
> Thanks...
>

Thanks for the info, Adrian. I'm surprised IAR won't do this - my experience using smaller micros like PICs and AVRs is different.

Regarding Eclipse, I used the various Lynch tutorials and they got me most of the way there pretty painlessly. I think they're available in the archives if you don't have them. I think the one I used most was "ARM Cross Development With Eclipse Components Revision3 March 17, 2006". The last steps were somewhat painful for me though - getting debugging to work and getting flashing to work over JTAG. That was a matter of getting the correct scripts which took me awhile and required searching the 'Net & digging into OpenOCD and GDB a little bit. I think I made a post on this list, that you can search for, with my final working scripts. Now everything works pretty well and I can get going on my project.

Good Luck...

--- In l..., "adrianunderwater" wrote:
>
> Hi,
>
> In IAR I don't know of a way to do that either, except by memory dump, Maybe other debuggers can do it using symbolic variable names?
>
> On another note, I am trying to migrate from IAR to Eclipse, and I am having trouble with the whole process. I must admit I am very new to Eclipse, so there is a learning curve there in terms of customisingit to ARM...
>
> How did you go about it?
>
> Thanks, Adrian
>
> --- In l..., "henrym_33" wrote:
> >
> > Hi everybody,
> >
> > I'm debugging my LPC2378 project in Eclipse (GNUARM, OpenOCD, GDB toolchain), and I don't see a way to view the various chip peripheral registers (FIO0PIN, TOIR, U0THR, etc) symbolically. I can only view them using the memory dump window by specifying the register's address, which is sort of clunky. I can view registers r0-15 just fine in the register window.
> >
> > Is there a way to view these registers symbolically in Eclipse?
> >
> > Thanks...
>

--- In l..., "adrianunderwater" wrote:
>
> Hi,
>
> In IAR I don't know of a way to do that either, except by memory dump, Maybe other debuggers can do it using symbolic variable names?
>
IAR has a register view window which you need to turn on. (View->Registers). From there any of the internal registers can be viewed. All registers with bit fields have an exploded view so you can see what the bits are doing.


The 2024 Embedded Online Conference