Can not Upload Firmware to ESP32 using CP230x custom board

Danjoh
Posts: 6
Joined: Tue Aug 08, 2023 8:24 pm

Can not Upload Firmware to ESP32 using CP230x custom board

Postby Danjoh » Tue Aug 08, 2023 8:34 pm

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
Attachments
Bild 08.08.23 um 22.32.jpg
Bild 08.08.23 um 22.32.jpg (382.82 KiB) Viewed 846 times
Bild 08.08.23 um 22.32 (1).jpg
Bild 08.08.23 um 22.32 (1).jpg (303.58 KiB) Viewed 846 times

ESP_Sprite
Posts: 9766
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Wed Aug 09, 2023 4:26 am

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.

Danjoh
Posts: 6
Joined: Tue Aug 08, 2023 8:24 pm

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

Postby Danjoh » Thu Aug 10, 2023 5:42 pm

Oh okay, thank you! I will try that out. Keep you updated if this helped

Danjoh
Posts: 6
Joined: Tue Aug 08, 2023 8:24 pm

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

Postby Danjoh » Thu Aug 10, 2023 8:26 pm

Hi ESP_Sprite,

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

Who is online

Users browsing this forum: Baidu [Spider] and 120 guests