Hi everyone, I've got Arduino Uno, and im a BIG noob.
i want to "put" my new chip atmega328 on a breadboard (like here- http://arduino.cc/en/Main/Standalone), so i gussed i need to burn bootloader.
I tried this tutorial: http://arduino.cc/en/Tutorial/ArduinoToBreadboard
But i got this error: avrdude: stk500_getsync(): not in sync: resp=0x0
then i tried this tutorial: http://www.3guys1laser.com/blog-burn-bootloader-blank-atmega328atmega328p-arduino-uno
But i got the same error: avrdude: stk500_getsync(): not in sync: resp=0x0
I think im doing somthing wrong, it cant be that nothing works for me. What am i missing??
I'll appreciate any help. Thanx
Can you post a photo of your breadboard layout? It may be easier to troubleshoot if we can see your wiring.
Also, what selections have you made under IDE menu:
Tools > Board
and
Tools > Programmer
Are you using an ATmega328 or an ATmega328P?
this is very similar to the problem i've been experiencing with my leonardo board... and it seems to be a problem that's been around for years
check out this thread http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1248528012/all
Try Nick Gammon's sketch:
Hook-up is the same, but it will let you know if the communication is correct (ie Signature etc) through the serial monitor in the IDE.
thank u all for the quick answers. First maybe i should mention-its not an original Arduino from italy. right now its on:
**On the Tools > Board >Arduino Duemilanove w/Atmega328 (thats the way its usually work)
**Tools>Programmer>AVRISP mkII
i tried changing it but it didnt help.
**here is photos of my breadboard&arduino:
http://up351.siz.co.il/up1/5rouyg0tiyzn.jpg
)
It looks like you're trying to get power for your device from digital pin 9 of the Arduino. That won't work with the normal ArduinoISP sketch, though Optiloader should be OK. However, you also don't have an external crystal, which IS necessary if you are using optiloader, or any of the standard "board types" with the "burn bootloader."
hi westfw, thasts what the tutorial says: 3guys1laser.com
what should i do?
The tutorial says "If your chip comes straight out of the factory it 'should' be fused to work without an external clock - meaning that you don't need the clock and the two capacitors." But it doesn't say that they tested it, and there is at least one comment that the crystal IS needed...
(speaking as the author of OptiLoader:) The thing is that although the chip may COME set to use the internal oscillator, the first thing optiLoader does is to reprogram the fuses to be Arduino-compatible, INCLUDING the fuse that tells it to use an external crystal. optiLoader doesn't just load the bootloader, it goes from brand-new chip (not brand new) to Uno-compatible chip with fuses and bootloader set.
It would be neat if optiLoader could tell the difference between "this chip is programmed to use the internal oscillator because it is brand new, but the circuit does have a crystal that should be used" and "this chip is programmed to use the internal oscillator because it doesn't have a crystal", but I couldn't figure out a way to do that.
i want to "put" my new chip atmega328 on a breadboard (like here- http://arduino.cc/en/Main/Standalone), so i gussed i need to burn bootloader.
When you say new chip I assume you mean one direct from a suppliers and not one lifted out of your new UNO board.
To use your UNO to program a separate 328 chip you should read this tutorial http://arduino.cc/en/Tutorial/ArduinoISP If your stand alone chip will be using an external crystal then you should connect it or you will need to burn a bootloader designed to run at 8mHz. If you don't have a crystal but the 328 needs programming to use one then try downloading ArduinoISP2 GitHub - adafruit/ArduinoISP: A fork of the ArduinoISP that has 8mhz output clock as it supplies a 8mHz 'crystal' output on pin 9 for programming chips that need external crystals but don't have one.
Riva - thanx for the comment. the tutorial u gave is using 2 boards-i only have one. and i tried this tutorial http://arduino.cc/en/Tutorial/ArduinoToBreadboard but no luck as well. And i have a 16mhz crystal which i tried.
Anyway - Riva&westfw - I'll start from the begining (disconnecting everything and reconnect) - what should i try first? optiloader or the other one? what to do as a first step if it doenst work ?
the tutorial u gave is using 2 boards-i only have one
If you look at the bottom of the tutorial it shows how to wire up to breadboard. I have used this tutorial to bootload a couple of breadboard atmega8 using my arduino UNO as the ISP so I know it works.
OK i connected everything from the begining as it say here http://arduino.cc/en/Tutorial/ArduinoISP
I tried to upload ArduinoISP but i get the same error - avrdude: stk500_getsync(): not in sync: resp=0x00
i should mention that i tried several times with changing the setting of board an programmer (disconnecting the usb before each time)- but no luck :
in line 2 at the tutorial it says: "Note for Arduino 1.0: you need to make one small change to the ArduinoISP code. Find the line in the heartbeat() function that says "delay(40);" and change it to "delay(20);" ----->> How do i know if i have arduino 1.0? is it safe to try? might this be the problem?
Last thing - while trying to upload the sketch, ONLY the RX onboard led is blinking couple of time.
Don't worry about the heartbeat delay.
You have an UNO. Put Nick Gammon's programmer on the UNO:
(Put the folder into the My Documents\Arduino folder and restart Arduino IDE)
The connections are the same as Arduino as ISP (without leds). Select the serial monitor icon or pull it up in Tools (Baud is 115200). Do you see a lot of information or just Nick's Program title?
If you see just Nick's program label in the serial monitor, temporarily pull the (2) 22pF and (1) 16MHz crystal or pull the wires to XTAL1 and XTAL2 (328 pin 9/10). Jumper pin9 on the UNO to pin9 on the Breadboard Arduino (8MHz sig) and try again. If the bootloader installs, you can put the 22pFs and crystal back and you should be good to go.
I just tested it last Thursday and it worked perfectly on a newborn 328.
i'm sorry to be annoying - spcomputing, but im really noob so it will be much bettr if u can be more specific. Did you mean this file: Atmega_Board_Programmer ?
inside of it there r 2 folders: Atmega_Board_Programmer, and __MACOSX. I put both of them in the arduino folder like u can see here: ImageShack - Best place for all of your image hosting and image sharing needs
Then i connected the arduino to the USB cable, opened the serial monitor, changed it to Baud is 115200, and i see nothing not even Nick's title. should i try and upload a sketch? which?
Justniv:
inside of it there r 2 folders: Atmega_Board_Programmer, and __MACOSX. I put both of them in the arduino folder like u can see here: ImageShack - arduino folder.jpgThen i connected the arduino to the USB cable, opened the serial monitor, changed it to Baud is 115200, and i see nothing not even Nick's title. should i try and upload a sketch? which?
You don't need to put them in the Arduino folder. Look in the 'Atmega_Board_Programmer' folder and you should see a sketch that should be loaded into the Arduino IDE, compiled and uploaded to your UNO (make sure to remove the reset inhibit capacitor as needed for ArduinoISP programming. See instruction 5 *Wire your Arduino board to the target as shown in the diagram below. (Note for the Arduino Uno: you'll need to add a 10 uF capacitor between reset and ground.) *) before trying to upload to your UNO
Riva- i tried loadin this sketch: Atmega_Board_Programmer.ino
but i still get the same error: avrdude: stk500_getsync(): not in sync: resp=0x00
And the serial minitor doesnt say anything...
Justniv:
i'm sorry to be annoying - spcomputing, but im really noob so it will be much bettr if u can be more specific. Did you mean this file: Atmega_Board_Programmer ?
inside of it there r 2 folders: Atmega_Board_Programmer, and __MACOSX. I put both of them in the arduino folder like u can see here: ImageShack - arduino folder.jpgThen i connected the arduino to the USB cable, opened the serial monitor, changed it to Baud is 115200, and i see nothing not even Nick's title. should i try and upload a sketch? which?
It is never annoying... we were all learning and made the same mistakes.
Move the Atmega_Board_Programmer folder from the Arduino IDE folder to My Documents\Arduino folder. When you reboot the IDE, you will be able to find Atmega_Board_Programmer in File -> Sketchbook. If you ever create you our sketch or modify an existing one, when you "Save as...", it will go into the My Documents\Aduino folder. Delete the "__MACOSX" folder.
You will have to select the "Atmega_Board_Programmer" out of your Sketchbook, then upload to the UNO. After the sketch has been uploaded, you can then open the serial monitor. You will not need the 10uF cap since the Atmega_Board_Programmer does not reset after installing the bootloader. ABP is set up to program multiple chips in the same session. This was done by moving from the ICSP reset pin to the pin 10.
You want this in the serial monitor (tiny revision differences):
Atmega chip programmer.
Written by Nick Gammon.
Entered programming mode OK.
Signature = 0x1E 0x95 0x0F
Processor = ATmega328P
Flash memory size = 32768 bytes.
LFuse = 0xFF
HFuse = 0xDE
EFuse = 0xFD
Lock byte = 0xCF
Bootloader address = 0x7E00
Bootloader length = 512 bytes.
Type 'G' to program the chip with the bootloader ...
Sorry for the confusion.
Justniv:
Riva- i tried loadin this sketch: Atmega_Board_Programmer.ino
but i still get the same error: avrdude: stk500_getsync(): not in sync: resp=0x00
And the serial minitor doesnt say anything...
i am having the exact same problem. i've tried it with both with factory attiny85s and an arduino-bootloaded atmega328 but no luck either
spcomputing - i did what u said. iv'e opened IDE>file>Sketchbook>Atmega_board_Programmer> upload --> same error: avrdude: stk500_getsync(): not in sync: resp=0x00