Hi , I'm trying to upload a code to an Atmega328 with the Uno bootloader on a breadboard using an FTDI USB to serial adapter but i keep getting this error "avrdude: stk500_getsync(): not in sync: resp=0x00"
I wired up an LED to the RX pin of the microcontroller and I noticed that the TX LED of the USB serial adapter blinks when I upload the code but the Rx LED of the Atmega doesn't.
I used these components in the circuit :
1 power indicator LED.
1 LED hooked to PIN 13 (Standard Blink code)
1 LED hooked to RX pin
2 22 pF and a 16Mhz crystal occilator
1 0.1 uF capacitor hooked to the DTR pin and pin 1 of the atmega
10K resistor hooked to the DTR pin and to +5V
I got this USB to serial adapter: ftp://imall.iteadstudio.com/Modules/IM120525005_Foca/DS_IM120525005_Foca.pdf
Your pull up resistor that is supposed to be on reset looks very old and appears to be plugged into one of the serial lines or more likely you have misconnected one of your serial lines to the reset pin.
marcovaldor:
No it's connected to the reset pin and I tried with a normal 10K ohm resistor but same result
Post a picture that shows that to be the case. The picture you have posted clearly shows the reset pin one connected to the cap, 10K and serial line. (IT could be a shadow).
Also you need a power by pass on both sides of the Atmega328, as per the link I posted in my first post in this thread.
I remember that when I first did wired the circuit I applied to it a +12V instead of a +5V could this damage some components or maybe the Atmega chip ?