Flash using USB in ESP32-S3

jhlee1
Posts: 8
Joined: Mon Sep 11, 2023 7:03 am

Flash using USB in ESP32-S3

Postby jhlee1 » Thu May 30, 2024 10:00 am

Test board: ESP32-S3 DevkitC-1
IDF Version: v5.2

Hi,
I have a question after testing with reference to [DFU via USB, USB OTG, USB Serial/JTAG] in the ESP-IDF Programming Guide.

According to the guide document, the ESP32-S3's default USB PHY connection is USB_SERIAL_JTAG.

Flashing was possible through the USB port(USB_SERIAL_JTAG) like [UART + USB to Serial Converter] flashing.
(idf.py build / idf.py flash)

But I seen the DFU (Device Firmware Upgrade) function of USB_OTG and test it.
It can also flashing possible through the USB port(USB_OTG, USB driver installed by zadig)
(idf.py dfu / idf.py dfu-flash)

What is the difference between the two method? (USB_SERIAL_JTAG and USB_OTG)

Thanks.

liaifat85
Posts: 200
Joined: Wed Dec 06, 2023 2:46 pm

Re: Flash using USB in ESP32-S3

Postby liaifat85 » Thu May 30, 2024 11:40 am

USB_SERIAL_JTAG is primarily used for JTAG debugging and serial communication. It uses the built-in USB-to-serial/JTAG bridge. Communicates over a virtual COM port. USB_OTG supports the DFU class. It uses DFU utilities to upload firmware to the device. It uses the USB DFU protocol, which is a standard protocol for firmware upgrades over USB.

Who is online

Users browsing this forum: Google [Bot] and 271 guests