Hello, Darth Maker.
With a fresh installation of Arduino 1.0, I was able to load Optiboot on a Baby Orangutan B-328 and then program it via the bootloader using these steps:
- Edit arduino-1.0/hardware/arduino/boards.txt and add the following to the bottom (this is different than what Ryan posted earlier):
orangutan328.name=Pololu Orangutan or 3pi robot w/ ATmega328
orangutan328.upload.protocol=arduino
orangutan328.upload.maximum_size=32256
orangutan328.upload.speed=144000
orangutan328.bootloader.low_fuses=0xF6
orangutan328.bootloader.high_fuses=0xDE
orangutan328.bootloader.extended_fuses=0x05
orangutan328.bootloader.path=optiboot
orangutan328.bootloader.file=optiboot_atmega328.hex
orangutan328.bootloader.unlock_bits=0x3F
orangutan328.bootloader.lock_bits=0x0F
orangutan328.build.mcu=atmega328p
orangutan328.build.f_cpu=20000000L
orangutan328.build.core=arduino
orangutan328.build.variant=standard
- Edit programmers.txt in the same directory and add the following to the bottom:
avrispv2.name=AVR ISP v2
avrispv2.communication=serial
avrispv2.protocol=avrispv2
(This assumes that you are using our USB AVR programmer to load Optiboot on the Baby Orangutan. If you are using a different programmer, you can modify or skip this step as appropriate.)
- Cut the reset trace on the Baby Orangutan as indicated in Ben’s earlier post.
- Connect the Orangutan to the programmer and apply power.
- Open Arduino 1.0.
- In Tools > Board, select the entry for the Orangutan you added earlier.
- In Tools > Serial Port, select the USB AVR Programmer Programming Port.
- In Tools > Programmer, select the AVR ISP v2 entry you added earlier.
- Select Tools > Burn Bootloader. After this completes, you can disconnect the Orangutan from the programmer.
- Connect the Orangutan to your serial adapter. I used a 0.1 uF capacitor between DTR and the Orangutan’s RESET. (You should make sure the Orangutan is unpowered while you do this.)
In Tools > Serial Port, select the port that your serial adapter is using. You should now be able to program the Orangutan using the bootloader with the Upload button.
For some reason, I did not run into the serial baud rate problem and did not have to replace WinAVR; maybe my different settings in boards.txt allowed me to avoid the problem. Let us know if these steps work for you.
- Kevin
