stm32f4-tdd

Run host-based STM32F4 firmware unit tests using Unity and FFF.

Updated Mar 17, 2026
Ready to run
npx skills add https://github.com/pjy4617/pjy-claude-skill --skill stm32f4-tdd
πŸ’¬ Prompt for ChatGPT / Claude Chatβ–Ό
Please help me install this Agent Skill.
Skill: stm32f4-tdd
Source: https://github.com/pjy4617/pjy-claude-skill/tree/main/plugins/stm32f4/skills/stm32f4-tdd
Command: npx skills add https://github.com/pjy4617/pjy-claude-skill --skill stm32f4-tdd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

STM32F4 νŽŒμ›¨μ–΄μ˜ 호슀트 기반 λ‹¨μœ„ ν…ŒμŠ€νŠΈλ₯Ό 톡해 MCU ν•˜λ“œμ›¨μ–΄ 없이 PCμ—μ„œ μ• ν”Œλ¦¬μΌ€μ΄μ…˜ 둜직, μƒνƒœ λ¨Έμ‹ , ν”„λ‘œν† μ½œ νŒŒμ„œ 및 λ“œλΌμ΄λ²„ λ‘œμ§μ„ ν…ŒμŠ€νŠΈν•  수 μžˆμŠ΅λ‹ˆλ‹€. Unity + FFF(Fake Function Framework)둜 HAL ν•¨μˆ˜λ₯Ό κ°€μ§œλ‘œ λŒ€μ²΄ν•˜κ³  ν…ŒμŠ€νŠΈμ˜ μž¬ν˜„μ„±μ„ ν™•λ³΄ν•©λ‹ˆλ‹€.

Core Features & Use Cases

  • 호슀트 기반 ν…ŒμŠ€νŠΈ ꡬ쑰λ₯Ό μ •μ˜ν•˜κ³  Red-Green-Refactor μ‚¬μ΄ν΄λ‘œ νŽŒμ›¨μ–΄λ₯Ό μ•ˆμ „ν•˜κ²Œ κ²€μ¦ν•©λ‹ˆλ‹€.
  • HAL Mocking을 톡해 μ‹€μ œ ν•˜λ“œμ›¨μ–΄ μ˜μ‘΄μ„±μ„ μ œκ±°ν•˜κ³  둜직 검증을 λΉ λ₯΄κ²Œ μˆ˜ν–‰ν•©λ‹ˆλ‹€.
  • ν…ŒμŠ€νŠΈ μ›Œν¬ν”Œλ‘œμš°μ— 맞좘 μ½”λ“œ μž‘μ„±κ³Ό ν…ŒμŠ€νŠΈ λŸ¬λ„ˆλ₯Ό 톡해 μ¦‰μ‹œ ν”Όλ“œλ°±μ„ μ œκ³΅ν•©λ‹ˆλ‹€.

Quick Start

Launch host-based tests with the Unity + FFF harness to validate STM32F4 components on a PC.

Frequently Asked Questions about stm32f4-tdd

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

FAQPage Schema
How do I run STM32F4 firmware unit tests on a PC without hardware?β–Ό

Host-based STM32F4 firmware unit tests run on a PC by using Unity and FFF to mock HAL functions, allowing application logic validation without physical MCU hardware. This approach executes test cases directly on the host machine.

What is HAL mocking in embedded firmware testing?β–Ό

HAL mocking in embedded firmware testing uses the Fake Function Framework to replace hardware abstraction layer functions with fake implementations, removing hardware dependencies to validate application logic, state machines, and protocol parsers quickly.

Do I need real STM32F4 hardware to validate state machines and protocol parsers?β–Ό

You do not need real STM32F4 hardware to validate state machines and protocol parsers. By using Unity and FFF to create a minimal HAL fake layer, host-based tests execute these components entirely on a PC.

How to apply Red-Green-Refactor TDD cycles to STM32F4 drivers?β–Ό

Apply Red-Green-Refactor TDD cycles to STM32F4 drivers by defining a host-based test structure with Unity and FFF, writing tests for driver logic, running them on a PC, and refactoring safely with immediate feedback from the test runner.

Can I use Unity and FFF to test STM32F4 application logic on a host machine?β–Ό

You can use Unity and FFF to test STM32F4 application logic on a host machine. This combination provides a test harness that mocks HAL dependencies, enabling fast execution of realistic test scenarios without flashing firmware.

What are the limitations of host-based testing for STM32F4 firmware?β–Ό

Host-based testing for STM32F4 firmware cannot validate real hardware timing, interrupt behavior, or peripheral electrical characteristics. It is limited to testing application logic, state machines, protocol parsers, and driver logic through mocked HAL functions.