Archive flashable cyd_28r firmware bins for offline reflash.
Add flash scripts and export helper so the board can be programmed without rebuilding from source. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
46
firmware/README.md
Normal file
46
firmware/README.md
Normal file
@@ -0,0 +1,46 @@
|
||||
# 预编译固件(可随时刷写)
|
||||
|
||||
当前归档目录:[`cyd_28r/`](cyd_28r/)
|
||||
|
||||
对应板子:**CYD ESP32-2432S028R**(ILI9341),DHT11 → GPIO22。
|
||||
版本信息见 [`cyd_28r/VERSION.txt`](cyd_28r/VERSION.txt)。
|
||||
|
||||
## 直接刷写(无需重新编译)
|
||||
|
||||
1. USB 连接板子
|
||||
2. 在本目录执行:
|
||||
|
||||
```powershell
|
||||
cd firmware\cyd_28r
|
||||
.\flash.ps1
|
||||
# 或指定端口
|
||||
.\flash.ps1 -Port COM3
|
||||
```
|
||||
|
||||
也可双击 / 运行 `flash.bat`。
|
||||
|
||||
依赖其一即可:
|
||||
|
||||
- 已安装 PlatformIO(`pio`,自带 esptool)
|
||||
- 或 `pip install esptool`
|
||||
|
||||
## 手动 esptool
|
||||
|
||||
```bash
|
||||
esptool.py --chip esp32 --port COM3 --baud 921600 write_flash -z ^
|
||||
--flash_mode dio --flash_freq 40m --flash_size 4MB ^
|
||||
0x1000 bootloader.bin ^
|
||||
0x8000 partitions.bin ^
|
||||
0xe000 boot_app0.bin ^
|
||||
0x10000 firmware.bin
|
||||
```
|
||||
|
||||
## 从源码重新打包进本目录
|
||||
|
||||
在仓库根目录:
|
||||
|
||||
```powershell
|
||||
.\firmware\export_from_build.ps1
|
||||
# 仅复制、不编译:
|
||||
.\firmware\export_from_build.ps1 -SkipBuild
|
||||
```
|
||||
Reference in New Issue
Block a user