一键导入
embedded-serial-log-debug
Use when collecting or debugging embedded serial UART logs, boot consoles,乱码, missing output, baud-rate issues, or serial terminal access
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when collecting or debugging embedded serial UART logs, boot consoles,乱码, missing output, baud-rate issues, or serial terminal access
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when debugging Cortex-R5 or Cortex-R firmware — TCM, MPU, caches, DFSR/DFAR aborts, exceptions, GIC/VIC interrupts, lockstep or split mode, ECC, or JTAG bring-up
Use when integrating or debugging heatshrink embedded compression — encoder/decoder sink/poll/finish loops, window/lookahead sz2, HSER/HSDR codes, or static vs dynamic alloc
Use when integrating, porting, or debugging micro-ecc (uECC) ECDH, ECDSA, key generation, uECC_set_rng, signatures, curve selection, or key/signature byte formats on an MCU
Use when debugging OpenOCD, J-Link, ST-Link, CMSIS-DAP, probe connection, reset scripts, flash algorithms, GDB attach, semihosting, RTT, or SWD/JTAG failures
Use when integrating, refactoring, or debugging PLOOC object-oriented C - def_class encapsulation, private_member protection, vtable dispatch, or inheritance-style structs
Use when integrating or debugging Li-ion charger/fuel gauge ICs (BQ24295, BQ27441, MAX17048) over I2C, covering charge start, watchdog host mode, NTC/JEITA faults, and SOC jumps
| name | embedded-serial-log-debug |
| description | Use when collecting or debugging embedded serial UART logs, boot consoles,乱码, missing output, baud-rate issues, or serial terminal access |
Use this skill to make serial logs trustworthy before drawing conclusions from them. Confirm wiring, voltage level, port ownership, baud settings, boot timing, and log source before debugging firmware behavior.
Use this skill when:
screen, picocom, minicom, logic analyzers, boot logs, or console prompts.Do not use this skill when the problem is already proven to be a higher-level protocol issue unrelated to raw serial capture.
Ask for:
/dev/ttyUSB0 or /dev/ttyACM0.Confirm electrical compatibility. Check voltage level, common ground, TX/RX crossing, and whether pins are shared with boot/download modes.
Confirm terminal ownership. Ensure no other terminal, programmer, modem manager, or IDE owns the serial port.
Start with common settings. Use 115200 8N1 no flow control unless the board documentation says otherwise.
Capture from reset. Open the terminal before reset or power-on so early boot logs are not missed.
Classify the symptom. Missing output,乱码, only TX visible, only RX visible, stops after bootloader, login prompt only, or application printf missing.
Verify with a second observation method. Use a logic analyzer, oscilloscope, known-good adapter, or loopback test when serial output is suspect.
picocom -b 115200 /dev/ttyUSB0
screen /dev/ttyUSB0 115200
minicom -D /dev/ttyUSB0 -b 115200
stty -F /dev/ttyUSB0 115200 cs8 -cstopb -parenb -ixon -ixoff
For permissions:
ls -l /dev/ttyUSB0
groups
Do not run permission-changing commands unless the user approves them.
| Symptom | Likely checks |
|---|---|
| No output | TX pin, ground, voltage, wrong UART, reset timing, firmware not booting |
| Garbled output | Baud, clock source, 1T/12T mode, parity, wrong oscillator |
| Stops after bootloader | App jump, app UART init, logging level, crash after handoff |
| Only input fails | RX wiring, console disabled, flow control, login shell not running |
| Random characters on reset | Floating line, wrong voltage, boot ROM at different baud |
Before trusting serial evidence:
User:
串口没日志,板子不知道有没有跑起来。
Agent: