Wrong BL=21 caused black screen; INT is separate from backlight and stays INPUT after reset. Co-authored-by: Cursor <cursoragent@cursor.com>
1.3 KiB
1.3 KiB
预编译固件(可随时刷写)
| 目录 | 板型 | 触控 |
|---|---|---|
cyd/ |
ESP32-2432S028R 2.8"(ILI9341) | SoftSPI XPT2046 |
cyd_35r/ |
ESP32-3248S035C 3.5"(ST7796) | GT911 电容 |
功能:电子相册(JPG / PNG / GIF)+ TF 卡。版本见各目录 VERSION.txt。
直接刷写(无需重新编译)
- USB 连接板子
- 按板型进入对应目录:
cd firmware\cyd # 2.8"
# 或
cd firmware\cyd_35r # 3.5C
.\flash.ps1
# 或指定端口
.\flash.ps1 -Port COM3
也可运行 flash.bat。
依赖其一即可:
- 已安装 PlatformIO(
pio,自带 esptool) - 或
pip install esptool
手动 esptool
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
从源码重新打包进本目录
在仓库根目录:
.\firmware\export_from_build.ps1 # 2.8 → firmware\cyd
.\firmware\export_from_build.ps1 -Env cyd_35r # 3.5 → firmware\cyd_35r
# 仅复制、不编译:
.\firmware\export_from_build.ps1 -SkipBuild
.\firmware\export_from_build.ps1 -Env cyd_35r -SkipBuild