Pages: [1]   Go Down
Author Topic: ATmega328 with the Arduino Optiboot (Uno 16MHz)  (Read 2586 times)
0 Members and 1 Guest are viewing this topic.
Europe
Offline Offline
Full Member
***
Karma: 0
Posts: 104
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
Code:
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 !  smiley (PS. right click on a picture and select view picture)
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 212
Posts: 8975
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Europe
Offline Offline
Full Member
***
Karma: 0
Posts: 104
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Brattain Member
*****
Karma: 549
Posts: 27434
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 27434
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

And post smaller pictures too - hard to scroll around something that large.
Resize to ~800 wide before posting.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Europe
Offline Offline
Full Member
***
Karma: 0
Posts: 104
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Brattain Member
*****
Karma: 549
Posts: 27434
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

"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

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

California
Offline Offline
God Member
*****
Karma: 14
Posts: 629
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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


Europe
Offline Offline
Full Member
***
Karma: 0
Posts: 104
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

"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.

http://upload.slike.com/slike/QZWq.jpg
http://upload.slike.com/slike/37q0M.jpg
Logged

California
Offline Offline
God Member
*****
Karma: 14
Posts: 629
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Full Member
***
Karma: 0
Posts: 104
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Full Member
***
Karma: 0
Posts: 104
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley, problem solved
xvjeko
Logged

California
Offline Offline
God Member
*****
Karma: 14
Posts: 629
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Excellent.

Did the auto-reset work off of RST?
Logged


Europe
Offline Offline
Full Member
***
Karma: 0
Posts: 104
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: