Page 1 of 1

Can not Upload Firmware to ESP32 using CP230x custom board

Posted: Tue Aug 08, 2023 8:34 pm
by Danjoh
Hello,

i have created a custom board using an esp32s3-wroom and an cp210 uart bridge.

when I try to upload a firmware / program I get the error message:

_____________________

Sketch uses 233525 bytes (17%) of program storage space. Maximum is 1310720 bytes.
Global variables use 18244 bytes (5%) of dynamic memory, leaving 309436 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.5.1
Serial port /dev/cu.usbserial-0001
Connecting......................................

A fatal error occurred: Failed to connect to ESP32-S3: No serial data received.
For troubleshooting steps visit: https://docs.espressif.com/projects/esp ... oting.html
Failed uploading: uploading error: exit status 2

_________________

I am not 100% sure if my setup is correct (see pictures). I have measured the following values:

GPIO0 = 0.01 V → 0.01V (when SW2 pushed)

GPIO2 = not connected

GPIO12 = low

GPIO15 = 2.9 V

EN = high 3.3v → 0.5V (when SW1 pushed)

DTR = 3.3 V (SW1 / SW2 not pushed) → 2.9 V SW1 Pushed

RTS = 3.3 V (SW1 / SW2 not pushed) → 2.9 V SW2 pushed

Re: Can not Upload Firmware to ESP32 using CP230x custom board

Posted: Wed Aug 09, 2023 4:26 am
by ESP_Sprite
Looks like you connected the TxD of your CP230x to the TxD of the ESP32 and RxD to RxD. Those should be crossed: TxD of the ESP should go to RxD of the CP230x and vice versa.

Re: Can not Upload Firmware to ESP32 using CP230x custom board

Posted: Thu Aug 10, 2023 5:42 pm
by Danjoh
Oh okay, thank you! I will try that out. Keep you updated if this helped

Re: Can not Upload Firmware to ESP32 using CP230x custom board

Posted: Thu Aug 10, 2023 8:26 pm
by Danjoh
Hi ESP_Sprite,

thanks again for your help. That was exactly the problem! Great. Now I can proceed. :)