Document verified J-Link log dump workflow and harden flash script.
Kill stale cspybat before download; note successful RTT log export sample in LOG_README. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
7fea921727
commit
f6ae34892f
|
|
@ -52,3 +52,18 @@ python rtt_log_dump.py --out problem.log
|
|||
- `[TP]` — raw/cal 坐标、irq 状态
|
||||
- `[MSG] id=12` — 触摸消息是否发出
|
||||
- `[UI] mode_select miss` — UI 命中测试是否失败
|
||||
|
||||
## 已验证(2026-08-31)
|
||||
|
||||
烧录:`cspybat` + `C:\Temp\k1flash\YNGJ-GT1-M.out` 下载,J-Link reset/run 后约 4s 开机。
|
||||
|
||||
日志导出示例(`python rtt_log_dump.py --out test.log`):
|
||||
|
||||
```
|
||||
[00185][I][BOOT] app_log init boot=1
|
||||
[00224][I][NVM ] init ok ver=2
|
||||
[00224][I][BOOT] main init done ui=Idle
|
||||
[00224][I][PWR ] auto power_on
|
||||
[00401][I][PWR ] periph ready send POWER_ON
|
||||
[00500][I][MSG ] id=0 hi=0 lo=0
|
||||
```
|
||||
|
|
|
|||
|
|
@ -14,10 +14,13 @@ if not exist "%OUT%" (
|
|||
exit /b 1
|
||||
)
|
||||
|
||||
REM Avoid stale debugger locking SWD (cspybat can hang otherwise)
|
||||
taskkill /F /IM cspybat.exe >nul 2>&1
|
||||
|
||||
mkdir "%STAGE%" 2>nul
|
||||
copy /Y "%OUT%" "%STAGE%\YNGJ-GT1-M.out" >nul
|
||||
|
||||
echo [1/3] Downloading...
|
||||
echo [1/3] Downloading (may take ~60s)...
|
||||
%CSPY% -f "%GEN%" "--debug_file=%STAGE%\YNGJ-GT1-M.out" --download_only --backend -f "%DRV%"
|
||||
if errorlevel 1 exit /b 1
|
||||
|
||||
|
|
@ -25,7 +28,8 @@ echo [2/3] Reset and run...
|
|||
%JLINK% -CommandFile "%~dp0reset_run.jlink"
|
||||
if errorlevel 1 exit /b 1
|
||||
|
||||
echo [3/3] Wait for auto PowerOn + logo (about 3s)...
|
||||
timeout /t 3 /nobreak >nul
|
||||
echo [3/3] Wait for auto PowerOn + logo (about 4s)...
|
||||
timeout /t 4 /nobreak >nul
|
||||
echo Done. UI should be on mode-select screen.
|
||||
echo Log dump: python rtt_log_dump.py --out problem.log
|
||||
exit /b 0
|
||||
|
|
|
|||
Loading…
Reference in New Issue