Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32-C3 固件下载小工具 #29

Open
Meekdai opened this issue Sep 20, 2023 · 0 comments
Open

ESP32-C3 固件下载小工具 #29

Meekdai opened this issue Sep 20, 2023 · 0 comments
Labels

Comments

@Meekdai
Copy link
Owner

Meekdai commented Sep 20, 2023

ESP32-C3内置了USB,可以使用USB进行下载,但是每次通过命令行敲指令进行下载不是很方便,所以写了几句bat代码,方便下载和擦除芯片。

esp32-c3-download.bat

@echo off
echo ============================================
wmic path win32_pnpentity get caption /format:table| find "COM" 
echo ============================================
set /p COM_NUM=input COM number:
esptool.py --chip esp32c3 --port COM%COM_NUM% --baud 460800 write_flash -z 0x0 firmware.bin
pause

esp32-c3-erase_flash.bat

@echo off
echo ============================================
wmic path win32_pnpentity get caption /format:table| find "COM" 
echo ============================================
set /p COM_NUM=input COM number:
esptool.py --chip esp32c3 --port COM%COM_NUM% erase_flash
pause

前置条件:

  • 需要安装esptool.py
  • 需要把固件重命名为firmware.bin然后放在和bat文件的相同目录下。

双击运行bat文件后,会自动列出当前的所有COM口,然后输入对应ESP32-C3的COM口号即可,不用再打开资源管理器来查看,非常的方便。

@Meekdai Meekdai added the 硬件 label Sep 20, 2023
@Meekdai Meekdai added ESP32 and removed ESP32 labels Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant