Pages: [1]   Go Down
Author Topic: USB to TTL Problems CP2102 ATMega328P-PU [SOLVED]  (Read 619 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So... I know this dance has been done. Seen many other posts, it did not work for me. Seems there weren't much "solid" solutions.

I have this CP2102 USB to TTL/UART programmer, it looks exactly like this but i didn't buy from this site.
http://www.buyincoins.com/item/4022.html


Tested on Mac(OSX 10.7.5) and Windows7 it just doesn't want to work. I have tried different baud rates, the reset/upload "trick" and messed around in the terminal with screen. Even just tried to switch the Tx/Rx. My first try was with the USB Tx to the ATMega's Rx and vice versa.

Same layout as the Arduino on a breadboard.

Attached is a bit more info too.

I bought an ATMEGA328p-pu with a bootloader on it already.
Plugging the ATMega328p-pu into an Uno R2 works, same chip right, but i don't want to pry a chip off the board every time i need to re-program it.

Hope we can fix this here and now.
I would love the help guys and gals.
Thanks

Fix: Just keep trying the Upload/reset trick. For my ATMega328P-PU I used the Uno Board, AVRISP mkII programmer and with the verbose output as your indicator, when the uploader starts with its "avrdude: send" you can hit the reset.


* Screen Shot 2013-08-31 at 2.01.40 AM.jpg (53.07 KB, 588x362 - viewed 49 times.)

* Screen Shot 2013-08-31 at 2.02.16 AM.jpg (52.41 KB, 485x336 - viewed 51 times.)
« Last Edit: September 02, 2013, 05:20:22 pm by tmcisaac » Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 77
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

if i'm correct you set a wrong programmer in avr dude
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What programmer should I be using?
I don't really know much about the avrdude.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 506
Posts: 31345
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Bad news because the auto reset will not work with that chip on the Mac. It is the fault of the chip's drivers not changing the DTR pin when the port is opened. This means you have to hit the reset manually when you try and program an Arduino. This is tricky and dosn't always work.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks, I methodically tested the reset timing with the verbose output as an an indicator. Seems to work.
Logged

Pages: [1]   Go Up
Jump to: