ESP32 devkitc rev4 Reset on Serial connection with stellarium (RTS/DTR)

Reishme04
Posts: 2
Joined: Thu Jun 27, 2019 12:35 pm

ESP32 devkitc rev4 Reset on Serial connection with stellarium (RTS/DTR)

Postby Reishme04 » Thu Jun 27, 2019 2:41 pm

My project is a telescope mount controller that connects to the Stellarium planetarium software through a com port. When I connect the esp32 devkitc rev4 to Stellarium to transfer position data from the encoder the esp32 resets which doesn't allow for the connection to complete. The boot mode selection page says
Note that some serial terminal programs (not esptool.py) will assert both RTS and DTR when opening the serial port, pulling them low together and holding the ESP32 in reset. If RTS is wired directly to EN then RTS/CTS "hardware flow control" needs to be disabled in the serial program to avoid this.

Development boards (including all Espressif boards) usually use additional circuitry to avoid this problem - if both RTS and DTR are both asserted together, this doesn't reset the chip.
https://github.com/espressif/esptool/wi ... -Selection

I am using a genuine espressif board but still have the reset. I have desoldered the RTS or DTR resistor (not sure which) off my cheaper DOIT dev board and this solves the problem of resetting on serial connection but then I had to add a button and resistor back in order to load my program in the Arduino IDE. Is there a better way to avoid resets from RTS/DTR during serial connection that doesn't involve a hacky button??

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

Re: ESP32 devkitc rev4 Reset on Serial connection with stellarium (RTS/DTR)

Postby WiFive » Fri Jun 28, 2019 10:11 pm

Most devkits already have the buttons to boot into download mode so if you disconnect the rts/dtr in the right place you should still be able to use them

You could also try using a virtual serial port program that ignores the flow control signals.

Reishme04
Posts: 2
Joined: Thu Jun 27, 2019 12:35 pm

Re: ESP32 devkitc rev4 Reset on Serial connection with stellarium (RTS/DTR)

Postby Reishme04 » Sun Jun 30, 2019 9:50 am

Good point, I probably took the wrong resistor off of the boards since I couldn't find a proper pcb layout.

Who is online

Users browsing this forum: No registered users and 79 guests