2025-06-03 12:20:57 +08:00
|
|
|
|
# 相关资料:
|
|
|
|
|
|
- [插线款](https://www.wdmomo.fun:81/doc/index.html?file=001_%E8%AE%BE%E8%AE%A1%E9%A1%B9%E7%9B%AE/0001_%E5%B0%8F%E6%99%BAAI/003_ESP32-CGC-144%E6%8F%92%E7%BA%BF%E7%89%88%E5%B0%8F%E6%99%BAAI)
|
|
|
|
|
|
|
|
|
|
|
|
- [电池款](https://www.wdmomo.fun:81/doc/index.html?file=001_%E8%AE%BE%E8%AE%A1%E9%A1%B9%E7%9B%AE/0001_%E5%B0%8F%E6%99%BAAI/004_ESP32-CGC-144%E7%94%B5%E6%B1%A0%E7%89%88%E5%B0%8F%E6%99%BAAI)
|
|
|
|
|
|
|
|
|
|
|
|
# 编译配置命令
|
|
|
|
|
|
|
|
|
|
|
|
**配置编译目标为 ESP32:**
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
idf.py set-target esp32
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
**打开 menuconfig:**
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
idf.py menuconfig
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
**选择板子:**
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
Xiaozhi Assistant -> Board Type -> ESP32 CGC 144
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
**修改 flash 大小:**
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
Serial flasher config -> Flash size -> 4 MB
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
**修改分区表:**
|
|
|
|
|
|
|
|
|
|
|
|
```
|
2025-06-04 12:11:41 +08:00
|
|
|
|
Partition Table -> Custom partition CSV file -> partitions/v1/4m.csv
|
2025-06-03 12:20:57 +08:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
**编译:**
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
idf.py build
|
|
|
|
|
|
```
|