embedded-peripheral-bringup
Skill36 starsChanged 5 months agoMITView on GitHub
Use when bringing up embedded GPIO, UART, SPI, I2C, PWM, ADC, timers, DMA, interrupts, or board-level peripheral functionality
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-serial-log-debugSkill
- 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
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 9 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
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 bring up peripherals from the outside in: board wiring, pin mux, clocks, reset state, electrical mode, driver …
- Distinctive: line 14
Use this skill when:
- Distinctive: line 20
Do not use this skill when the chip is not booting or the firmware cannot be flashed.
- Distinctive: line 39
Check mux/alternate function, electrical mode, drive strength, pull, analog/digital mode, and open-drain requirements.
- Distinctive: line 44
Start with the simplest observable action.
- Distinctive: line 47
Add interrupts and DMA last.
- Distinctive: line 51
Use logic analyzer or oscilloscope evidence for timing, polarity, phase, voltage, and bus contention.
- Distinctive: line 93
Before claiming bring-up progress:
- Distinctive: line 98
If IRQ/DMA is involved, confirm the simpler polling path works or state why it cannot be tested.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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 Peripheral Bring-Up
Overview
Use this skill to bring up peripherals from the outside in: board wiring, pin mux, clocks, reset state, electrical mode, driver configuration, interrupts/DMA, and observable signals. Avoid rewriting drivers before proving the peripheral can physically signal.
When To Use
Use this skill when:
- GPIO, UART, SPI, I2C, PWM, ADC, timer, DMA, or interrupt behavior is wrong.
- A peripheral has no signal, wrong timing, stuck bus, bad data, or only works sometimes.
- The user has schematic snippets, pin mappings, logic analyzer traces, oscilloscope captures, or register dumps.
Do not use this skill when the chip is not booting or the firmware cannot be flashed; resolve those first.
First Questions
Ask for:
- MCU/SoC and board.
- Peripheral and exact pins.
- Expected behavior versus observed behavior.
- Clock frequency and driver/framework.
- Schematic/pinout evidence and whether signals were measured.
- Whether interrupts, DMA, or low-power modes are involved.
Workflow
- Prove the board path. Confirm the signal pin, package pin, board net, connector, level shifter, pull-up/down, and external device.
- Prove pin configuration. Check mux/alternate function, electrical mode, drive strength, pull, analog/digital mode, and open-drain requirements.
- Prove clock and reset. Confirm peripheral bus clock, module reset release, prescaler, and any power domain enable.
- Start with the simplest observable action. Toggle GPIO, emit one UART byte, generate one SPI clock burst, scan I2C address, or start one timer output.
- Add interrupts and DMA last. First prove polling or simple blocking transfers, then enable IRQ/DMA and verify vector, priority, buffer alignment, and cache.
- Compare measurements to configuration. Use logic analyzer or oscilloscope evidence for timing, polarity, phase, voltage, and bus contention.
Peripheral Checks
GPIO
- Pin mux selects GPIO, not alternate function.
- Output mode and drive strength match load.
- Input mode, pull-up/down, and voltage threshold match circuit.
- Board net is not held by another device.
UART
- TX/RX crossed correctly.
- Baud calculation matches clock source.
- Pins use correct alternate function.
- Flow control disabled unless wired.
- Logic level matches adapter or peer device.
SPI
- CPOL/CPHA, bit order, word size, and chip select behavior match the slave.
- SCK frequency is within slave limits.
- MISO/MOSI not swapped.
- CS timing and idle state are correct.
I2C
- Pull-ups exist and voltage is correct.
- Address is 7-bit versus 8-bit as expected.
- Bus is not stuck low.
- Speed mode matches devices and wiring.
- ACK/NACK is checked before debugging payloads.
ADC/PWM/Timers
- Pin analog mode or alternate function is correct.
- Reference voltage, sample time, prescaler, period, polarity, and timer clock are verified.
- Timer reload and compare values match actual clock.
Verification
Before claiming bring-up progress:
- State measured signal evidence or explain why measurement is unavailable.
- Confirm pin, mux, clock, reset, and electrical mode.
- Confirm expected versus observed timing or voltage.
- If IRQ/DMA is involved, confirm the simpler polling path works or state why it cannot be tested.
Common Failures
- Debugging driver code before checking pin mux and peripheral clock.
- Trusting schematic labels without checking package pin and board net.
- Enabling DMA before proving basic transfers.
- Ignoring pull-ups on I2C or open-drain outputs.
- Confusing logical UART names with physical pins on the board.
Example
User:
I2C 读不到传感器。Agent:
- Asks for MCU, pins, pull-ups, address, speed, driver, and logic analyzer result.
- Checks clock, mux, open-drain mode, and bus idle levels.
- Confirms ACK during address phase before debugging register reads.
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.

