I am trying to program an ATmega328P with an Arduino Uno R3. When I click 'Upload to Programmer' in the Arduino IDE (version 1.0.5), the Arduino programs itself and not the chip. Stranger still, the ArduinoISP sketch continues to run on the Arduino as well as the program that should've been burned to the chip. Here are the steps I take:
ArduinoISP sketch is open
- Tools > Boards > Arduino UNO
- Tools > Programmer > AVRISP mkII
- File > Upload
Upload successfully completes
- File > Examples > 01.Basics > Blink
- Tools > Boards > Arduino Nano w/ ATmega328
- Tools > Programmer > Arduino as ISP
- File > Upload Using Programmer
No AVRDUDE errors, upload appears to have successfully completed
After I take these steps, the Arduino still has the ArduinoISP heartbeat LED beating, but the pin 13 'L' LED is also blinking on and off, just like in the Blink sketch. This persists even if the Arduino is manually reset; it's as if the Arduino has 2 sketches running at once. The LED connected to pin 13 on the ATmega328P does not blink.
Here is my wiring:
NOTE: There is also a 10uF electrolyte capacitor the Uno's between RESET (+) and GND (-) which was missed off the above diagram.
Can anybody help me program this ATmega328P? I have tried 2 different chips, and both have had the same issue.