On Wed, Dec 12, 2012 at 12:32 AM, Dean Camera <abcminiu
...@gmail.com> wrote:
> > I found some old 2008 posts on this, but I have been playing with your
> > bootloaders and noticed that my test runs had very occasional word errors
> > (words left at 0xFFFF) in the bootloaded code. I'm fairly sure this is
> > caused by not disabling interrupts during the programming phase (while
> the
> > bootloader is firing out time-sensitive SPM instructions). Your code
> might
> > work because there is no USB activity (hence no USB interrupts) during a
> > program page operation but I think my LED flash timer was causing a
> > problem. The sample code onhttp://
>
www.nongnu.org/avr-libc/user-manual/group__avr__boot.htmltemporarily
> > disables interrupts and it would seem an obviously bad idea to
> > unpredictably interrupt a program page operation. When I disabled
> > interrupts my 0xFFFF glitches went away.