| ATMega328P - Burning bootloader |
|
ATMega328P - Burning bootloader In this article I will describe how to burn boot loader on a new ATMega328P using an Arduino Duemilanove board - BitBang Mode - and also how can you “morph” your Duemilanove into a Uno. Almost everything posted here is taken from an article called “Burning the Bootloader without external AVR-Writer”, so all the credits goes to KIMIO KOSAKA. Let the transformation begin… First we will need some wires to create connections on the Arduino Duemilanove board. For a flexible use I recommend to take an USB cable like in the picture below and cut it at about 10 cm from the connector.
Take a 4 pin 2.54mm Male Header and solder it on the Arduino Duemilanove where X3 is marked on the board.
Now let’s connect the ICSP header with the X3 as in the following picture
and the result
Before you proceed with each connection check it twice, you don’t want to solder the wrong pins here. Did you finish the cable? If YES then we have all hardware needed to burn Arduino bootloader on a new/used ATMega328P chip. In order to do that download and unarchive this in c:\Program Files. This archive includes avrdude-serjtag with avrdude.conf updated with support for ATMega 328P, 168P and 88P and avrdude-GUI (yuki-lab.jp Version). Be aware that you need .NET Framework 2.0 installed on your computer before you run avrdude-GUI. Open the file avrdude-GUI.exe from "C:\Program Files\avrdude-GUI-1.0.5\" and you will get the following screen filled with blanks
To setup the program we have to follow these steps:
According to http://code.google.com/p/optiboot/ Optiboot is an easy to install upgrade to the Arduino bootloader within Arduino boards. It provides the following features: - Allows larger sketches. Optiboot is a quarter of the size of the default bootloader, freeing 1.5k of extra space. - Makes your sketches upload faster. Optiboot operates at higher baud rates and has streamlined programming. - Adaboot performance improvements. Optiboot runs your sketches sooner, with no watchdog issues. - Compatible with 168 and 328 Arduinos including Lilypad, Pro, Nano - Smaller bootloader footprint – An additional 1.5kB of space for sketches. - Increased bootloader baudrate – Faster sketch uploading. The downside? The UNO uses a new USB interface, the Duemilanove uses a tried and tested one.
For ATMega168P and 88P please consult this page
|





















