Go Down

Topic: Burning bootloader (Read 2 times) previous topic - next topic

guitar1

Hey,
I had the same problem like you, I also switched to version 0023 and in worked better, but stil have some errors.

console output:

Code: [Select]
avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x64
avrdude: failed to write flash memory, rc=-4
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51


any ideas? I build my "2nd" arduino with this tutorial http://www.martyndavis.com/?p=188 my "real" arduino is an Uno rev 3

thanks in advice,
andi

johnwasser


I build my "2nd" arduino with this tutorial http://www.martyndavis.com/?p=188 my "real" arduino is an Uno rev 3


You need to connect through the six pin ICSP header to burn the bootloader and that circuit doesn't seem to include the ICSP header.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

guitar1

hmm .. i dont realy know what you mean .. i connected everything exactly like in that tutorial, and the author never mentioned an/the "ICSP" header?!

the only differance, the author uses a uno rev 1 or 2 and i have an uno rev 3

i dont use an external programmer, i want to use my uno to burn the bootloader onto the atmega168 in the "2nd" arduino.

where should i connect through the icsp header?!

kf2qd

Quote


i dont use an external programmer, i want to use my uno to burn the bootloader onto the atmega168 in the "2nd" arduino.

where should i connect through the icsp header?!


The problem is that you don't have the icsp header. You need to look up using the Arduino as an isp, and the information exists on many site on the web. Try the search term - arduino as isp - and read several of them. they will show you what pins need to be connected and what commands to use. It requires 6 wires -  from Arduino pin 10 to 168 pin 1 (reset), from Arduino pin 11 to 168 pin 17, from Arduino pin 12 to 168 pin 18,  from Arduino pin 13 to 168 pin 19, from Arduino +5V to 168 pins 7 & 20, and Arduino GND to 168 pins 8 & 22 and on teh Arduino board a 120Ohm resistor between +5V and Reset.

guitar1

oh - i think there is a little misunderstanding - the tutorial i mentioned discribed this, i only didn't know, that these pins are the isp pins.
my board is connected to the arduino like in this picture


and i also uploadet the "arduinoISP" sketch to the uno, also switched the IDE to the board i want to burn the bootloader to (Arduino Diecimila or Duemilanove w/ATmega168P) and the bootloader burning process starts, but the RX/TX lights of my arduino uno stoped blinking after ~15 sec, the burning process fails and i got the error messages i posted above.

Go Up