juechafun/Untitled 1.md

102 lines
1.2 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
#领域/未知
#复盘/0 #临时/备忘 #状态/待处理
20260528-备忘-主题名-文件内容
## 一句话描述
[________]
---
## 编译项目
```bash
. $IDF_PATH/export.sh
idf.py set-target esp32s3
idf.py clean
idf.py build
esptool.py --chip esp32s3 merge_bin -o merged.bin 0x0 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0x10000 build/xr-ai-cam.bin
cd /workspace/micropython/ports/esp32/build-ESP32_GENERIC_S3
python -m esptool --chip esp32s3 merge_bin -o merged.bin \
  --flash_mode dio --flash_size 4MB --flash_freq 80m \
  0x0 bootloader/bootloader.bin \
  0x8000 partition_table/partition-table.bin \
  0x10000 micropython.bin
```
## 烧录
Windows ESP-IDF
```bash
# ren merged.bin merged_latest.bin
move /y ..\merged.bin merged.bin
move /y ..\firmware_v1.0.0_latest.bin merged.bin
# cd C:\Users\Administrator\Downloads
esptool.py --chip esp32s3 --port COM22 --baud 921600 write_flash -z 0x0 merged.bin
esptool.py --chip esp32s3 --port COM22 erase_flash
idf.py monitor -p COM22
```
mkdir -p /workspace/pre-merge
cp cat_face.zip /workspace/pre-merge
unzip cat_face.zip
cd /workspace/pre-merge