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:
crispyberry
2026-02-07 23:09:40 +08:00
parent 82f93b617b
commit 39794e7f28
2 changed files with 20 additions and 8 deletions

View File

@@ -87,11 +87,17 @@ Edit `main/mimi_secrets.h`:
Then build and flash:
```bash
idf.py build
idf.py -p /dev/ttyACM0 flash monitor
```
# Clean build (required after any mimi_secrets.h change)
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