Europe
Offline
Full Member
Karma: 0
Posts: 104
|
 |
« on: July 28, 2012, 02:38:55 pm » |
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/StandaloneIt 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)
|
|
|
|
|
Logged
|
|
|
|
|
Massachusetts, USA
Offline
Tesla Member
Karma: 98
Posts: 6402
|
 |
« Reply #1 on: July 28, 2012, 03:35:23 pm » |
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?
|
|
|
|
|
Logged
|
|
|
|
|
Europe
Offline
Full Member
Karma: 0
Posts: 104
|
 |
« Reply #2 on: July 28, 2012, 04:01:57 pm » |
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.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16602
Available for Design & Build services
|
 |
« Reply #3 on: July 29, 2012, 01:07:49 am » |
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.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16602
Available for Design & Build services
|
 |
« Reply #4 on: July 29, 2012, 01:08:59 am » |
And post smaller pictures too - hard to scroll around something that large. Resize to ~800 wide before posting.
|
|
|
|
|
Logged
|
|
|
|
|
Europe
Offline
Full Member
Karma: 0
Posts: 104
|
 |
« Reply #5 on: July 29, 2012, 07:17:15 am » |
And post smaller pictures too - hard to scroll around something that large. Resize to ~800 wide before posting.
rightclick on picture, and view picture, as i said before
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16602
Available for Design & Build services
|
 |
« Reply #6 on: July 29, 2012, 03:54:37 pm » |
"rightclick on picture, and view picture, as i said before" This doesn't seem to work the same on my Vista PC as whatever you are using.
|
|
|
|
|
Logged
|
|
|
|
|
California
Offline
God Member
Karma: 13
Posts: 631
|
 |
« Reply #7 on: July 29, 2012, 10:11:29 pm » |
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.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
California
Offline
God Member
Karma: 13
Posts: 631
|
 |
« Reply #9 on: August 01, 2012, 05:52:59 pm » |
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?).
|
|
|
|
|
Logged
|
|
|
|
|
Europe
Offline
Full Member
Karma: 0
Posts: 104
|
 |
« Reply #10 on: August 02, 2012, 02:59:25 pm » |
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...
|
|
|
|
|
Logged
|
|
|
|
|
Europe
Offline
Full Member
Karma: 0
Posts: 104
|
 |
« Reply #11 on: August 03, 2012, 01:51:07 pm » |
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
|
|
|
|
|
Logged
|
|
|
|
|
California
Offline
God Member
Karma: 13
Posts: 631
|
 |
« Reply #12 on: August 03, 2012, 02:22:05 pm » |
Excellent.
Did the auto-reset work off of RST?
|
|
|
|
|
Logged
|
|
|
|
|
Europe
Offline
Full Member
Karma: 0
Posts: 104
|
 |
« Reply #13 on: August 03, 2012, 03:40:07 pm » |
Excellent.
Did the auto-reset work off of RST?
idk, just switched TX and RX and holded the reset button as u said.... i didn't go any further
|
|
|
|
|
Logged
|
|
|
|
|
|