Add UART diagnostic capture tool for board-day bring-up

- Python/pyserial script captures STM32 USART3 DIAG output (115200 8N1)
- Auto-detects serial port on macOS (ST-Link VCP, FTDI, CH340, CP210x)
- Color-coded terminal output by subsystem and severity
- Simultaneous logging to timestamped file in logs/
- Filtering by subsystem tag (--filter LO,PA) or severity (--errors-only)
- Parses all DIAG macro formats: DIAG, DIAG_WARN, DIAG_ERR, DIAG_SECTION
- Capture stats summary on exit (line counts by subsystem, error/warning totals)
- logs/ added to .gitignore
This commit is contained in:
Jason
2026-03-19 16:32:54 +02:00
parent 9b786eb33f
commit e78e36a635
2 changed files with 405 additions and 0 deletions
+3
View File
@@ -54,3 +54,6 @@ __pycache__/
# Local timing closure report snapshots
build*_reports/
# UART capture logs (generated by tools/uart_capture.py)
logs/