Yahoo Groups archive

AVR-Chat

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

Thread

RE: [AVR-Chat] mega64

RE: [AVR-Chat] mega64

2004-12-25 by Dave VanHorn

At 03:21 PM 12/24/2004, Hamid reza Kabiri wrote:

>Hello
>I design board and PCB, and I want program and update Mega64 in my board 
>(send new bin for my customer and they update it by PC)
>How I change my board to able program it?
>Sorry for my bad enghlish
>
>Thanks for help me.
>

If this is something that you want a customer to do, then you will need to 
write a boot-loader, using the serial port.  Atmel has application notes on 
doing this.
In the end, the AVR will re-write it's program memory using the SPM 
instruction.

There is a way to reserve a block of program space for the boot loader, 
which gets run before the main program runs, and this block of program 
space can be protected from the boot loader, so that the boot loader cannot 
damage itself.

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.