I was trying to program a Arduino pro mini board using cp2102 usb to serial converter. But i'm getting error while press upload.
Error description
Binary sketch size: 2,112 bytes (of a 30,720 byte maximum)
avrdude: stk500_getsync(): not in sync: resp=0x00
Board:
There was no reset pin. But I found "RES" as reset pin, from datasheet, I got pin 9 as reset. And RES was connected to reset. So I tried to connect that with board but no luck.
However, I was able to program the board using Arduino Uno (I connected the board after removing microcontroller from Uno, then VCC, TX, RX, RESET, GND). And mini was programmed successfully.
I wrote the code to send signal over serial in every sec. Then I again connected 4 pin of the mini board (VCC, TX, RX, GND) to 2102 and able to receive serial output sent from mini in serial monitor of Arduino.
RES pin on the CP20102 is completely useless, should have never been brought out to a pad at all (it resets the CP2012 - there is no need to ever do that).
DTR pin goes to GRN pin on the Pro Mini. TX and RX may need to be swapped over as they go from one board to the other - or may not! Theoretically, the pins on the CP2102 board should plug directly to the corresponding Pro Mini pins in the same order.
sktanmoy:
Did that but no luck!
I connected this way:
Pro Mini CP2102
Tx Rx
Rx Tx
Vcc Vcc
Gnd Gnd
Gnd Dtr
Not quite what I said!
Pro Mini CP2102 GRN DTR
TX RX
RX TX They should all line up.
VCC VCC If the marking are different,
GND CTS please show a photo of your Pro Mini. BLK GND
Note: "GRN" on the Pro Mini is not GND, it is the reset line via a capacitor.
MartynC:
There is no reset on these boards.
You are probably correct. There is no DTR line on two of the boards in that video. The board sktanmoy cites however, is not one of those but is actually designed for the Pro Mini to emulate the "genuine" FTDI.
Along with doing what Paul__B stated.
When uploading the sketch try holding the reset on the pro mini , after your sketch has compiled and as soon as the IDE says uploading releasing the pro mini reset button.
elac:
When uploading the sketch try holding the reset on the pro mini , after your sketch has compiled and as soon as the IDE says uploading releasing the pro mini reset button.
Yes, well, I could have explained that too, but you tend to get sick of it and you have to know the right time according to your bootloader. It tends to get tricky.
In fact, it is easier on the fingers and sufficient just to press the reset briefly when you see the "Downloading" status - but not too briefly! You do tend to work out the easiest ways when you spend time with it sitting in a hospital bed.
@Paul__B, you saved my day! Just this and I'm done
Pro Mini CP2102
GRN DTR
TX RX
RX TX They should all line up.
VCC VCC If the marking are different,
GND CTS please show a photo of your Pro Mini.
BLK GND
Paul__B:
You are probably correct. There is no DTR line on two of the boards in that video. The board sktanmoy cites however, is not one of those but is actually designed for the Pro Mini to emulate the "genuine" FTDI.
Apologies. The board looked like one I had but on closer inspection it turned out to be different.
MartynC:
Apologies. The board looked like one I had but on closer inspection it turned out to be different.
Oh yes, there are many that look alike, to be sure.
In particular, there are the "bodgie" boards with the "RST" pin connected to the useless reset pin of the CP2102 and the virtually identical corrected boards (both wiring and labeling) which "Alice" now sells and correctly describes.
Anyway, I seem to have straightened out "sktanmoy" which is of course, the main objective. My suggestion was that the pinout on this CP2102 board mates directly with the Pro Mini - but for some obscure reason the TX and Rx leads do need to be crossed.