I can't upload the sketch using CP2102

Hi,

I can’t upload the sketch using CP2102 usb serial converter.

We are developing home automation product. So we decide to go with Arduino.(Because Enough USB Serial converter for uploading sketch)

But now the problem is I can’t upload the sketch using my CP2102.

I used a small capacitor between DTR and Reset line.(But not working).

Now I am using arduino as ISP. I can’t wiring each and every time while debugging.(6 wires need to connect for upload the code once. This makes me tired).

We make a provision for programming headers in our board for CP2102. But this is not working.

Processor:
Atmega328P-AU (TQFP package) 5 volt version. (like NANO).
Arduino boot loaded sucessfull.

I have attached the schematic pdf file with this mail. Please find.

Thanks.

PROSI V3.0.pdf (35 KB)

Can you still use the serial monitor when connected through the CP2102 so that, for example, you can see the result of Serial.print() statements ?
If so, you may have overwritten the bootloader when you have loaded sketch using the ISP. If that is the case, reload it [the bootloader].

Did you try to unplug the ESP-01 before programming?

Also, I've just noticed that the pinout of the connector marked HC05BT (is that the one you are currently using for the serial connection?) is not exactly the same as the FTDI pinout on say the Arduino Pro Mini. I guess you've taken that into account.
Here is another variant:

Hi,

Did you try to unplug the ESP-01 before programming?

I am not connect anything with tx rx lines while boot loading and sketch uploading.

Also, I’ve just noticed that the pinout of the connector marked HC05BT (is that the one you are currently using for the serial connection?) is not exactly the same as the FTDI pinout on say the Arduino Pro Mini. I guess you’ve taken that into account.

Please find the attachment.(CP2102).

Can you still use the serial monitor when connected through the CP2102 so that, for example, you can see the result of Serial.print() statements ?
If so, you may have overwritten the bootloader when you have loaded sketch using the ISP. If that is the case, reload it [the bootloader].

I tried. But not working.

Note:
I am using promini. I can upload the sketch for promini using same Cp2102 converter.

My own design board only doesn’t accept the sketch. there is atmega328p-au tqfp chip with 16mhz clock.

Have you grounded CTS on the CP2102?

Have you grounded CTS on the CP2102?

No... Need to connect ?.

But I have pro mini Chinese clone that is working with same cp2102 !!!...

SureshKumar2610:
No... Need to connect ?.

But I have pro mini Chinese clone that is working with same cp2102 !!!...

Doesn't the Chinese mini ground CTS? Mine all do.

Doesn't the Chinese mini ground CTS? Mine all do.

pro mini doesn't have CTS.

pro mini have CTS line ?!!!??...

what you saying ?.

It have only DTR line is available...

Have you flashed a bootloader image into the custom board AtMega328?

SureshKumar2610:
pro mini doesn't have CTS.

Yes it does. Look at the second pin on JP1. It's labeled CTS and it goes directly to ground. If hardware flow control is enabled on your PC, it might have to be grounded somewhere or the transmission may halt.

From post #4:

I am not connect anything with tx rx lines while boot loading and sketch uploading.

I tried [to use the serial monitor]. But not working.

The Serial monitor and the bootloader (if indeed there is one) expect something (in your case the CP2102 clone) to be connected to TX & RX of the ATMEGA328P.

6v6gt:
From post #4:

The Serial monitor and the bootloader (if indeed there is one) expect something (in your case the CP2102 clone) to be connected to TX & RX of the ATMEGA328P.

No, that was in reference to the ESP connection that is shared with serial.

Finally what I need to do ?.

I am confused...

SureshKumar2610:
Finally what I need to do ?.

I am confused...

Did you ensure that CTS was grounded?

CTS ? in cp2102 ? or my mini ?.

SureshKumar2610:
CTS ? in cp2102 ? or my mini ?.

For you, in the cp2102, because you didn't provide one on the proto board. The mini already has one.

As I said, on the mini, the CTS line is simply grounded.

Just run the CTS on the cp2102 to any ground on your proto. It will probably be easier than trying to find another ground on the cp2102.

where ? in cp2102 or in proto board ?(proto board doesn't have cts only DTR) You talking about cp2102 correct ?.

ok.

need to connect the cp2102's cts pin to ground while uploading ?.

like this ?.
cp2102-------------proto board
vcc-------------------vcc
gnd------------------gnd
tx--------------------rx
rx--------------------tx
dtr-------------------reset with series 0.1uf cap.
cts------------------gnd ?.

Yes, that is correct.

Ok. Thank you. I will try... today...

I am going to freshly boot load. then try.