Go Down

Topic: I can't upload the sketch using CP2102 (Read 2057 times) previous topic - next topic

SureshKumar2610

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.



My YouTube Channel "Arduino Enthu"

6v6gt

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

Whandall

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

Ah, this is obviously some strange usage of the word 'safe' that I wasn't previously aware of. (D.Adams)

6v6gt

#3
Jun 04, 2017, 10:26 am Last Edit: Jun 04, 2017, 10:34 am by 6v6gt Reason: added image
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:





SureshKumar2610

Hi,


Quote
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.



Quote
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).


Quote
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.
My YouTube Channel "Arduino Enthu"

aarg

Have you grounded CTS on the CP2102?
  ... with a transistor and a large sum of money to spend ...
Please don't PM me with technical questions. Post them in the forum.

SureshKumar2610

Quote
Have you grounded CTS on the CP2102?
No... Need to connect ?.

But I have pro mini Chinese clone that is working with same cp2102 !!!...
My YouTube Channel "Arduino Enthu"

aarg

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.
  ... with a transistor and a large sum of money to spend ...
Please don't PM me with technical questions. Post them in the forum.

SureshKumar2610

#8
Jun 04, 2017, 03:54 pm Last Edit: Jun 04, 2017, 04:05 pm by SureshKumar2610
Quote
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...
My YouTube Channel "Arduino Enthu"

avr_fred

#9
Jun 04, 2017, 04:27 pm Last Edit: Jun 04, 2017, 04:27 pm by avr_fred
Have you flashed a bootloader image into the custom board AtMega328?

aarg

#10
Jun 04, 2017, 05:11 pm Last Edit: Jun 04, 2017, 05:14 pm by aarg
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.
  ... with a transistor and a large sum of money to spend ...
Please don't PM me with technical questions. Post them in the forum.

6v6gt

#11
Jun 04, 2017, 09:56 pm Last Edit: Jun 04, 2017, 09:57 pm by 6v6gt
From post #4:

Quote
I am not connect anything with tx rx lines while boot loading and sketch uploading.
Quote
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.

aarg

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.
  ... with a transistor and a large sum of money to spend ...
Please don't PM me with technical questions. Post them in the forum.

SureshKumar2610

Finally what I need to do ?.

I am confused...
My YouTube Channel "Arduino Enthu"

aarg

Finally what I need to do ?.

I am confused...
Did you ensure that CTS was grounded?
  ... with a transistor and a large sum of money to spend ...
Please don't PM me with technical questions. Post them in the forum.

Go Up