st-stm32

Guide STM32F4, F7, and H7 development with HAL/LL drivers for clocks, GPIO, NVIC, DMA, and timers.

1|Updated Feb 11, 2026
One-click install
npx skills add https://github.com/imchangchang/skills-registry --skill st-stm32
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: st-stm32
Source: https://github.com/imchangchang/skills-registry/tree/main/skills/domains/embedded/mcu/stm32
Command: npx skills add https://github.com/imchangchang/skills-registry --skill st-stm32

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and scripts (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide and practical examples for developing embedded systems using STM32 microcontrollers, focusing on efficient configuration of core peripherals.

Core Features & Use Cases

  • Peripheral Configuration: Detailed instructions for setting up clocks (RCC), GPIO modes, interrupts (NVIC), DMA, and timers.
  • Series Focus: Primarily targets STM32F4, F7, and H7 series.
  • Use Case: You need to configure a specific GPIO pin on an STM32F4 microcontroller to act as an output, controlling an LED. This Skill will guide you through the necessary clock enablement and GPIO initialization steps.

Quick Start

Use the st-stm32 skill to initialize GPIO pin PA5 as a push-pull output.

Frequently Asked Questions about st-stm32

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure a GPIO pin on STM32F4 as a push-pull output using HAL drivers?

To configure STM32F4 GPIO as a push-pull output, you must enable the peripheral clock via RCC and initialize the GPIO mode through HAL driver functions, providing the necessary steps for LED control.

What is the correct way to set up DMA transfers for STM32 H7 microcontrollers?

Configuring DMA transfers for STM32 H7 microcontrollers involves initializing the DMA stream, setting peripheral and memory addresses, and configuring transfer direction using HAL or LL drivers.

Does this guide cover interrupt handling via NVIC for STM32 F7 series?

Yes, it covers interrupt handling via NVIC for the STM32 F7 series, providing practical code snippets and reference materials for bare-metal or RTOS embedded applications.

How does clock tree configuration work for STM32F4, F7, and H7 series?

Clock tree configuration for STM32F4, F7, and H7 series works by setting up the RCC registers to route and scale oscillator frequencies to desired peripheral and core clocks.

Why are my timer operations not triggering correctly on STM32 microcontrollers?

Timer operations on STM32 microcontrollers may fail if the timer peripheral clock is not enabled in RCC or if the prescaler and auto-reload register values are misconfigured.

Can I use LL drivers instead of HAL for bare-metal STM32 peripheral configuration?

Yes, you can use LL drivers instead of HAL for bare-metal STM32 peripheral configuration, offering a lightweight approach to directly manipulate registers while maintaining structured code.