Skip to content

Burn Arduino bootloader into ATMega328 (BitBang)

The bitbang method we're going to expose is taken from this site, where you can find a serjtag-0.3 zip file and all the need documentation.

In this article we offer a more "Arduino 2009" targeted  avrdude-serjtag zip file and a quick tutorial which will allow you to bootload all your chips easily.

Download the avrdude-serjtag zip file and unzip it.  (In our example we are going to use the "D" directory).

To get the feeling with the tools for making the bootloading, we'll initially do some reading operations into a working (already bootloaded) ATMEGA chip.

We have to run the command line ; so go to "Start" -> "Run" , write "cmd" and press the "OK" button.

Below we present some basic commands.

  1. Verify the functionality of an ATMega MCU that is already burned :
    cd d:\avrdude-serjtag\binary
    avrdude -c diecimila -P ft0 -p m328p -t -B 4800
    quit
  2. Test the fast mode:
    avrdude -c diecimila -P ft0 -p m328p -t
    quit
  3. Reading Fuse-Bits (write down the hexadecimal numbers apart because you'll need them later):
    avrdude -c diecimila -P ft0 -p m328p -t
    d efuse (it should give 05)
    d hfuse (it should give da)
    d lfuse (it should give ff)
    d lock (it should give 0f)

    Remember that the unlock hexadecimal value for this model is "3F".

  4. Copying the bootloader :
    Copy the file :  ATmegaBOOT_168_atmega328.hex
    from :
    "\Arduino\hardware\arduino\bootloaders\atmega"
    to :
    "d:\avrdude-serjtag\binary\".

In the next page we will demonstrate the exact procedure.

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.