[avr-gcc-list] volatile with winavr2010

2010-06-01 Thread Leiu
Thanks all, But i can't find bug, Here is my full code #include avr/io.h #include avr/interrupt.h #ifndef F_CPU #define F_CPU 800 #endif #include util/delay.h volatile uint8_t first_edge = 'A'; void usart_initiation() { UCSRA = 0; //Control register initiation, double transfer rate

Re: [avr-gcc-list] volatile with winavr2010

2010-06-01 Thread Joerg Wunsch
(Better subscribe to the list, you might miss replies otherwise.) Leiu tvhoa...@gmail.com wrote: Thanks all, But i can't find bug, Here is my full code Result : i can show 'A'! why? Because you're using hyperterm? I've compiled this for an ATmega16, set it up on an STK500, and connected it

[avr-gcc-list] memcpy_P on XMega

2010-06-01 Thread Johannes Bauer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there, I've had some trouble today with the XMega. I used memcpy_P, which usually worked just fine, except for a certain part of my code where it suddenly produced garbled output. Tracing the source of the problem I noticed that on the ATxmega I

Re: [avr-gcc-list] volatile with winavr2010

2010-06-01 Thread Leiu
On Tue, 2010-06-01 at 14:28 +0200, Joerg Wunsch wrote: (Better subscribe to the list, you might miss replies otherwise.) Leiu tvhoa...@gmail.com wrote: Thanks all, But i can't find bug, Here is my full code Result : i can show 'A'! why? Because you're using hyperterm? I've

Re: [avr-gcc-list] memcpy_P on XMega

2010-06-01 Thread Joerg Wunsch
Johannes Bauer jb@gmx.de wrote: I suggest on the XMega to set NVM.CMD to zero in the beginning of memcpy or include this in the docs, as it might cost someone else roughly a day in debugging time :-/ Please submit an avr-libc bug report. -- cheers, Jorg .-.-. --... ...--