This is an old revision of the document!


Table of Contents

Optiboot

Optiboot is a stk500v1 compatible boot loader for AVR, generally used in Arduino boards.

Build

hg clone https://code.google.com/p/optiboot/
cd optiboot/optiboot/bootloaders/optiboot/
./makeall

Install

Here we program an ATMEGA328P using a Pony serial interface.

avrdude -P /dev/ttyS0 -c ponyser -p ATMEGA328P -e -u -U lock:w:0x3F:m -U efuse:w:0x05:m -U hfuse:w:0xDE:m -U lfuse:w:0xFF:m -U flash:w:optiboot_atmega328.hex -U lock:w:0x2F:m

We specify the USBasp like this.

avrdude -c usbasp -p ATMEGA328P -e -u -U lock:w:0x3F:m -U efuse:w:0x05:m -U hfuse:w:0xDE:m -U lfuse:w:0xFF:m -U flash:w:optiboot_atmega328.hex -U lock:w:0x2F:m
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information