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.
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].
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:
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.
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.
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.
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.
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 ?.