Skip to content

Burn Arduino bootloader into ATMega328 (BitBang)

Now here we can see all the steps required to burn a ATMega328P (on Windows platforms).
The first thing to do is to mount a virgin ATMega328P.
Go to "Start" -> "Run" -> write "cmd" and press the "OK" button.
Using the command line you have to go to the extracted  "avrdude-serjtag" path.
In our case the path is :
"d:\avrdude-serjtag\binary\”
So we have to write the commands :

cd d:
cd "d:\avrdude-serjtag\binary\"
  1. Writing fuse bits without lock (lock is a pin where you can block/unblock burning operation from, and we unlock it):
    avrdude -c diecimila -P ft0 -p m328p -t -B 4800
    
    erase
    
    w efuse 0 0x05
    w hfuse 0 0xda
    w lfuse 0 0xff
    
    quit
  2. Fast reading test:
    avrdude -c diecimila -P ft0 -p m328p -t
    quit
  3. Burn the bootloader by command line mode ( without "-t" option):
    avrdude -c diecimila -P ft0 -p m328p -U flash:w:ATmegaBOOT_168_atmega328.hex
  4. Writing Lock-Bit (we lock it):
    avrdude -c diecimila -P ft0 -p m328p -t
    w lock 0 0x0f
    quit

You're done!
If you want a preview of a successful job, take a look at the video.

Now you are ready to burn your ATMEGA chips on your own !

1 thought on “Burn Arduino bootloader into ATMega328 (BitBang)

  1. Pingback: USBtinyISP v2.0 para cargar firmware de Arduino en Stock!! » SAWERS TECHNOLOGY

Comments are closed.