Electronic – arduino – Bit bang ATmega328 with Arduino bootloader using AVRDUDE

arduinoatmegaavravrdudebootloader

I have an Arduino Uno development board with a blank ATmega328 chip (no Arduino bootloader. The chip that came with the unit is soldered in a separate stand-alone project so that I can use the Arduino board for more than one instance 🙂 )

So looking here, the Uno isn't able to program the chip as it cannot be used as an ISP (yet?).

Would I be able to use AVRDUDE in a bit-bang programmer mode and hook up the ATmega's SPI lines to my serial port (using the correct lines obviously) and program the bootloader? I've seen topics on the web that say this is possible to do with other AVR chips, but I'm just really a noob here trying to get by. I understand that I can purchase an AVR ISP for ~US$20 to do so, but I was hoping to get started on a project tomorrow/tonight and do not want this weekend to go wasted (waiting for it to arrive…).

Anyone have a good reference on how to proceed?

To clear up some confusion, I am trying to program an ATmega328 with an Arduino bootloader. I only have the Uno development board and a blank ATmega328. I do have a serial port and really do not want to wait for an AVRISP to come in as I would like to get started sooner rather than later. Is this possible with the ATmega328? How would I proceed?

Best Answer

How about making one of the countless serial AVR programmers and using it to write the Arduino firmware? This one worked for me, but I have USB to serial converter, so it works at amazing 3 B/s. If the programer lines on your other project are available, you can dump firmware using AVRdude. You could also probably get it form the Internet, but I don't know where to look