skills/baremetal/datasheet-and-refmanual-reading/SKILL.md
Datasheet and reference manual reading skill for embedded engineers. Use when extracting pinouts, electrical limits, register maps, clock trees, or timing from MCU documentation. Activates on queries about reading STM32 RM, extracting register bits, finding errata, or navigating reference manual sections.
npx skillsauth add mohitmishra786/low-level-dev-skills datasheet-and-refmanual-readingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Teach agents a systematic methodology for reading MCU datasheets and reference manuals: which sections matter for firmware, how to cross-reference pin tables with register maps, and how to avoid documentation pitfalls (errata, footnotes, conditional fields). Not merged with skills/baremetal/peripherals-from-datasheet — this skill covers how to read docs; that skill covers how to write drivers from them.
skills/baremetal/peripherals-from-datasheet (implementation focus)| Document | Primary use | |----------|-------------| | Datasheet | Pinout, max ratings, package, brief features | | Reference Manual (RM) | Register maps, bit fields, clock trees, peripheral behavior | | Programming Manual (PM) | Cortex-M core, NVIC, MPU, debug (ARM doc) | | Errata sheet | Silicon bugs that affect firmware workarounds |
Read the datasheet for what exists; read the RM for how to program it.
1. Memory and bus architecture (address map)
2. Reset and clock control (RCC / CGU)
3. GPIO / pin multiplexing
4. Target peripheral chapter (e.g. USART, SPI, DMA)
5. NVIC / EXTI interrupt mapping table
6. Electrical characteristics (only if timing-critical)
7. Errata — search peripheral name
For each register:
/* Good — named constants from RM bit table */
#define USART_CR1_UE (1U << 13)
#define USART_CR1_TE (1U << 3)
/* Bad — magic numbers without RM citation */
*(volatile uint32_t *)0x40011000 = 0x2000;
Schematic net → Datasheet pin table (AF number)
→ RM GPIO chapter (MODER, AFR)
→ Peripheral chapter (USART_TX on PA2 = AF7)
Always confirm default state after reset (analog mode, pull, JTAG pins).
Symptom matches errata?
├── Yes → apply documented workaround in driver
└── No → verify silicon revision (DBGMCU_IDCODE / UID)
/datasheet-and-refmanual-reading Find STM32F4 USART baud rate formula and required clock source
| Symptom | Cause | Fix | |---------|-------|-----| | Wrong register behavior | Read wrong silicon rev errata | Check ERRATA sheet first | | AF does not work | Confused DS pin name with RM AF table | Cross-check both tables | | Intermittent DMA | Missed footnote on buffer alignment | RM DMA chapter notes | | Clock mismatch | Used max frequency from DS banner, not voltage range table | Use operating conditions table |
skills/baremetal/peripherals-from-datasheet — driver implementation workflowskills/baremetal/mmio-and-bit-manipulation — safe register accessskills/baremetal/gpio-baremetal — pin mux from RM tablesskills/kernel-dev/device-tree — bindings mirror RM capabilities for Linuxdevelopment
QEMU/KVM skill for virtualization and kernel development. Use when running qemu-system-x86_64 with KVM, configuring virtio devices, VFIO passthrough, QMP monitor, libvirt, or booting custom kernels. Activates on queries about QEMU, KVM, virtio, VFIO, virsh, virt-install, or -kernel -append.
development
Hardware virtualization internals skill for Intel VT-x and AMD-V. Use when studying VMCS/VMCB, EPT/NPT page tables, VMEXIT handling, APIC virtualization, or building minimal hypervisors. Activates on queries about VMX, SVM, VMCS, EPT, NPT, VMEXIT, or type-1 hypervisor.
testing
Linux containers internals skill for namespaces, cgroups, and OCI. Use when understanding clone/unshare namespaces, cgroups v2 limits, overlayfs, runc, seccomp profiles, capabilities, or escape mitigations. Activates on queries about namespaces, cgroups, overlayfs, runc, seccomp-bpf, OCI spec, or container escape.
tools
Reverse engineering skill for binary analysis. Use when decompiling with Ghidra, analyzing with radare2, scripting RE tools, triaging with strings/file/xxd, or diffing binaries. Activates on queries about Ghidra, radare2, r2, decompiler, Binary Ninja, Diaphora, or stripped binary analysis.