Go Down

Topic: ATmega328 with the Arduino Optiboot (Uno 16MHz) (Read 2815 times) previous topic - next topic

xvjeko

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: [Select]
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?
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

xvjeko


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.

CrossRoads

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.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

CrossRoads

And post smaller pictures too - hard to scroll around something that large.
Resize to ~800 wide before posting.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

xvjeko


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

CrossRoads

"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.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

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.
http://www.spcomputing.com

xvjeko


"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

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?).
http://www.spcomputing.com

xvjeko


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

xvjeko


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

Excellent.

Did the auto-reset work off of RST?
http://www.spcomputing.com

xvjeko


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

Go Up