On 7/14/07, poitsplace <lmburt@email.uncc.edu> wrote: > I've never attempted to use any of the AVR's with the store program > memory instruction...but I can't help but notice there's an interrupt > vector (and therefore a corresponding flag somewhere) called "SPM > READY" (Store Program Memory Ready). Is your program using this > interrupt (or checking the flag manually) to make sure it's ready? Yes, I am doing that, no need to use the ints, I'm not doing anything else while loading so this is one time I'm ok with "sit and spin", and polling. I found one problem already.. The page size is 128 words, not 64 like it says. I found this out by running it in sim, and watching it erase a page. The docs mention different chips having different page sizes, and I didn't see anywhere that it calls out a table to give those sizes. I only saw examples at 64 words/128 bytes, so I made the assumption that in the M128 that was the actual size, since this IS a M128 data sheet... :-P So, I think I may have it now, all that's remaining is to handle the case of an odd number of 128 byte packets.
Message
Re: [AVR-Chat] Re: Bootloader Frustration
2007-07-14 by David VanHorn
Attachments
- No local attachments were found for this message.