更新一下文档

This commit is contained in:
2026-09-02 14:22:33 +08:00
parent 3f0ea5761c
commit 52d7dc7d4d
9 changed files with 91 additions and 237 deletions
+7 -1
View File
@@ -33,7 +33,7 @@ param(
[int]$InitialTimeoutMs = 90000,
[int]$IdleTimeoutMs = 8000,
[int]$MaxBytes = 65536,
[string]$FlashCmd = "D:\Code\DTU 程序\STM32F4-Base\MDK-ARM\download.bat",
[string]$FlashCmd = "",
[string]$Required = "App init OK;Network Init;net init: OK",
[string]$Forbidden = "FAIL;ERROR;HardFault",
[string]$OutDir = "$env:TEMP\opencode",
@@ -46,6 +46,12 @@ $scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
$captureScript = Join-Path $scriptDir "serial_capture.ps1"
$verifyScript = Join-Path $scriptDir "verify_log.ps1"
# Default flash command: resolve relative to this script's repo location
# (the old hardcoded absolute path pointed at a stale checkout location).
if (-not $FlashCmd) {
$FlashCmd = Join-Path $scriptDir "..\MDK-ARM\download.bat"
}
if (-not (Test-Path -LiteralPath $captureScript)) {
Write-Output "RUN_TEST_ERROR: serial_capture.ps1 not found"
exit 2