The ESP32-C3 chip has a built-in USB Serial/JTAG Controller. Is it possible to use this in your own program just like the UART ? If it is possible, how to do it ?
Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tamTvWidget wrote:.Do I understand correctly that the USB port will always be enabled in "Download Boot" mode and in "SPI Boot" mode
TvWidget wrote:.Will it not be possible to replace the firmware via USB if there is no button in it ?
khoam wrote:.Not the USB port, but the ESP32-C3 chip itself can be set in one of these two modes. If it is set in "Download Boot" mode then it can be programmed from UART 0 or USB.
TvWidget wrote:.Do you perhaps know when the official version 4.4 can be expected ?
TvWidget wrote:.However, it seems to me that sending a new message e.g. using printf interrupts the sending of the previous one. Is there any mechanism to wait for all characters to be sent from the buffer ?
Quote:An USB-to-serial bridge chip will just send the bytes to a (not listening) chip.
TvWidget wrote:.I tried using JTAG Controller via USB.
khoam wrote:.I think the driver " Espressif - WinUSB support for JTAG (ESP32-C3) " is not properly installed.
TvWidget wrote:.Error: libusb_open() failed with LIBUSB_ERROR_NOT_FOUND
TL;DR: ESP32-C3’s built-in USB runs at Full-Speed 12 Mbps and, when CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG is enabled, replaces the classic UART; “In Download-Boot it can be programmed from UART 0 or USB” [Elektroda, khoam, post #19486308]
Why it matters: one cable now handles flashing, logging and JTAG debugging—no extra FTDI chip needed.
• USB pins: GPIO19 (D+) & GPIO18 (D−) [ESP32-C3 TRM]. • Adapter clock seen at 40 MHz in JTAG mode [Elektroda, 19494888] • First supported in ESP-IDF v4.3; menu option appears in v4.4-master [Elektroda, #19485520; #19494299]. • Download-Boot entered by holding GPIO9 low on reset [Elektroda, post #19486264] • Default USB VID:PID 0x303A:0x1001 [Elektroda, 19493397]