When i found the http://arduino.cc/en/Tutorial/ArduinoISP tutorial i wanted to make my own stand alone arduino.
I bought a couple of atmega8s and put the bootloader on them with my arduino mega2560.
That worked fine and i can see the bootloader working on my diy arduino.(three flashes of the led).
But i cant get it to upload a sketch to it.
When i try to upload it's saying: avrdude: stk500_getsync(): not in sync: resp=0x00
Does anyone know how to get it working propperly?
I used my arduino mega2560 to bootload the atmega8.
Okay... so you used the Arduino as ISP? Which board did you select (i.e. which bootloader did you put on the ATmega8?)?
I made some pictures but i don't know how to upload them here.
The little arrow with the orange text "Additonal Options..."
CP2102 USB to TTL Converter Module which i bought from here:
Cool, at least this CP2102 has the DTR/RST broke out. Did you install the driver?
Did you put a 0.1uF capacitor between RST on the USB2UART and pin 1 on the Atmega8? This allows the auto-reset, other than that, you will have to use the reset button just before the upload (when the sketch size appears).
is it possible I somehow burned out my atmega?
It is always possible But I do not think we can make that determination, unless you have already release the "blue smoke" from the chip.
I uploaded the isp sketch on my Mega2560 and then selected the atmega8 as board. for programmer is choose arduino as isp.
after that i burned my bootloader.
I did use the RST pin but from now i will! thanks for the suggestion!
I installed the exact driver you were reffering to.
luckily I haven't seen blue smoke yet so it should be able to work
I added two pictures of my PCB and the used hardware.
Also, you might want to put a 0.1uF from VCC-GND, AVCC-GND and AREF-GND close to the ATmega8. It will help with high frequency noise devices can generate.
i tried it a couple of times like that but it's not working.
the USB2UART i'm using is slitchly different than the one in the link.
it is the one i ordered but apperently it has changed.
mine doesn't have a TX led.
Well that is unfortunate. Lets try a manual reset. When you press the upload button and the IDE compiles the sketch, press and hold the reset button down until the Binary Sketch Size: 1,234 bytes appears in the IDE window and then release the reset button. There is a fussy timing of this, so a few tests may be needed (delaying release 100-500ms after the Binary Sketch Size). Some people prefer just pressing it when the Binary Sketch Size appears.
after trying all you have said i found out that my USB2UART was wrong.
The TX and RX outputs where wrong. By changing the cables it's working now!
thanks for all the help!