3788 views|1 replies

1w

Posts

25

Resources
The OP
 

UF2 bootloader for ESP32-S2 [Copy link]

 

The UF2 bootloader of ESP32-S2 has now been merged into

链接已隐藏,如需查看请登录或者注册
. It is mainly aimed at MCUs using
链接已隐藏,如需查看请登录或者注册
, and currently supports ESP32-S2, iMXRT10xx, LPC55xx, and STM32F4. Using the UF2 bootloader, you can easily update the program in disk mode via USB without other software, which is very convenient. The following is how to install the UF2 bootloader in esp32-s2.

1. Before downloading Bootoader, you first need to update esptool.py to support esp32-s2.

pip install esptool --upgrade

2. Then download the corresponding firmware from the tinyuf2 website, or download the source code and compile it yourself. Because I have tested Espressif's Espressif SAOLAR1 WROOM development board before, I directly downloaded the corresponding firmware file.

链接已隐藏,如需查看请登录或者注册


3. Use a microUSB cable to connect the USB of the Espressif SAOLAR1 WROOM development board to the computer

4. Expand the zip firmware file and download the firmware through the command line

esptool.py --chip esp32s2 -p /dev/ttyUSB0 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 4MB 0x8000 partition-table.bin 0xe000 ota_data_initial.bin 0x1000 bootloader.bin 0x2d0000 tinyuf2.bin

Note that you should change the serial port after -p /dev/ttyUSB0 to the corresponding serial port on your computer. If it is a Windows system, it is COMXXX (XXX is the serial port number).

After downloading, connect P19/P20 to the D-/D+ of the USB, and you can see the corresponding disk. For specific connections, please refer to this post: ESP32 - S 2- Saola -1 connect USB

 
 

1w

Posts

25

Resources
2
 
This post was last edited by dcexpert on 2021-1-21 23:40

The download speed of files on GitHub is often blocked and slow. For your convenience, the download files are provided here:

Once UF2 is installed you can then download the CircuitPython firmware (the second file) over USB.

 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list