docs: update build/flash instructions with fullclean and port detection
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
14
README.md
14
README.md
@@ -87,11 +87,17 @@ Edit `main/mimi_secrets.h`:
|
|||||||
Then build and flash:
|
Then build and flash:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
idf.py build
|
# Clean build (required after any mimi_secrets.h change)
|
||||||
idf.py -p /dev/ttyACM0 flash monitor
|
idf.py fullclean && idf.py build
|
||||||
```
|
|
||||||
|
|
||||||
> **Important:** After editing `mimi_secrets.h`, you must do a full rebuild: `idf.py fullclean && idf.py build`
|
# Find your serial port
|
||||||
|
ls /dev/cu.usb* # macOS
|
||||||
|
ls /dev/ttyACM* # Linux
|
||||||
|
|
||||||
|
# Flash and monitor (replace PORT with your port)
|
||||||
|
# USB adapter: likely /dev/cu.usbmodem11401 (macOS) or /dev/ttyACM0 (Linux)
|
||||||
|
idf.py -p PORT flash monitor
|
||||||
|
```
|
||||||
|
|
||||||
### CLI Commands
|
### CLI Commands
|
||||||
|
|
||||||
|
|||||||
14
README_CN.md
14
README_CN.md
@@ -87,11 +87,17 @@ cp main/mimi_secrets.h.example main/mimi_secrets.h
|
|||||||
然后编译烧录:
|
然后编译烧录:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
idf.py build
|
# 完整编译(修改 mimi_secrets.h 后必须 fullclean)
|
||||||
idf.py -p /dev/ttyACM0 flash monitor
|
idf.py fullclean && idf.py build
|
||||||
```
|
|
||||||
|
|
||||||
> **重要**:修改 `mimi_secrets.h` 后必须完整重编译:`idf.py fullclean && idf.py build`
|
# 查找串口
|
||||||
|
ls /dev/cu.usb* # macOS
|
||||||
|
ls /dev/ttyACM* # Linux
|
||||||
|
|
||||||
|
# 烧录并监控(将 PORT 替换为你的串口)
|
||||||
|
# USB 转接器:大概率是 /dev/cu.usbmodem11401(macOS)或 /dev/ttyACM0(Linux)
|
||||||
|
idf.py -p PORT flash monitor
|
||||||
|
```
|
||||||
|
|
||||||
### 代理配置(国内用户)
|
### 代理配置(国内用户)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user