ESP32-S3 Console + DFU using internal USB

BinaryPoet
Posts: 9
Joined: Thu Aug 31, 2023 1:01 pm

ESP32-S3 Console + DFU using internal USB

Postby BinaryPoet » Thu Nov 30, 2023 9:36 am

Hello!
For a new project with ESP32-S3 I would use the internal USB-PHY for:

- Serial Console
- DFU

From the documentation (https://docs.espressif.com/projects/esp ... s/dfu.html) I understand tha I have to burn the USB_PHY_SEL eFuse.

Is there a way to upgrade firmware using the internal USB without the need to press buttons on the device as it can be done with an external USB-Serial converter which sets the DFU mode GPIOs using the RTS, DTR lines?
What I expect is something like writing some register, reset the CPU to enter in DFU mode, provided that a rescue DFU mode with buttons will be available.

Thank you.

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: ESP32-S3 Console + DFU using internal USB

Postby chegewara » Tue Mar 19, 2024 5:32 pm

Hi,
you dont have to change eFuse. All you need is to add tinyUSB into your app.
This eFuse

Code: Select all

USB_PHY_SEL
is to disable JTAG and enable USB OTG on esp32S3 reboot, before bootloader start (i dont remember from top of my head if DFU endpoint is included thou).

When you are using DFU you dont have to worry about RTS/DTR or GPIO0. DFU flash application will switch esp32 into download mode.

Who is online

Users browsing this forum: No registered users and 194 guests