embedded-serial-log-debug
Skill36 starsChanged 5 months agoMITView on GitHub
Use when collecting or debugging embedded serial UART logs, boot consoles,乱码, missing output, baud-rate issues, or serial terminal access
In this repository75 other files it gives its agents.
- 8051-mcu-debugSkill
- avem-integrationSkill
- battery-charger-fuel-gauge-integrationSkill
- ble-gatt-integrationSkill
- bootloader-debugSkill
- canbus-integrationSkill
- canopen-integrationSkill
- cellular-at-modem-integrationSkill
- cmbacktrace-integrationSkill
- cmsis-dsp-integrationSkill
- cortex-m-debugSkill
- cortex-r5-debugSkill
- crc-checksum-integrationSkill
- easylogger-integrationSkill
- embedded-app-example-libsSkill
- embedded-buffer-queue-libsSkill
- embedded-data-parsing-libsSkill
- embedded-debug-entrySkill
- embedded-fault-debugSkill
- embedded-framework-libsSkill
- embedded-input-libsSkill
- embedded-library-entrySkill
- embedded-linux-login-debugSkill
- embedded-peripheral-bringupSkill
- embedded-state-machine-libsSkill
- embedded-timing-libsSkill
- epd-integrationSkill
- esp-idf-integrationSkill
- fatfs-integrationSkill
- flashdb-integrationSkill
- freemodbus-integrationSkill
- freertos-kernel-debugSkill
- freertos-plus-tcp-integrationSkill
- gnss-gps-integrationSkill
- hardware-interface-debugSkill
- heatshrink-integrationSkill
- letter-shell-integrationSkill
- littlefs-integrationSkill
- low-power-debugSkill
- lvgl-integrationSkill
- lwip-integrationSkill
- mbedtls-integrationSkill
- mcuboot-integrationSkill
- mcu-flashing-debugSkill
- micro-ecc-integrationSkill
- miniz-integrationSkill
- mqtt-embedded-integrationSkill
- nanopb-integrationSkill
- nrf-connect-sdk-integrationSkill
- nr-micro-shell-integrationSkill
- openocd-jlink-stlink-debugSkill
- openthread-integrationSkill
- ota-update-integrationSkill
- plooc-integrationSkill
- power-management-integrationSkill
- qspi-xip-flash-debugSkill
- readme-writingSkill
- riscv-mcu-debugSkill
- rtos-debugSkill
- rt-thread-integrationSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 13 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this skill to make serial logs trustworthy before drawing conclusions from them.
- Distinctive: line 14
Use this skill when:
- Distinctive: line 20
Do not use this skill when the problem is already proven to be a higher-level protocol issue unrelated to raw serial capture.
- Distinctive: line 36
Check voltage level, common ground, TX/RX crossing, and whether pins are shared with boot/download modes.
- Distinctive: line 39
Ensure no other terminal, programmer, modem manager, or IDE owns the serial port.
- Distinctive: line 41
Start with common settings.
- Distinctive: line 42
Use 115200 8N1 no flow control unless the board documentation says otherwise.
- Distinctive: line 50
Verify with a second observation method.
- Distinctive: line 51
Use a logic analyzer, oscilloscope, known-good adapter, or loopback test when serial output is suspect.
- Distinctive: line 69
Do not run permission-changing commands unless the user approves them.
- Distinctive: line 83
Before trusting serial evidence:
- Distinctive: line 88
If logs are absent, state which lower-layer checks passed and which remain unverified.
- Distinctive: line 110
If no output, checks wiring and uses GPIO heartbeat or logic analyzer before blaming firmware.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Embedded Serial Log Debug
Overview
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.
When To Use
Use this skill when:
- The user needs UART boot logs, serial console access, or firmware printf output.
- Serial output is missing, garbled, intermittent, delayed, duplicated, or stops mid-boot.
- The task involves USB-to-UART adapters,
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.
First Questions
Ask for:
- Board/chip and which UART pins are used.
- USB-to-UART adapter model and voltage level.
- Serial device path, such as
/dev/ttyUSB0or/dev/ttyACM0. - Baud rate, data bits, parity, stop bits, and flow control if known.
- Whether logs are expected from boot ROM, bootloader, kernel, RTOS, or application.
- Whether TX/RX/GND are accessible and common ground is connected.
Workflow
- 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.
Command Patterns
picocom -b 115200 /dev/ttyUSB0
screen /dev/ttyUSB0 115200
minicom -D /dev/ttyUSB0 -b 115200
stty -F /dev/ttyUSB0 115200 cs8 -cstopb -parenb -ixon -ixoffFor permissions:
ls -l /dev/ttyUSB0
groupsDo not run permission-changing commands unless the user approves them.
Symptom Guide
| 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 |
Verification
Before trusting serial evidence:
- State adapter, serial path, voltage level, wiring assumptions, and terminal settings.
- Confirm capture starts before reset/power-on when boot logs matter.
- Report whether the output is clean, garbled, absent, or partial.
- If logs are absent, state which lower-layer checks passed and which remain unverified.
Common Failures
- Debugging firmware before confirming the adapter voltage and common ground.
- Opening the terminal after early boot logs already passed.
- Assuming 115200 when the boot ROM or app uses another baud.
- Leaving hardware flow control enabled accidentally.
- Forgetting that programmer tools may also occupy the serial port.
Example
User:
串口没日志,板子不知道有没有跑起来。Agent:
- Asks for board, UART pins, adapter voltage, serial path, baud, and expected log source.
- Opens capture before reset.
- If no output, checks wiring and uses GPIO heartbeat or logic analyzer before blaming firmware.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

