As Thomas Carsten Franke wrote:

> I did not restored the NVM CMD because I
> didn't know that it would has to be.

This is correct.  We recently added a note to the documentation in the
header file <avr/pgmspace.h> telling that on Xmega devices, all the
functions will only work as designed if NVM_CMD is set to 0x00 (NOP).

As you had to manually take care to set NVM_CMD to something else
before, I think it's only fair to leave the job to the programmer to
restore it afterwards.

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)

_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to