更新一下文档
This commit is contained in:
@@ -3,10 +3,10 @@ description: Build the STM32F4-Base Keil MDK project. Use ONLY when the user ask
|
||||
agent: build
|
||||
---
|
||||
|
||||
Run the Keil MDK-ARM build by executing the build script with the bash tool. Use the absolute path, NOT relative cd:
|
||||
Run the Keil MDK-ARM build by executing the build script with the bash tool. The repo root is the working directory; use the repo-relative path (the old absolute path `D:\Code\DTU 程序\...` is stale):
|
||||
|
||||
```powershell
|
||||
& "D:\Code\DTU 程序\STM32F4-Base\MDK-ARM\build.bat"
|
||||
& "MDK-ARM\build.bat"
|
||||
```
|
||||
|
||||
Then read the tail of `MDK-ARM/build_log.txt` and report the result.
|
||||
|
||||
@@ -3,10 +3,10 @@ description: Download (flash) the program to the STM32 via Keil MDK. Use ONLY wh
|
||||
agent: build
|
||||
---
|
||||
|
||||
Run the Keil MDK flash download by executing the download script with the bash tool. Use the absolute path, NOT relative cd:
|
||||
Run the Keil MDK flash download by executing the download script with the bash tool. The repo root is the working directory; use the repo-relative path (the old absolute path `D:\Code\DTU 程序\...` is stale):
|
||||
|
||||
```powershell
|
||||
& "D:\Code\DTU 程序\STM32F4-Base\MDK-ARM\download.bat"
|
||||
& "MDK-ARM\download.bat"
|
||||
```
|
||||
|
||||
Then read the tail of `MDK-ARM/download_log.txt` and report the result.
|
||||
|
||||
@@ -24,10 +24,10 @@ Read `.opencode/serial_config.json` for the authoritative `portName` (COM6) and
|
||||
|
||||
### Step 1 — Build verify
|
||||
|
||||
Run the build script (absolute path):
|
||||
Run the build script (repo-relative; the repo root is the working directory):
|
||||
|
||||
```powershell
|
||||
& "D:\Code\DTU 程序\STM32F4-Base\MDK-ARM\build.bat"
|
||||
& "MDK-ARM\build.bat"
|
||||
```
|
||||
|
||||
Interpretation (per AGENTS.md): exit code 0 = PASS (0 errors, 0 warnings). 1/2+ = FAIL. If it fails, read `MDK-ARM/build_log.txt`, fix, and rerun `@build` until exit code 0 **before** touching the hardware.
|
||||
@@ -39,10 +39,10 @@ then flashes, then collects and verifies — all in one call so the capture neve
|
||||
times out before flashing:
|
||||
|
||||
```powershell
|
||||
powershell -ExecutionPolicy Bypass -File "D:\Code\DTU 程序\STM32F4-Base\test\run_boot_test.ps1" `
|
||||
powershell -ExecutionPolicy Bypass -File "test\run_boot_test.ps1" `
|
||||
-Port COM6 -BaudRate 115200 `
|
||||
-DurationMs 30000 -InitialTimeoutMs 90000 -IdleTimeoutMs 8000 -MaxBytes 65536 `
|
||||
-FlashCmd "D:\Code\DTU 程序\STM32F4-Base\MDK-ARM\download.bat" `
|
||||
-FlashCmd "MDK-ARM\download.bat" `
|
||||
-Required "App init OK;Network Init;net init: OK" `
|
||||
-Forbidden "FAIL;ERROR;HardFault" `
|
||||
-OutDir "C:\Users\16241\AppData\Local\Temp\opencode"
|
||||
@@ -70,5 +70,5 @@ For interactive command/response (not boot-log capture):
|
||||
- **⚠️ 无历史缓冲**:serial-mcp-server 的 `read` 只能读调用后的字节。抓开机日志必须走 `run_boot_test.ps1`(先采集等 first-byte → 再烧录触发)。
|
||||
- **⚠️ EOF 陷阱**:COM 刚释放立即重开会报 `UnexpectedEof`(tokio-serial 读 0 字节)。`serial_capture.ps1` 内置自动重试;别裸跑 CLI capture。
|
||||
- **参数**:`IdleTimeoutMs` 需 ≥ boot 自然静默间隙(本机 ~3-4s,用 8000);`InitialTimeoutMs` 需覆盖编译+烧录耗时(用 90000)。
|
||||
- UI (LVGL) task `ui_task` 增加 `UI port init: OK` / `UI menu init: OK` 打印后,即可用 `-Required "UI port init: OK;UI menu init: OK"` 自动回归 UI 初始化。
|
||||
- UI (LVGL) task `ui_task` 已有 `UI port init: OK` / `UI menu init: OK` 打印,可用 `-Required "UI port init: OK;UI menu init: OK"` 自动回归 UI 初始化。
|
||||
- Full capture/analysis details: `docs/测试说明/serial-mcp-server_串口调试.md` and `docs/测试说明/自动化测试流程.md`.
|
||||
|
||||
Reference in New Issue
Block a user