docs(dev): add AI environment bootstrap (#20)

* docs(dev): add AI environment bootstrap

* docs(ui): document CJK font pitfall
This commit is contained in:
Cjiio authored and GitHub committed 2026-08-27 12:42:51 +08:00 Unverified
1 parent 55f83433e8
commit ae2a840131
18 files changed
+717 -42

No files matched your search

+10 -4
View File
@@ -25,13 +25,19 @@ second development; the fork conventions are in
## Development and verification
Use ESP-IDF 5.5.x (known development environment 5.5.3):
Use ESP-IDF 5.5.3. For a clean-machine setup, follow the
[environment bootstrap](../docs/development/environment-setup.md).
Prefer the repository firmware gate for builds and flash its verified merged
image at `0x0`. The direct IDF commands below are for incremental development.
```bash
get_idf553 # Enter the repository's ESP-IDF 5.5.3 environment
source <path-to-esp-idf-v5.5.3>/export.sh
idf.py --version # must report ESP-IDF v5.5.3
./tools/validate.sh --firmware # preferred merged-image build
idf.py set-target esp32c3 # Configure the target chip (fresh checkout / after target change)
idf.py build # Compile firmware and validate dependencies
idf.py flash monitor # Flash and open logs
idf.py build # Optional incremental application build
idf.py flash monitor # Optional incremental application flash
idf.py fullclean # Clear stale build state (never for user source changes)
```
+10 -4
View File
@@ -19,13 +19,19 @@
## 开发与验证
使用 ESP-IDF 5.5.x(已知开发环境 5.5.3):
使用 ESP-IDF 5.5.3。全新机器先按
[环境引导](../docs/development/environment-setup.zh_CN.md)完成安装。
编译优先运行仓库固件门禁,烧录优先把验证过的合并镜像写入 `0x0`。以下直接
IDF 命令只用于增量开发。
```bash
get_idf553 # 进入仓库的 ESP-IDF 5.5.3 环境
source <ESP-IDF-v5.5.3-路径>/export.sh
idf.py --version # 必须输出 ESP-IDF v5.5.3
./tools/validate.sh --firmware # 优先生成合并固件
idf.py set-target esp32c3 # 配置目标芯片(fresh checkout 后/换 target 后运行)
idf.py build # 编译固件,验证依赖
idf.py flash monitor # 烧录并打开日志
idf.py build # 可选:增量 app 编译
idf.py flash monitor # 可选:增量 app 烧录
idf.py fullclean # 配置过期时清空生成状态(勿用于清理用户源码改动)
```
+1
View File
@@ -24,6 +24,7 @@ This file is the only mandatory entry point for AI-assisted work in this reposit
| Task | Read before editing |
| --- | --- |
| Any code change | `docs/development/agent-guide.md`, relevant headers and neighboring implementation |
| Environment bootstrap or missing toolchain | `docs/development/environment-setup.md` |
| BSP, pins, buses, display, audio, battery | `docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md`, `components/bsp/include/bsp_pins.h` |
| Demo or menu | `main/demo.h`, `main/main.c`, the nearest `main/demo_*.c` implementation |
| Build, test, dependencies, partitions | `docs/development/build-and-test.md`, `sdkconfig.defaults`, `partitions.csv` |
Loaded 3 of 18 files, more files were not shown because too many files have changed in this diff. Show more