Avoid reboot when connecting USB cable

ves011
Posts: 20
Joined: Fri Oct 07, 2022 2:31 pm

Avoid reboot when connecting USB cable

Postby ves011 » Mon Mar 06, 2023 4:11 pm

I have my own ESP32S3 board which is very simple. It has ESP32-S3-WROOM-1 module with reset circuit and switch, boot switch and a 16p connector to access some pads. Communication with board is via USB Serial/JTAG controller pins 13 and 14 (IO19, IO20)
Strapping pins are left unconnected.
The power is provided by an external supply and my USB cable has only 3 wires D+, D- and GND
Whenever i plug the cable ESP goes through a reboot cycle. Can this reboot be avoided?

ESP_LJH
Posts: 387
Joined: Tue May 18, 2021 9:21 am

Re: Avoid reboot when connecting USB cable

Postby ESP_LJH » Tue Mar 07, 2023 11:35 am

Please enter into UART0 download mode, then reboot could be stopped. Or if flash is not empty, there should be no reboot.

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

Re: Avoid reboot when connecting USB cable

Postby ESP_Sprite » Wed Mar 08, 2023 12:43 am

In general, USB shouldn't do a reboot cycle by itself. What software are you using to look at the serial monitor? Perhaps it wiggles DTR/RTD in such a way that it resets the ESP, 'idf monitor' does that by default iirc.

ves011
Posts: 20
Joined: Fri Oct 07, 2022 2:31 pm

Re: Avoid reboot when connecting USB cable

Postby ves011 » Wed Mar 08, 2023 12:30 pm

I agree USB shouldnt do a reboot by simply connecting the cable.
In this case i'm thinking maybe because USB PHY is shared with JTAG logic, some signals have multiple meanings....
I tried with GPIO3 shortcutted to ground to force JTAG signal from on-chip JTAG pins, but same result.

The software i use is teraterm. Looking into settings dowsen't tell anyting about control signals. I tried putty, but same problem.

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 90 guests