Page 1 of 1

why esp32 restarting after USB connection?

Posted: Mon Jan 06, 2020 4:52 pm
by Strik3r
Why esp32 restarting after USB connection?
For example, if i connect to it with EsPy, disconnect, and after connect with another software - ESP32 will make reboot. Why?
I make software to control it via serial port, and in some cases ESP32 is rebooting even after reconnection of my program.

I heard, it can be the feature of CP2102 usb-uart convertor, i finded RST pin of it, and checked the RSB for it connections, and i find no connections of RST pin of CP2102. Is there any ways to disable that annoying rebootings?

Re: why esp32 restarting after USB connection?

Posted: Mon Jan 06, 2020 6:37 pm
by tve
Virtually all the usb-serial converters are hooked up to the esp32's enable pin, which can reset the esp32 by toggling the rts and/or dtr serial control lines. What you're observing is due to the fact that when your terminal program starts it toggles these lines, or the driver underneath does it. On linux I have had luck using something like

Code: Select all

miniterm2.py --rts 0 --dtr 0 /dev/ttyUSB0
.

Re: why esp32 restarting after USB connection?

Posted: Mon Jan 06, 2020 7:59 pm
by Strik3r
Thanks. Strange thing. I rollbacked sp2102 driver to older version - 6.7.4.261, and esp32 dont rebooting when i reconnecting inside of my programm now. It solves my problem... But with this old driver version flasher of esp32 isnt work (i sucseed flashing process only with new version of 10.1.8.2466), and it still rebooting with connection of other soft after my programm, i dont like this. Am i uderstand right - the trouble in drivers of sp2102 uart bridge from silicon power?
tve wrote:
Mon Jan 06, 2020 6:37 pm
On linux I have had luck using something like

Code: Select all

miniterm2.py --rts 0 --dtr 0 /dev/ttyUSB0
.
Its windows...