Problem found.. The page erase MUST come before the write to the SPM buffer. Interestingly, the approach I was using, would seem to at worst, give me half a page of data written, but in fact it gives all FFs. Get a packet Write half a buffer Get another packet Erase Page Write half a buffer Write page I changed the sequence to: Get a packet Erase Page Write half a buffer Get another packet Write half a buffer Write page This works.
Message
Re: [AVR-Chat] Frustration abounds..
2007-07-19 by David VanHorn