← index #17570Issue #15984
Off-topic · high · value 2.488
QUERY · ISSUE

esp32S3 The USB function is occupied by USB jtag/serial (VID_303A&PID_1001)

openby absn12opened 2025-06-27updated 2026-03-12
bugport-esp32

Port, board and/or hardware

esp32S3

MicroPython version

MicroPython v1.24.1

Reproduction

No, I've provided everything above.

Expected behaviour

Like 1.19, there is no need to plug or unplug the USB cable, and USB related functions can be used normally

Observed behaviour

on win10
After connecting the USB cable and booting up, the pc system will generate a USB jtag port. After entering micropython, all USBs do not work (such as my microPython USB CDC repl), and the USB jtag port will continue to exist (not work,VID_303A&PID_1001). Only by plugging and unplugging the USB cable once can the relevant USB functions work properly
V1.19 does not have this issue (but on 1.19, IDF's bootloder performs some pin detection to enter different OTA apps. detection stays for >200ms, the same issue will also occur)

Additional Information

No, I've provided everything above.

Code of Conduct

Yes, I agree

CANDIDATE · ISSUE

build error undeclared 'USB_SERIAL_JTAG_PACKET_SZ_BYTES

closedby songzhishuoopened 2024-10-09updated 2024-10-11
bugport-esp32

Port, board and/or hardware

esp32c6

MicroPython version

master 197becbdc

Reproduction

make -j

Expected behaviour

No response

Observed behaviour

/home/argon/Desktop/mpy/micropython/ports/esp32/usb_serial_jtag.c: In function 'usb_serial_jtag_tx_strn':
/home/argon/Desktop/mpy/micropython/ports/esp32/usb_serial_jtag.c:101:17: error: 'USB_SERIAL_JTAG_PACKET_SZ_BYTES' undeclared (first use in this function); did you mean 'USB_SERIAL_JTAG_BDATA_BITS'?
101 | if (l > USB_SERIAL_JTAG_PACKET_SZ_BYTES) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| USB_SERIAL_JTAG_BDATA_BITS
/home/argon/Desktop/mpy/micropython/ports/esp32/usb_serial_jtag.c:101:17: note: each undeclared identifier is reported only once for each function it appears in
[ 96%] Building C object esp-idf/main_esp32c6/CMakeFiles/idf_main_esp32c6.dir//machine_touchpad.c.obj
[ 96%] Building C object esp-idf/main_esp32c6/CMakeFiles/idf_main_esp32c6.dir//machine_pin.c.obj
make[3]: *** [esp-idf/main_esp32c6/CMakeFiles/__idf_main_esp32c6.dir/build.make:3297:esp-idf/main_esp32c6/CMakeFiles/idf_main_esp32c6.dir//usb_serial_jtag.c.obj] 错误 1
make[3]: *** 正在等待未完成的任务....
[ 96%] Building C object esp-idf/main_esp32c6/CMakeFiles/idf_main_esp32c6.dir//machine_dac.c.obj
make[3]: 离开目录“/home/argon/Desktop/mpy/micropython/ports/esp32/build-ESP32_GENERIC_C6”
make[2]: *** [CMakeFiles/Makefile2:4546:esp-idf/main_esp32c6/CMakeFiles/__idf_main_esp32c6.dir/all] 错误 2
make[2]: 离开目录“/home/argon/Desktop/mpy/micropython/ports/esp32/build-ESP32_GENERIC_C6”
make[1]: *** [Makefile:136:all] 错误 2
make[1]: 离开目录“/home/argon/Desktop/mpy/micropython/ports/esp32/build-ESP32_GENERIC_C6”
make failed with exit code 2, output of the command is in the /home/argon/Desktop/mpy/micropython/ports/esp32/build-ESP32_GENERIC_C6/log/idf_py_stderr_output_55067 and /home/argon/Desktop/mpy/micropython/ports/esp32/build-ESP32_GENERIC_C6/log/idf_py_stdout_output_55067
-e See https://github.com/micropython/micropython/wiki/Build-Troubleshooting

Additional Information

No, I've provided everything above.

Code of Conduct

Yes, I agree

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied