# DFU -- Using the native USB on ESP32-S2 for flashing the firmware

DevFeed: [DFU -- Using the native USB on ESP32-S2 for flashing the firmware](<https://devfeed.tech/articles/dfu-using-the-native-usb-on-esp32-s2-for-flashing-the-firmware-13833.md>)

Original publisher: [Read original article](<https://developer.espressif.com/blog/dfu-using-the-native-usb-on-esp32-s2-for-flashing-the-firmware/>)

Author: John Lee

Published: 2021-03-23T00:00:00Z

Content type: tutorial

Language: en

Sources: [Blog on Developer Portal](<https://devfeed.tech/sources/blog-on-developer-portal.md>)

Topics: [Esp32 S2](<https://devfeed.tech/topics/esp32-s2.md>), [USB](<https://devfeed.tech/topics/usb.md>), [ESP-IDF](<https://devfeed.tech/topics/esp-idf.md>), [Embedded Software Dev](<https://devfeed.tech/topics/embedded-software-dev.md>)

Tags: [blog](<https://devfeed.tech/tags/blog.md>), [boot](<https://devfeed.tech/tags/boot.md>), [development-board](<https://devfeed.tech/tags/development-board.md>), [dfu](<https://devfeed.tech/tags/dfu.md>), [esp-idf](<https://devfeed.tech/tags/esp-idf.md>), [esp32-s2](<https://devfeed.tech/tags/esp32-s2.md>), [espressif](<https://devfeed.tech/tags/espressif.md>), [firmware](<https://devfeed.tech/tags/firmware.md>), [flashing](<https://devfeed.tech/tags/flashing.md>), [usb](<https://devfeed.tech/tags/usb.md>)

## AI overview

A tutorial on using the ESP32-S2's native USB peripheral and USB DFU mechanism to flash firmware without an external IC or programmer. It covers ESP-IDF version requirements, USB wiring for the ESP32-Saola-1 board, entering DFU mode, and building DFU firmware.

## Source excerpt

Since the ESP32-S2 was released, a notable new functionality got everyone's attention: the USB host and device capabilities. This new functionality adds a new world in terms of possibilities and cool stuff that could be made using USB and it's a game changer in many projects. But one of the uses for this peripheral is to upload the firmware without any external IC or programmer. This can be done directly by using the USB DFU mechanism.