下载ESP32的Micropython固件
官方连接https://www.micropython.org/download/esp32/
看了下描述,上面的是IDF4.x系列编译,下面是IDF3.x系列编译,我们默认选新的
下载安装CP2102驱动
CP210x USB to UART Bridge VCP Drivers - Silicon LabsThe CP210x USB to UART Bridge Virtual COM Port (VCP) drivers are required for device operation as a Virtual COM Port to facilitate host communication with CP210x products. These devices can also interface to a host using the direct access driver.https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers在以上连接下载对应操作系统的驱动文件。
安装ESP Tools
pip install esptool
使用命令行擦写固件:
esptool.py --port com4 erase_flash
出现如下:
使用如下命令烧录固件:
esptool.py --chip esp32 --port com4 write_flash -z 0x1000 .\esp32-20220117-v1.18.bin
烧录完成:
使用Thonny可以看到烧录后的终端及版本信息: