8051-mcu-debug
Use when debugging 8051-compatible microcontrollers, 51 MCU firmware, STC download issues, Keil C51 projects, interrupts, timers, UART, or startup failures
Use when collecting or debugging embedded serial UART logs, boot consoles,乱码, missing output, baud-rate issues, or serial terminal access
$ npx -y skills add easyzoom/aix-skills --skill embedded-serial-log-debug --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/embedded-serial-log-debugContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when collecting or debugging embedded serial UART logs, boot consoles,乱码, missing output, baud-rate issues, or serial terminal access
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:
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:
1. Confirm electrical compatibility. Check voltage level, common ground, TX/RX crossing, and whether pins are shared with boot/download modes.
1. Confirm terminal ownership. Ensure no other terminal, programmer, modem manager, or IDE owns the serial port.
1. Start with common settings. Use 115200 8N1 no flow control unless the board documentation says otherwise.
1. Capture from reset. Open the terminal before reset or power-on so early boot logs are not missed.
1. Classify the symptom. Missing output,乱码, only TX visible, only RX visible, stops after bootloader, login prompt only, or application printf missing.
1. 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:
1. Asks for board, UART pins, adapter voltage, serial path, baud, and expected log source. 1. Opens capture before reset. 1. If no output, checks wiring and uses GPIO heartbeat or logic analyzer before blaming firmware.
AIX Skills is a public collection of Agent Skills, templates, and references for building repeatable AI workflows.
Use when debugging 8051-compatible microcontrollers, 51 MCU firmware, STC download issues, Keil C51 projects, interrupts, timers, UART, or startup failures
Use when integrating, evaluating, configuring, or debugging Avem embedded C framework modules, event-driven components, drivers, middleware, or application…
Use when integrating or debugging Li-ion charger/fuel gauge ICs (BQ24295, BQ27441, MAX17048) over I2C, covering charge start, watchdog host mode, NTC/JEITA…
Use when integrating, designing, or debugging BLE GATT services, characteristics, descriptors, MTU, notifications, indications, pairing, connection parameters,…
Use when debugging embedded bootloaders, application jumps, vector table offsets, firmware upgrade flow, OTA state, image validation, rollback, or boot…
Use when integrating, porting, configuring, or debugging CAN bus libraries, CANBus-Triple, MCP2515, CAN frames, bit timing, filters, or embedded automotive…