Using Arduino UNO as ISP to program Atmega328PU taken from another UNO

I have been trying to follow the tutorial at with no luck so far. As outlined in the comments I have added = 16MHz atmega3216.upload.protocol = arduino atmega3216.upload.maximum_size = 32768 atmega3216.upload.speed = 115200 atmega3216.bootloader.low_fuses = 0xff atmega3216.bootloader.high_fuses = 0xDF atmega3216.bootloader.extended_fuses = 0xff atmega3216.bootloader.path = optiboot atmega3216.bootloader.file = optiboot_atmega328.hex atmega3216.bootloader.unlock_bits = 0x3F atmega3216.bootloader.lock_bits = 0x0F = atmega328p = 16000000L = arduino = standard

to the boads.txt file and programmed my Uno with the ArduinoISP example sketch. Below is a link to a picture of my setup. As you can see in the picture, I have a 120 ohm resister tied to 5V and a 10uf cap tied to ground and the reset pin of the UNO attached to the positive side of the cap. The resistor and the cap anode tie together. The wiring is as follows.

5V to positive rail on target MCU board and positive rail on breadboard. GND to GND on target MCU board and breadboard. UNO pin 13 to taget MCU digital pin 13 UNO pin 12 to taget MCU digital pin 12 UNO pin 11 to taget MCU digital pin 11 UNO pin 10 to taget MCU reset pin UNO pin 9 to LED on breadboard UNO pin 8 to LED on breadboard UNO pin 7 to LED on breadboard Target MCU digital pin 9 to LED on breadboard

After loading the ISP sketch and connecting the reset pint to the resistor and cap, I loaded the Blink Example and changed pin 13 to pin 9 for the LED pin since pin 13 is already being used on my target MCU. Then I selected my board (Atmega328P = 16MHz) as is shown in the above quote of what was added to boards.txt. Then I selected the programmer as Arduino as ISP. When I upload using programmer I get this error "avrdude: stk500_getsync(): not in sync: resp=0x00" I have quadruple checked my connections and they all seem good. I have done a continuity test from each header pin on the target MCU board back to the corresponding legs on the MCU and each test has shown good continuity.

Any Ideas???


Use Nickgammon’s programmer, more straightforward.

Thank you I will try that tonight!