What problem does it solve?
It helps you produce production-grade embedded C for STM32G4xx digital power systems by enforcing physics-first real-time constraints (ADC/PWM timing, scheduling ownership, and protection priority) instead of generating generic code that may not work on hardware.
Core Features & Use Cases
- Deterministic real-time design: Prescribes fast-loop/slow-loop/1ms layering with ISR hot-path discipline for cycle-budgeted control.
- Control algorithm implementation guidance: PI/PR/LPF/NOTCH/IIR 2P2Z/PLL and dq/Clarke/Park transform patterns tailored for embedded execution.
- Protection and recovery integration: Fault detect/confirm/shutdown/recovery chains with explicit shutdown ownership and integrator reset rules.
- Hardware acceptance criteria: Every output includes concrete what-to-measure oscilloscope/validation limits to verify behavior.
Quick Start
Use this skill when you need an STM32G4xx-ready C implementation for a PFC/Vienna/DC-DC/LLC/PSFB/inverter control path with MISRA-oriented embedded constraints and explicit ADC-PWM synchronization.