0
\$\begingroup\$

I recently broke my USB port on ESP 32 ...

enter image description here

... so I need somehow program it. I have this FTDI programmer. ...

enter image description here

I tried to flash it (I pushed boot and EN button together and when Arduino IDE finished compilation and started flashing, I released EN and then boot button.)

Connection:

ESP 32 VIN ... VCC programmer (3.3 V)

ESP 32 GND ... GND programmer

ESP 32 TX ... RX programmer

ESP 32 RX ... TX programmer

After this attempt I get this error:

enter image description here

I tried to use this programmer to program Arduino nano and it works. Do you have any sugesstions about programming this ESP 32 without USB port?

\$\endgroup\$
  • \$\begingroup\$ You may be missing a key connection or initialization, or you may need to disconnect the on-board USB-serial chip. \$\endgroup\$ – Chris Stratton Jul 13 '19 at 17:01
  • \$\begingroup\$ I'm not experienced with ESP32; I bought one and played with one time. I have some experience with ESP8266. I can easily program ESP8266 using an USB-to-serial adapter, BUT, when booting up ESP8266, some pins have to be grounded, and some pins connected to +Vcc. If you connected only Vcc, GND, TX and RX, ESP can't know that you want to write to it, instead of just run the written code. Also, this breakout board probably has connections made in order that the serial data goes to the ESP32 from that little squared chip (near the boot switch), which probably makes USB to serial translation. \$\endgroup\$ – mguima Jul 14 '19 at 1:14
0
\$\begingroup\$

It's unclear from the image if you have set the FTDI adapter to the correct voltage 5.0V or 3.3V (it should be 3.3V).

I have experience programming bare ESP32 modules in this manner, but never a break-out board like this.

Looking at your log and reading through esptool.py is seems clear that you have communication in both directions, otherwise it should have failed earlier - BUT I would verify this by disconnecting one wire (TX, RX) at a time and try a download, just make sure that the download behavior does indeed change.

How are you powering the ESP32? It looks like you are taking VCC from the FTDI adapter. The ESP32 is a bit power hungrier than many other controllers, are you sure your FTDI adapter is able to power it adequately?

Removing the USB/TTL bridge should not be necessary as it should be passive with no USB connected, and most ESP32 breakout boards include a resistor on the bridge TX output to make sure you can "override" the signal externally, like you are doing now. However, if you keep being unable to program I would remove it or cut the relevant traces just to be sure.

\$\endgroup\$
  • \$\begingroup\$ The problem was in powering ESP32. You were right, FTDI adapter wasn't abe to power ESP32. \$\endgroup\$ – LucasN Jul 14 '19 at 14:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.