Pages: [1] 2   Go Down
Author Topic: arduino pro mini 3.3v cant upload  (Read 1540 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 0
Posts: 205
Check twice, etch once
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

I just received my arduino pro mini 3.3v (http://www.sparkfun.com/products/9220) and i am trying to upload the "blink sketch" to it.

First i tried it with my usb ttl programmer hooked up like this:
ttl rx - arduino tx
ttl tx - arduino rx
ttl 3.3v - arduino vcc
ttl gnd - arduino gnd
ttl rst - arduino DTR

board selected: arduino pro or pro mini (3.3v, 8 Mhz) w/ atmega328.
but i keep getting the error
Code:
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

Then i tried hooking it up to a arduino without chip and reversing the rx and tx but nothing works...

any help?
« Last Edit: November 23, 2011, 01:06:46 pm by lyron » Logged

"The old Europe"
Offline Offline
Edison Member
*
Karma: 1
Posts: 2005
Bootloaders suck!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

reset is your friend.
Logged

• Upload doesn't work? Do a loop-back test.
• There's absolutely NO excuse for not having an ISP!
• Your AVR needs a brain surgery? Use the online FUSE calculator.
My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets...
• Microsoft is not the answer. It is the question, and the answer is NO!

Offline Offline
Full Member
***
Karma: 0
Posts: 205
Check twice, etch once
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've tried reset a couple of hundred thousand times... smiley-sad
Logged

"The old Europe"
Offline Offline
Edison Member
*
Karma: 1
Posts: 2005
Bootloaders suck!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Gah! Not by hand... wire it up correctly and let the software do its job.
Logged

• Upload doesn't work? Do a loop-back test.
• There's absolutely NO excuse for not having an ISP!
• Your AVR needs a brain surgery? Use the online FUSE calculator.
My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets...
• Microsoft is not the answer. It is the question, and the answer is NO!

Offline Offline
Full Member
***
Karma: 0
Posts: 205
Check twice, etch once
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i did wire the reset on the arduino to the reset on my usb ttl
Logged

"The old Europe"
Offline Offline
Edison Member
*
Karma: 1
Posts: 2005
Bootloaders suck!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You need to wire the RESET coming from your USB thingy to the DTR pin on your pro mini. The reason is that a 100nF capacitor needs to be in there to create a reset pulse and not an 'ever-lasting' reset signal.

See the schematic.
Logged

• Upload doesn't work? Do a loop-back test.
• There's absolutely NO excuse for not having an ISP!
• Your AVR needs a brain surgery? Use the online FUSE calculator.
My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets...
• Microsoft is not the answer. It is the question, and the answer is NO!

Offline Offline
Full Member
***
Karma: 0
Posts: 205
Check twice, etch once
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i did hook up the rst on my usb ttl to the DTR from my arduino...
Logged

Offline Offline
Edison Member
*
Karma: 6
Posts: leet
If you're not living on the Edge, you're taking up too much space!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm having a similar problem my post is adjacent to yours.  Looks like maybe your TX/RX is backwards?  Should we use DTR or RST on my mini?  Reset on the Uno header is connected to RST on the chip?  So shouldn't it be connected to RST on mini?  Just looked, I don't see a RST pin on my DIP 328P.
Logged

If you fall... I'll be there for you!
-Floor

Skype Brighteyes3333
(262) 696-9619

Colorado
Offline Offline
Edison Member
*
Karma: 47
Posts: 1562
Reviving dead brain cells with Arduinos.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Reset on a 328p dip package is pin 1.
Logged

Austin, TX
Offline Offline
Faraday Member
**
Karma: 63
Posts: 6055
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

What is your USB TTL programmer?
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Offline Offline
Full Member
***
Karma: 0
Posts: 205
Check twice, etch once
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It's just a cheapo ttl from ebay, but it worked with programming my homemade BareDuino.
http://www.ebay.com/itm/USB-2-0-UART-TTL-6PIN-Module-Serial-Converter-CP2102-/370532286388?pt=PCC_Drives_Storage_Internal&hash=item564571ffb4#ht_3188wt_689
Logged

"The old Europe"
Offline Offline
Edison Member
*
Karma: 1
Posts: 2005
Bootloaders suck!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The word 'BUT' should be forbidden in the troubleshooting forum.

I can't say how glad I am that airlines don't throw together various untested parts of unknown origin and hope the thing still flies.

/rant

I suggest that you stick to 'known good' parts. At least in the beginning. You will save yourself and us a lot of grief. Once you have a stock of working devices, you can buy others as well.
Logged

• Upload doesn't work? Do a loop-back test.
• There's absolutely NO excuse for not having an ISP!
• Your AVR needs a brain surgery? Use the online FUSE calculator.
My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets...
• Microsoft is not the answer. It is the question, and the answer is NO!

Offline Offline
Edison Member
*
Karma: 6
Posts: leet
If you're not living on the Edge, you're taking up too much space!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@madworm - To the DTR pin on mini? 

That's different from the RST pin.
Which one is correct?
Anyone?
Logged

If you fall... I'll be there for you!
-Floor

Skype Brighteyes3333
(262) 696-9619

"The old Europe"
Offline Offline
Edison Member
*
Karma: 1
Posts: 2005
Bootloaders suck!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

It depends...

It is a known fact that the AVR chip must be reset with a short reset-pulse to make the bootloader kick in and get the upload timing right.

Depending on what kind of USB adapter you use (we don't know that of course), it may or may not create a pulse or just a static signal. You will have to look at the schematic of that contraption to find out. If it creates a reset-pulse, connect it directly to the RESET pin, if it creates a static signal, connect it to the DTR pin of the mini pro. Looking at the schematic of that piece of hardware will reveal that the DTR pin is followed by a 100nF capacitor that will create a reset-pulse, which then of course goes to the RESET pin of the mcu.

Is it just a feeling I have, or is the documentation of these products discussed here lacking a lot of essential content?
Logged

• Upload doesn't work? Do a loop-back test.
• There's absolutely NO excuse for not having an ISP!
• Your AVR needs a brain surgery? Use the online FUSE calculator.
My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets...
• Microsoft is not the answer. It is the question, and the answer is NO!

"The old Europe"
Offline Offline
Edison Member
*
Karma: 1
Posts: 2005
Bootloaders suck!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

And if you can't get the friggin' bootloader to work, get yourselves a real programmer for <insert your favourite deity here> sake!

I predict that once you have one (and even if it just idly sits in its box somewhere), many problems will miraculously disappear. Just because.
Logged

• Upload doesn't work? Do a loop-back test.
• There's absolutely NO excuse for not having an ISP!
• Your AVR needs a brain surgery? Use the online FUSE calculator.
My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets...
• Microsoft is not the answer. It is the question, and the answer is NO!

Pages: [1] 2   Go Up
Jump to: