Hi Ram,

Thankyou very much for your reply. That works perfectly. It will make my debugging much easier.

Cheers,

Simon

Ram Kumar Rengaswamy wrote:
Hi,

AVR IO registers are memory mapped.
For e.g. TCCR0 register is at the address 0x53.
You can use view the contents of this IO register by creating a pointer to that address and dereferencing it.
Something like:  p/x *(uint8_t*)0x53
The memory addresses of the registers can be obtained from the AVR datasheet.

-Ram

On Aug 17, 2006, at 4:40 PM, Simon Willis wrote:

Hi,

I'm using a JTAGICE II and ice-gdb for debugging. Is there anyway to read the MCU registers when I hit a breakpoint? I know how to read the normal registers like r0,r1 etc, but I don't know how to access the peripheral registers like the timer status registers etc. Can anyone help?

Thanks,

Simon
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




--
Simon Willis    BE(CompSys)(Hons)-BSc           
PhD Candidate                           Tel: (07) 47814865
Electrical & Computer Engineering   Fax: (07) 47815177
James Cook University                   Mob: 0403653055
Townsville, QLD         4811            Email: [EMAIL PROTECTED]
                                        Web: http://eng.jcu.edu.au

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to