URL: <http://savannah.nongnu.org/bugs/?30085>
Summary: memcpy_P on XMega does not clr NVM.CMD before copy Project: AVR C Runtime Library Submitted by: joebauer Submitted on: Di 08 Jun 2010 15:45:48 GMT Category: Library Severity: 3 - Normal Priority: 5 - Normal Item Group: libc code Status: None Percent Complete: 0% Assigned to: None Open/Closed: Open Discussion Lock: Any Release: 1.6.7 Fixed Release: None _______________________________________________________ Details: 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 use the NVM.CMD register and set it to reading the calibration row (0x02). However, since I did not return it to NOP (0x00), subsequent calls to memcpy_P lead to a wrong result, since the behaviour of lpm has changed with a changed NVM.CMD. 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 :-/ Regards, Johannes _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?30085> _______________________________________________ Nachricht geschickt von/durch Savannah http://savannah.nongnu.org/ _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-libc-dev