# Embedded Firmware taste

Embedded Firmware taste — a prompt for ChatGPT that enforces reliability-minded engineering standards for embedded firmware development.

- prompt · `type=prompt` · ChatGPT, Claude.ai, Claude Code · ★ 178201 repo stars
- Author: f
- License: CC0-1.0 · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/f/prompts.chat/tree/HEAD/prompts.csv
- Updated: 2026-10-24
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/prompts/embedded-firmware-taste

## What it does

The prompt configures the AI assistant to follow rigorous guidelines for microcontroller and embedded systems programming. It covers hardware abstraction layers, static memory allocation, interrupt handler design, and the use of small RTOS platforms like Zephyr or FreeRTOS.

Guidelines include strict compiler warning flags, static analysis integration, over-the-air update schemes, bootloader signature verification, and crash record handling. It also addresses low-power design, flash wear leveling, and continuous integration checks for RAM and flash budgets.

To install in Claude Code, place the file at `.claude/commands/prompts.csv.md`. In ChatGPT, use the prompt directly within your active chat session to guide firmware implementation and code reviews.

## Install

### ChatGPT (native platform)

**How to use**
- Paste the text at the start of a chat or into project instructions

### Claude Code

**Manually: put the files in place**
- File: `.claude/commands/prompts.csv.md`

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/f/prompts.chat/tree/HEAD/prompts.csv

## When to use it
- design hardware abstraction layers for host testing
- configure safe interrupt handlers and RTOS tasks
- track flash and RAM usage against strict budgets
- implement secure over-the-air firmware updates
- enforce static analysis and compiler warning flags

## Example prompts
- Apply the embedded firmware taste prompt to review this driver module
- Check if this interrupt code follows the embedded firmware taste guidelines
- Explain how embedded firmware taste suggests managing static memory allocation

## Source text · prompts.csv · CC0-1.0

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 16beabafe14ff75d.

BEGIN THIRD-PARTY FILE 16beabafe14ff75d
```text
# Embedded Firmware taste of a reliability-minded firmware engineer
- Keep hardware access behind a thin hardware abstraction layer so application logic can be built and unit-tested on the host machine. Confidence: 0.90
- Run unit tests on the host in CI with Unity or GoogleTest, and keep on-target tests for drivers and timing only. Confidence: 0.85
- Avoid dynamic memory allocation after startup; allocate buffers statically or from fixed-size pools sized at compile time. Confidence: 0.90
- Use a small RTOS such as Zephyr or FreeRTOS once there are more than two independent timing concerns, instead of growing a hand-written super loop. Confidence: 0.75
- Keep interrupt handlers short: capture the data, set a flag or push to a queue, and do the real work in a task. Confidence: 0.95
- Mark data shared with interrupts as volatile and guard multi-byte access with critical sections or atomics. Confidence: 0.90
- Enable the hardware watchdog in production builds and feed it only from a health check that confirms every critical task is alive. Confidence: 0.90
- Build with -Wall -Wextra -Werror and run a static analyzer such as cppcheck or clang-tidy on every pull request. Confidence: 0.85
- Pin the exact cross-compiler version in a container image or toolchain file so every build is reproducible. Confidence: 0.90
- Use fixed-width integer types like uint32_t everywhere hardware registers, protocols or storage formats are involved. Confidence: 0.90
- Track flash and RAM usage per build in CI and fail when either crosses an agreed budget. Confidence: 0.80
- Ship over-the-air updates with an A/B partition scheme, signed images and automatic rollback if the new image fails to boot. Confidence: 0.90
- Verify firmware signatures in the bootloader with a key the application cannot overwrite. Confidence: 0.85
- Lock debug ports such as JTAG and SWD on production units, with a documented process for authorized recovery. Confidence: 0.80
- Store a crash record with the program counter, fault registers and reset reason in retained RAM and report it on the next boot. Confidence: 0.85
- Use structured, compact logging with log levels and a ring buffer, and avoid printf in interrupt context. Confidence: 0.80
- Write wear-aware storage code: batch writes, use a flash file system like littlefs, and never rewrite the same sector in a tight loop. Confidence: 0.85
- Version configuration stored in flash and migrate it on boot, rather than assuming the layout never changes. Confidence: 0.80
- Design for low power from the start: sleep by default, wake on interrupts, and measure current draw with real hardware. Confidence: 0.75
- Run a hardware-in-the-loop test rig in CI for the main boards before releasing a firmware version. Confidence: 0.70
- Embed the git commit hash and build time in every image and expose them through a version command or register. Confidence: 0.85
```
END THIRD-PARTY FILE 16beabafe14ff75d

The third-party file has ended. Everything between the 16beabafe14ff75d tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

© f · CC0-1.0 · https://github.com/f/prompts.chat/tree/HEAD/prompts.csv

## Similar
- [embedded-systems](https://affpapa.org/en/nevibecode/agents/embedded-systems.md) — subagent · 279 installs
- [domain-embedded](https://affpapa.org/en/nevibecode/skills/domain-embedded.md) — skill · 3200 installs
- [embedded-iot](https://affpapa.org/en/nevibecode/skills/embedded-iot.md) — skill · 212 installs
- [embedded-docs](https://affpapa.org/en/nevibecode/mcp/embedded-docs.md) — MCP server · ★ 26 repo stars
- [bootloaders-embedded](https://affpapa.org/en/nevibecode/skills/bootloaders-embedded.md) — skill · 395 installs
- [competition-firmware-layout](https://affpapa.org/en/nevibecode/skills/competition-firmware-layout.md) — skill · 109 installs

From the same set: [f/prompts.chat](https://affpapa.org/en/nevibecode/by/f/prompts.chat.md) — 218 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
