Not able to program custom ESP32 board with FT232R USB to UART chip

pietnl
Posts: 10
Joined: Mon Mar 01, 2021 6:46 pm

Not able to program custom ESP32 board with FT232R USB to UART chip

Postby pietnl » Mon Mar 01, 2021 7:04 pm

I recently had someone design a board for me that uses a ESP32-WROOM-32D and a FT232R USB to UART chip.
The idea was to make the board in such a way that it would be programmable using the EspTool.

Unfortunately, I'm unable to program the board. The only way I can program the board is by manually connecting GPIO0 to ground en than resetting the board (by connection EN to ground shortly)

According to the designer, this should not be necessary.

This is what the ESP and FT232R part of the circuit looks like:
ESP.PNG
ESP.PNG (18.51 KiB) Viewed 7707 times
usb to uart.PNG
usb to uart.PNG (47.49 KiB) Viewed 7707 times
There's no connection between EN/GPIO0 and the FT232R.
Most ESP32 board use DTR/RTS from the USB to UART chip to start the ESP32 in programming mode, I believe, usually with a schema like this:
prog circuit.PNG
prog circuit.PNG (5.53 KiB) Viewed 7707 times
But according to the designer, this should not be necessary when using the FT232R.

Can anybody give me advice on whether or not the extra piece of circuit using DTR and RTS is required to program the board?

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Not able to program custom ESP32 board with FT232R USB to UART chip

Postby WiFive » Mon Mar 01, 2021 9:17 pm

You are right, he is wrong.

becorey
Posts: 92
Joined: Sat Mar 28, 2020 4:18 pm

Re: Not able to program custom ESP32 board with FT232R USB to UART chip

Postby becorey » Tue Mar 02, 2021 12:06 am

The esp32 needs a signal on GPIO0 to enter firmware download mode, and a toggle on EN/RESET to reset it and enter download mode. The FT232R could not magically do that over the TX/RX lines. Sorry, your designer was mistaken. Take a page from the many esp32 dev boards, use that auto flash circuit.

I like to use a part like UMH3N, the two transistors and resistors are in a single package, so it's just a single component to implement the auto flash function:
Image

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

Re: Not able to program custom ESP32 board with FT232R USB to UART chip

Postby ESP_Sprite » Tue Mar 02, 2021 6:01 am

Huh, that's a cute part; stashing that in the mental database for the next time I need it. Thanks for bringing it up.

pietnl
Posts: 10
Joined: Mon Mar 01, 2021 6:46 pm

Re: Not able to program custom ESP32 board with FT232R USB to UART chip

Postby pietnl » Tue Mar 02, 2021 7:07 pm

Thanks for the clarification!

The UMH3N looks like a great part to save some space, will give it a try!

ESP_Minatel
Posts: 364
Joined: Mon Jan 04, 2021 2:06 pm

Re: Not able to program custom ESP32 board with FT232R USB to UART chip

Postby ESP_Minatel » Tue Mar 02, 2021 7:29 pm

becorey wrote:
Tue Mar 02, 2021 12:06 am
The esp32 needs a signal on GPIO0 to enter firmware download mode, and a toggle on EN/RESET to reset it and enter download mode. The FT232R could not magically do that over the TX/RX lines. Sorry, your designer was mistaken. Take a page from the many esp32 dev boards, use that auto flash circuit.

I like to use a part like UMH3N, the two transistors and resistors are in a single package, so it's just a single component to implement the auto flash function:
Image
Better than my fellow BC847BS for almost the same price!

Who is online

Users browsing this forum: No registered users and 93 guests