Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Re: Bootloader Frustration

2007-07-14 by David VanHorn

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.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.