Go Down

Topic: UNO as ISP? (Read 24214 times) previous topic - next topic

xelendilx

#15
Mar 19, 2011, 10:43 am Last Edit: Mar 19, 2011, 10:56 am by xelendilx Reason: 1
Thanks, I will try it!

* Bootloaders supplied with Arduino 0022 at least, earlier ones may have issues.

you means that the bootloader on the arduino acting as isp must be at least the bootloader provided with the 0022 revision of the ide?

GianfrancoPa

I've burned bootloader on a blank ATmega328P using Arduino UNO as
ISP. I've used ArduinoISP sketch without applying any correction to code!
Gianfranco

johnhunk


I've burned bootloader on a blank ATmega328P using Arduino UNO as
ISP. I've used ArduinoISP sketch without applying any correction to code!


hey..i am going to burn bootloader on my new ATmega328P using my UNO soon. Do you just follow the tutorial on http://arduino.cc/en/Tutorial/ArduinoISP only. You make no change to the connections/circuits/code?

GianfrancoPa

1) Load ArduinoISP sketch (0022) without changes
2) Follow only this tutorial: http://arduino.cc/en/Tutorial/ArduinoISP
3) Put in the Arduino that acts as ISP a capacitator of 10 uF (long pin on reset, short on GND)
4) Select Burn Bootloader - w/ Arduino as ISP
Gianfranco

johnhunk

i got untill this step from http://arduino.cc/en/Tutorial/ArduinoToBreadboard  and i dont know which to select :

To burn the bootloader, follow these steps:

   1. Upload the ArduinoISP sketch onto your Arduino board. (You'll need to select the board and serial port from the Tools menu that correspond to your board.)
   2. Wire up the Arduino board and microcontroller as shown in the diagram to the right.
   3. Select "Arduino Duemilanove or Nano w/ ATmega328" from the Tools > Board menu. (Or "ATmega328 on a breadboard (8 MHz internal clock)" if using the minimal configuration described below.)
   4. Run Tools > Burn Bootloader > w/ Arduino as ISP.


i dont have the ATmega328 on a breadboard (8 MHz internal clock) at my Tools > Board menu?? Did i miss out anything/steps? thanks.

GianfrancoPa

#20
Mar 21, 2011, 03:03 pm Last Edit: Mar 21, 2011, 03:06 pm by GianfrancoPa Reason: 1
Ok, then

1) Select under Tools/Board "Arduino UNO"
2) Select under Tools/Serial Board, the COM port of your Arduino UNO.
3) Load ArduinoISP sketch (0022) without changes
4) Follow only this tutorial: http://arduino.cc/en/Tutorial/ArduinoISP to link
properly the two Arduino boards (or Arduino and breadboard)
5) Put in the Arduino that acts as ISP a capacitator of 10 uF (long pin on
reset, short on GND)
6) Select under Tools/Burn Bootloader --> w/ Arduino as ISP

Now it's ok?


i dont have the ATmega328 on a breadboard (8 MHz internal clock) at my Tools > Board menu?? Did i miss out anything/steps? thanks.


me too...
Gianfranco

pluggy

Burning a bootloader trying to use the internal 8Mhz clock has always been problematical for me.  Its a lot easier to put a 16Mhz oscillator or crystal in circuit, then it doesn't get confused about fuse settings.

Even easier is to have two Arduino boards......

http://pluggy.is-a-geek.com/index.html

johnhunk

Thanks.. i havent tried cause i am missing off that 2 cap.. will 10/100microfad do the job? i am waiting for my 20pf caps before i can complete the circuit.

Anyway can i use the same method to program the ATtiny85v?? if so,i wonder if

1) i have a program coded for ATtiny85v for AVR programmer method, can i just copy the code as sketch and upload to the chip using arduino? is it able to work?

2) i have a sketch for arduino (ATmega), can i just load it into the ATtiny85v and change the working pin accordingly? I believe this is the way or am i missing something?

Basically i just wanna know how to program ATtiny/ other AVR chips using arduino as ISP, the board hookup and porting arduino codes to work on the AVR chips??   thanks

pluggy

I know nothing of anything other than Atmega 168 & 328.........
http://pluggy.is-a-geek.com/index.html

Coding Badly

Anyway can i use the same method to program the ATtiny85v??


Instructions and wiring are here...
http://hlt.media.mit.edu/wiki/pmwiki.php?n=Main.ArduinoATtiny4585

More information and cores are available here...
http://sites.google.com/site/elettronicaarduinoesperimenti/Home/arduino-ide-and-attiny45
http://code.google.com/p/arduino-tiny/

Quote
1) i have a program coded for ATtiny85v for AVR programmer method, can i just copy the code as sketch and upload to the chip using arduino? is it able to work?


Yes.

Quote
2) i have a sketch for arduino (ATmega), can i just load it into the ATtiny85v and change the working pin accordingly? I believe this is the way or am i missing something?


Possibly.

The Sketch has to be recompiled for the target processor.  You cannot take a HEX file built for a 328 processor and use it on an 85 processor.

There are hardware differences: the timers are different and the 85 has two timers whereas the 328 has three; the 85 does not have a serial UART.

Quote
Basically i just wanna know how to program ATtiny/ other AVR chips using arduino as ISP, the board hookup and porting arduino codes to work on the AVR chips??


Yes.

johnhunk

i tried burn bootloader using breadboard ago but i got these error (see below), which is common problem of bootloading i found out after i google.. but i couldnt find a solution for UNO. i double checked my connection. plz help me.

avrdude: stk500_program_enable(): protocol error, expect=0x14, resp=0x50
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

spycatcher2k

Upload ArduinoISP sketch to programmer uno.

1st uno is programmer - 2nd is 328 to be programmed
Digital port 13 - Digital port 13 (pin 19)
Digital port 12 - Digital port 12 (pin 18)
Digital port 11 - Digital port 11 (pin 17)
Digital port 10 - RESET (pin 1)

put 10K resistor from pin 1 to +5v
put a 16Mhz Crystal between pins 9 & 10
and 2 caps from crystal to GND

make sure both have power - I just jump +5 from Arduino to pins 7 & 20
Arduino Gnd to pins 8 & 22.

10uF capacitor RESET TO GROUND on programmer

in IDE

Click Tools
Click Burn Bootloader
Click w/ Arduino as ISP



Hope that helps

Drew.
Mrs Drew
-=-
http://www.uk-pcb.co.uk - UK PCB Fab Company
I will design & code for you, but I will also charge you (PM me)
If you don't like my answers, realize : I'm not being cheeky, I'm Just trying to prompt you to use your own brain/google etc.

johnhunk

yup..i did that wiring from http://arduino.cc/en/Tutorial/ArduinoToBreadboard. is it the same as u described? i checked my connection is all right as the error mention about connection... i tried like few times with same error. i think i will just keep trying and hope i will find and solve it.  thanks.

Coding Badly

Have you disabled auto-reset?

johnhunk


Have you disabled auto-reset?


yup..10uF capacitor RESET TO GROUND?

Go Up