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
[email protected]
https://lists.nongnu.org/mailman/listinfo/simulavr-devel
_______________________________________________
Simulavr-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/simulavr-devel