Hello, i just purchased a DIP version of the chip ATmega328 with the Arduino Optiboot (Uno 16MHz) bought on ebay (more than 500 sold).
I connected it base on the given example http://arduino.cc/en/Main/Standalone
It runs the "blink" sketch, and the reset button is working properly... The problem comes when I try to upload to board...
I am trying to upload the "blink" sketch....
arduino output:
Binary sketch size: 1010 bytes (of a 32256 byte maximum)
D:\programs\arduino\arduino-0021\arduino-0021\hardware/tools/avr/bin/avrdude -CD:\programs\arduino\arduino-0021\arduino-0021\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega328p -cstk500v1 -P\\.\COM3 -b115200 -D -Uflash:w:C:\Users\xvjeko\AppData\Local\Temp\build441449957621406107.tmp\Blink.cpp.hex:i
avrdude: Version 5.4-arduino, compiled on Oct 11 2007 at 19:12:32
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
System wide configuration file is "D:\programs\arduino\arduino-0021\arduino-0021\hardware/tools/avr/etc/avrdude.conf"
Using Port : \\.\COM3
Using Programmer : stk500v1
Overriding Baud Rate : 115200
avrdude: ser_open(): setting dtr
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Recv:
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: Send: Q [51] [20]
avrdude: Recv:
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
avrdude done. Thank you.
windows setup (selected arduino uno, and the apropriate COM3 port selected in the arduino IDE)
Thanks for any help ! (PS. right click on a picture and select view picture)
johnwasser:
Did you press the reset button briefly when you saw the "Binary sketch size:" message?
If that doesn't work did you try swapping the RX and TX wires?
ty for the anwser, i will try pressing the reset button "briefly" when i'll see the "binary sketch size" tomorrow.
I tried swapping tx rx and nothing happend. And my UART is working properly.
Don't press it briefly - press & hold it, then release it when you see "compiled xxx bytes of 32xxx", message similar to that.
May have to try a few times to get the right spot.
This could be a CP210x with a "BAITE" board. The silkscreen Rx/Tx are backwards of the actual device, otherwise with the BAITE board, the pins are connected explicitly (Gnd->Gnd, Vcc->Vcc, Rx->Rx, Tx->Tx, DTR->DTR).
If "BAITE" is not on the USBUART device, please ignore.
If you are labeled correct, you are going Rx->Rx/Tx->Tx and it is not the "BAITE" board, you will need to cross the connections Rx->Tx and Tx->Rx. When you upload, you will need to hold the reset and wait till the Tx on the USB2TTL board Tx LED Flashes 2x. You might want to test with the UNO Optiboot and the Duemilanove 328 boards in the Arduino IDE.
Later, you might want to hook up a 0.1uF cap to Atmega pin1 and your USB2TTL RST (DTR?).
spcomputing:
If you are labeled correct, you are going Rx->Rx/Tx->Tx and it is not the "BAITE" board, you will need to cross the connections Rx->Tx and Tx->Rx. When you upload, you will need to hold the reset and wait till the Tx on the USB2TTL board Tx LED Flashes 2x. You might want to test with the UNO Optiboot and the Duemilanove 328 boards in the Arduino IDE.
Later, you might want to hook up a 0.1uF cap to Atmega pin1 and your USB2TTL RST (DTR?).
thanks for the anwser, i will try it as soon i can...
spcomputing:
If you are labeled correct, you are going Rx->Rx/Tx->Tx and it is not the "BAITE" board, you will need to cross the connections Rx->Tx and Tx->Rx. When you upload, you will need to hold the reset and wait till the Tx on the USB2TTL board Tx LED Flashes 2x. You might want to test with the UNO Optiboot and the Duemilanove 328 boards in the Arduino IDE.
Later, you might want to hook up a 0.1uF cap to Atmega pin1 and your USB2TTL RST (DTR?).
doing exactly what you said worked, and now its working perfectly.... thanks so much for the fast reply and your help :), problem solved
xvjeko