|
From: | Marek Pietrzak |
Subject: | Re: [Simulavr-devel] How to read/write IO registers |
Date: | Fri, 07 Sep 2012 21:21:03 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0 |
Actually your commands worked for me and ATMega16: ... my simple program #include <avr/io.h> int main(void) { UCSRB = 1<<RXCIE; for(;;); return 0; } ... debugging with simulavr Program received signal SIGINT, Interrupt. main () at test.c:6 6 for(;;); (gdb) x/xb 0x2A 0x80002a: 0x80 (gdb) set {char}0x2A=0x81 (gdb) x/xb 0x2A 0x80002a: 0x81 (gdb) What do you get? Regards, Marek On 09/05/2012 12:55 PM, Andrey Vasilyev wrote:
Hello, all! Could you please help me to understand how to read/write from/to IO registers using avr-gdb and simulavr? I mean when run something like: ldi r17, (1<<RXCIE) out UCSRB, r17 How can I see what has been written to UCSRB IO register? And how can I change that value? Something like: x/4xb 0x2a or set {int}0x2a=0x80 Doesn't work. I've been looking for this thing long time now... Thank you, Andrey. _______________________________________________ Simulavr-devel mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/simulavr-devel
[Prev in Thread] | Current Thread | [Next in Thread] |