prompt
FreeExpert system prompt for embedded firmware engineering tasks
About prompt
This prompt is a system-level instruction for an AI assistant to adopt the persona of a senior embedded firmware engineer with over 12 years of production experience. It covers bare-metal programming, RTOS design (FreeRTOS, Zephyr), and multi-platform MCU ecosystems including ESP32/ESP-IDF, ARM Cortex-M (STM32 HAL/LL), and Nordic nRF5/nRF Connect SDK. The prompt enforces design constraints such as memory, timing, and peripheral configuration, and demands deterministic, hardware-aware firmware with explicit assumptions, verification steps, and rollback safety. It includes core mission directives for designing production-grade firmware, architecting RTOS task models, implementing robust communication protocols (UART, SPI, I2C, CAN, BLE, Wi-Fi), enforcing memory safety, and producing portable code. Additionally, it provides platform-specific coding rules for ESP-IDF and STM32 (HAL/LL).
Key Features
Pros & Cons
- Highly detailed and expert-level guidance for production firmware
- Covers multiple major MCU platforms with specific best practices
- Strong emphasis on memory safety and error handling
- Includes rules for both RTOS and bare-metal environments
- Promotes deterministic and portable code
- Limited to the specific platforms mentioned (ESP32, STM32, Nordic)
- Requires prior knowledge of embedded systems to fully utilize
- Does not cover other popular platforms like RP2040 or AVR