Pages: [1]   Go Down
Author Topic: Using Arduino UNO as ISP to program Atmega328PU taken from another UNO  (Read 349 times)
0 Members and 1 Guest are viewing this topic.
USA
Offline Offline
Jr. Member
**
Karma: 0
Posts: 78
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I have been trying to follow the tutorial at http://www.open-electronics.org/arduino-isp-in-system-programming-and-stand-alone-circuits/ with no luck so far. As outlined in the comments I have added
Quote
atmega3216.name=ATmega328P = 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
atmega3216.build.mcu = atmega328p
atmega3216.build.f_cpu = 16000000L
atmega3216.build.core = arduino
atmega3216.build.variant = 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.
http://63.160.63.15/public.php?service=files&file=/admin/files/IMAG0903.jpg
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???
« Last Edit: February 06, 2013, 01:08:48 pm by modsbyus » Logged

USA
Offline Offline
Jr. Member
**
Karma: 0
Posts: 78
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Anyone?
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 439
Posts: 23748
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Use Nickgammon's programmer, more straightforward.
http://www.gammon.com.au/forum/?id=11635
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

USA
Offline Offline
Jr. Member
**
Karma: 0
Posts: 78
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you I will try that tonight!
Logged

Pages: [1]   Go Up
Jump to: