- Home
- Skills
- APIs & Backend
- embedded project workflow
More screenshots
Works with the AI Agents you already use
embedded project workflow
by WangWang Yan
Workflow for embedded and FPGA projects ensuring compatibility with CubeMX, Vivado, and RTOS toolchains.
Free
embedded project workflow
Example session with this skill installed
Initialize a new STM32 project using FreeRTOS. I need to handle a PWM output for a motor and an SPI sensor. Map out the configuration and user code sections.
- Read your context and instructions
- Compiled the embedded project workflow
Project structure initialized for STM32 with FreeRTOS. I have mapped the hardware peripherals to native configuration zones and defined the user implementation boundaries to ensure code persistence during re-generation.
Embedded Configuration & Implementation Plan
| Component | Config Source | Implementation Location | Logic Type |
|---|---|---|---|
| Clock Tree | CubeMX (RCC) | main.c (Generated) | System Clock (160MHz) |
| PWM (Motor) | CubeMX (TIM1) | motor_ctrl.c (User) | Duty cycle & Dead-time |
| SPI (Sensor) | CubeMX (SPI1) | sensor_driver.c (User) | DMA-based polling |
| RTOS Tasks | CubeMX (CMSIS) | freertos.c (User Sec) | Priority-based scheduling |
Execution Logic Map
- SystemInit: Hardware abstraction layer and clock config (Native).
- MX_GPIO_Init: Pin muxing for SPI (SCK, MISO, MOSI) and PWM (CH1).
- Task_Start: SPI DMA request triggered by timer interrupt.
- Task_Motor: PWM adjustment based on SPI feedback loop.
Recommended Tool Settings
- TIM1 Config: Set to Center-aligned mode 1 for motor control; verify dead-time insertion in the 'Break and Dead-time' tab.
- SPI1 DMA: Enable DMA RX/TX in Circular mode to reduce CPU overhead.
- User Sections: All custom logic must reside between
/* USER CODE BEGIN */and/* USER CODE END */tags to survive re-generation.
Next steps
- Review the generated
IOCfile to confirm pin assignments for TIM1 and SPI1. - Verify the DMA interrupt priority in the NVIC settings to avoid RTOS context switch conflicts.
- Implement the SPI callback function within the designated user section in
stm32_it.c.
Connects securely to your tools. The creator never sees your data.
About this skill
Managing embedded and FPGA projects often feels like a constant battle against tool-generated code, conflicting clock configurations, and messy handoffs between hardware and software teams. This skill provides a structured workflow for navigating the specific constraints of STM32, Zynq, ESP32, and FPGA development without breaking the native toolchain integration.
What it does
- Toolchain Synchronization maintains the integrity of auto-generated code from CubeMX, Vivado, and TouchGFX while integrating custom logic.
- Architectural Mapping generates pin-functional diagrams and execution logic maps for new or refactored projects.
- Peripheral Management handles clock trees, DMA mappings, and IRQ/callback implementations across different abstraction layers.
- Handoff Automation manages the critical transition between FPGA PL (Programmable Logic) and PS (Processor System) via Vitis/XSA workflows.
- Debug Retrospectives analyzes real-time failures, timing issues, and telemetry data to isolate root causes in RTOS or bare-metal environments.
How it works
- Context Initialization reads existing project files, hardware schematics, and tool versions to identify the current baseline.
- Configuration Alignment defines which parameters are owned by native tools (like CubeMX/Vivado) versus user-defined implementation layers.
- Incremental Implementation applies code changes specifically within designated user sections or modular files to prevent loss during re-generation.
- Verification checks build inputs, startup sequences, and port connections against the intended design.
Frameworks & tools
Supports STM32CubeMX, FreeRTOS, TouchGFX, ESP-IDF, Xilinx Vivado (IP/XPM/BD), and Xilinx Vitis (Zynq/MPSoC). Works with RTL (Verilog/VHDL) and C/C++ embedded stacks.
Why this beats prompting it yourself
Generic LLMs often suggest overwriting auto-generated headers or provide register values that conflict with the GUI-based clock tree. This skill enforces "tool-aware" persistence, ensuring your manual code survives the next time you click Generate in CubeMX or Vivado.
Use cases
- Implement a FreeRTOS task structure that respects the existing CubeMX-generated task priorities.
- Connect AXI-stream IPs in a Vivado block design and verify the address mapping in Vitis.
- Integrate a TouchGFX UI layer with custom sensor drivers without losing designer-generated assets.
- Debug DMA transfer failures by verifying the alignment between hardware constraints and software descriptors.
Known limitations
Does not support automatic hardware flashing or power-on execution. Restricted to source code analysis and configuration planning based on provided documentation and local files.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 12 days ago
- Free with an Agensi account
Permissions
What's inside
Creator
WangWang Yan
Frequently Asked Questions
New in APIs & Backend
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.