ESP32-C3 USB Serial JTAG causes reset on disconnect – how to avoid?
Posted: Thu Jul 24, 2025 5:13 am
Hello,
I'm using the ESP32-C3-DevKitM-1 and working on the AT firmware.
I'm currently communicating with the device over USB Serial JTAG, and everything works fine — except for one issue.
When I connect to the ESP32-C3 via a serial terminal (on the PC) and then disconnect it, the ESP32-C3 resets.
At first, I suspected a hardware issue, so I removed the pull-up/down resistors and transistors, but the reset still occurs.
After some investigation, I found that this behavior is related to the SET_CONTROL_LINE_STATE request from the host, which seems to trigger a reset.
Is there any way to prevent this reset behavior when using USB Serial JTAG on the ESP32-C3?
I would appreciate any advice or solutions.
Thank you!
For reference, I am not using UART0 but communicating via USB.
I'm using the ESP32-C3-DevKitM-1 and working on the AT firmware.
I'm currently communicating with the device over USB Serial JTAG, and everything works fine — except for one issue.
When I connect to the ESP32-C3 via a serial terminal (on the PC) and then disconnect it, the ESP32-C3 resets.
At first, I suspected a hardware issue, so I removed the pull-up/down resistors and transistors, but the reset still occurs.
After some investigation, I found that this behavior is related to the SET_CONTROL_LINE_STATE request from the host, which seems to trigger a reset.
Is there any way to prevent this reset behavior when using USB Serial JTAG on the ESP32-C3?
I would appreciate any advice or solutions.
Thank you!
For reference, I am not using UART0 but communicating via USB.