Yahoo Groups archive

AVR-Chat

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

Message

Re: Bootloader Frustration

2007-07-15 by Mike Perks

David,

> 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

I really hope you are using one of the standard ASM include files such
as mdef128.inc. It is going to save hardcoding everything. It includes
definitions for PAGESIZE (128), and FIRSTBOOTSTART (0xfe00).

The flash page size is also listed in the table on page 294 of the
mega128 datasheet and referred to from pages 201 and 306 as well. See
http://atmel.com/dyn/resources/prod_documents/doc2467.pdf.

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.