Using esptool.py with RTS/CTS instead of RTS/DTR

jimparis
Posts: 6
Joined: Fri Jun 15, 2018 7:29 pm

Using esptool.py with RTS/CTS instead of RTS/DTR

Postby jimparis » Fri Jun 15, 2018 8:04 pm

I have a FTDI USB-to-serial adapter that only brings out TX, RX, RTS, and CTS, so I hooked it up directly to the ESP32 as follows:

Code: Select all

RTS --> EN
CTS --> IO0/BOOT
 TX --> RXD0
 RX <-- TXD0 
Then I wrote a esptool.py wrapper that makes it work, via libftdi & switching in and out of bitbang mode as needed:

https://github.com/jimparis/esptool-ftdi

Works great here. Maybe someone else will find it useful.

Jim

ESP_Angus
Posts: 2246
Joined: Sun May 08, 2016 4:11 am

Re: Using esptool.py with RTS/CTS instead of RTS/DTR

Postby ESP_Angus » Mon Jun 18, 2018 12:24 am

Nice trick!

Gaz0rp
Posts: 6
Joined: Sat Aug 25, 2018 7:07 pm

Re: Using esptool.py with RTS/CTS instead of RTS/DTR

Postby Gaz0rp » Wed Apr 24, 2019 5:25 pm

Can it be used to use CTS instead of RTS? My FTDI has one DTR, but just CTS.

jimparis
Posts: 6
Joined: Fri Jun 15, 2018 7:29 pm

Re: Using esptool.py with RTS/CTS instead of RTS/DTR

Postby jimparis » Fri Apr 26, 2019 3:39 pm

So you want CTS/DTR instead of RTS/DTR? I can't test that easily here, but try the cts-dtr branch on github. Connect CTS to EN and DTR to IO0/BOOT.

Jim

Who is online

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