6
\$\begingroup\$

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?

\$\endgroup\$
3
  • 2
    \$\begingroup\$ 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. \$\endgroup\$
    – AndrejaKo
    May 20, 2011 at 15:28
  • \$\begingroup\$ @AndrejaKo, that first link is what I was looking for. If you would put that as an answer, I'd be willing to mark it correct. I'm pretty new to the embedded world and a simple yet effective tutorial like that link is exactly what I was looking for. \$\endgroup\$
    – g19fanatic
    May 21, 2011 at 0:55
  • \$\begingroup\$ Just FYI, tons of AVR ISP clones are sold for ~$2-$5 on e-bay and similar sites. \$\endgroup\$ Sep 12, 2017 at 19:33

3 Answers 3

3
\$\begingroup\$

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

\$\endgroup\$
2
  • \$\begingroup\$ 3 B/s? That is amazing! \$\endgroup\$ May 23, 2011 at 3:21
  • 1
    \$\begingroup\$ @reemrevnivek♦ Yes, especially when I want to upload a 10K program into it. In retrospective, this made me debug much more before burning programs into EEPROM. \$\endgroup\$
    – AndrejaKo
    May 23, 2011 at 7:54
1
\$\begingroup\$

With Arduino Uno it is not possible.

Try with Arduino Duemilanove. I use they and link process and work. http://arduino.cc/en/Tutorial/ArduinoToBreadboard

\$\endgroup\$
1
  • 1
    \$\begingroup\$ Actually it is reportedly possible by a variety of means, such as a 120 or so ohm resistor between the reset line and the logic supply. There's also a sketch floating around where the bootloader payload is built in, so no communication is required, avoiding the reset issue. It's a shame Arduino hasn't updated that now overly pessimistic page. \$\endgroup\$ Dec 15, 2011 at 19:34
0
\$\begingroup\$

AVR chips can only be recorded once, once recorded you have to delete them by deleting the fuse, this can only be done with HV programmers, once deleted you can re-program any AVR.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.