# Firmware

> The code kept inside a device's chip. It tells the parts what to do.

**Field:** Software Development  
**Category:** Embedded & IoT  
**Also known as:** Device Firmware, Embedded Firmware, Firmware Update

## Think of it like

It is like the rules a toy robot is born with. You can teach it new ones, and it keeps them.

## Definition

Firmware is the software stored inside a device that makes its hardware work. It lives in flash memory on the chip, so it stays when the power goes off. On a small chip, the firmware is often the only program there is. Writing a new copy into that memory is called flashing. A failed update can leave the device dead, so updates need care.

## Example

A wireless earbud gets a firmware update from its phone app. The new code fixes a bug that made the sound cut out.

## Why it matters

Firmware decides what a device can do and how safe it is. Old firmware is a common way in for attackers.

## Common mistake

Pulling the power in the middle of an update. Half-written firmware can stop the device from starting at all.

## Three principles

- **Kept on the chip.** It stays without power.
- **Runs the hardware.** It is the device's own code.
- **Update with care.** A failed flash can brick it.

## Related terms

- [Microcontroller (MCU)](https://learn.benibix.com/term/development/microcontroller)
- [Embedded System](https://learn.benibix.com/term/development/embedded-system)
- [Arduino](https://learn.benibix.com/term/development/arduino)
- [MicroPython](https://learn.benibix.com/term/development/micropython)
- [Real-Time Operating System (RTOS)](https://learn.benibix.com/term/development/real-time-operating-system)

![One chip drawn as a large box labelled microcontroller. Inside it sit a small processor, flash memory that holds the firmware, a little RAM, and a row of pins along the edge. A button and a temperature sensor feed in through the pins on the left, and an LED and a motor are driven by pins on the right. A note says the whole computer is one chip that runs one job.](https://learn.benibix.com/diagrams/dev4-microcontroller.svg)

---

Source: https://learn.benibix.com/term/development/firmware
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
