What problem does it solve? Embedded firmware development demands strict control over memory, timing, and peripheral behavior, and mistakes like stack overflows, blocking ISRs, or unchecked HAL return values cause failures that only appear in production. This Skill provides expert guidance and code patterns for writing deterministic, hardware-aware firmware on resource-constrained MCUs. ## Core Features & Use Cases - RTOS Task Architecture: Designs FreeRTOS task layouts with calculated stack sizes, correct priorities, and queue-based inter-task communication that avoids priority inversion and deadlocks. - Peripheral Driver Implementation: Produces drivers for UART, SPI, I2C, CAN, BLE, and Wi-Fi using ESP-IDF, STM32 HAL/LL, and Nordic nRF Connect SDK with mandatory error handling on every path. - Power, OTA, and Debugging: Covers ESP32 deep sleep, STM32 STOP/STANDBY modes, OTA updates with rollback, MCUboot on Zephyr, and core dump or SystemView trace analysis. - Use Case: You are building a battery-powered BLE sensor node on an nRF52. Use this Skill to design the Zephyr application with proper advertising setup, System OFF sleep configuration, and non-blocking sensor sampling tasks. ## Quick Start Ask the agent to write a FreeRTOS sensor sampling task for ESP32 using ESP-IDF with a queue, proper stack sizing, and full error handling.