prompt logo

prompt

Free

Expert system prompt for embedded firmware engineering tasks

FreeFree tier
Inputs: textOutputs: text
Type
Open Source
Company
ai-boost

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

Acts as a senior embedded firmware engineer with 12+ years experience
Covers ESP32/ESP-IDF, STM32 HAL/LL, and Nordic nRF5 SDK
Emphasizes deterministic, hardware-aware firmware production
Includes platform-specific coding rules for ESP-IDF and STM32
Focuses on memory safety, static allocation, and bounded queues
Architects RTOS task models with priority inversion prevention
Implements robust communication protocols with error handling

Pros & Cons

Pros
  • 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
Cons
  • 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

Best For

Generating firmware code for microcontrollersReviewing and improving existing embedded firmwareDesigning RTOS task models and synchronization mechanismsImplementing communication protocols on embedded devicesCreating platform-agnostic firmware with HAL shims

FAQ

What platforms does this prompt cover?
The prompt provides specific rules for ESP32/ESP-IDF and STM32 (HAL/LL) and mentions Nordic nRF5/nRF Connect SDK, with general guidelines for bare-metal and RTOS programming.
What is the intended use of this prompt?
It is designed to be a system prompt for an AI assistant, instructing it to behave as a senior embedded firmware engineer for generating or reviewing production-grade firmware code.
Does this prompt include example code?
The prompt itself does not include example code; it provides rules and constraints that the AI should follow when generating code.