why esp32 restarting after USB connection?

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
Strik3r
Posts: 15
Joined: Thu Nov 28, 2019 7:36 pm
Location: Saratov, Russia

why esp32 restarting after USB connection?

Post by Strik3r » Mon Jan 06, 2020 4:52 pm

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?

User avatar
tve
Posts: 216
Joined: Wed Jan 01, 2020 10:12 pm
Location: Santa Barbara, CA
Contact:

Re: why esp32 restarting after USB connection?

Post by tve » Mon Jan 06, 2020 6:37 pm

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
.

Strik3r
Posts: 15
Joined: Thu Nov 28, 2019 7:36 pm
Location: Saratov, Russia

Re: why esp32 restarting after USB connection?

Post by Strik3r » Mon Jan 06, 2020 7:59 pm

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...

Post Reply