---
title: "Flash"
canonical_url: https://developer.repebble.com/pebbleos/docs/drivers/flash/
last_updated: 2026-11-24
sdk_version: 4.44
---
# Flash

Source: https://developer.repebble.com/pebbleos/docs/drivers/flash/

A flash is addressed by offsets from its first byte. Writes only clear bits, so a range is erased first; the class erases with as few sector and subsector erases as it can, skipping blank ones. `drivers/flash/README.md` describes the class core, its coredump mode, which relies on no OS service, and how NOR parts are described.

| 

 | 

 |
| --- | --- |
| 

Directory

 | 

`drivers/flash`

 |
| 

Header

 | 

`pbl/drivers/flash.h`

 |
| 

Kconfig

 | 

`CONFIG_FLASH`, enabled by the application

 |
| 

Role

 | 

`FLASH`

 |
| 

Sample

 | 

[Flash: Geometry and reads](https://developer.repebble.com/pebbleos/docs/samples/drivers/flash.md)

 |
| 

API

 | 

[API reference](https://developer.repebble.com/pebbleos/apidoc/d4/d72/group __drivers__ flash.html)

 |

## Drivers

| 

Driver

 | 

Compatible

 | 

Kconfig

 |
| --- | --- | --- |
| 

SPI NOR

 | 

`jedec,spi-nor`

 | 

`CONFIG_FLASH_SPI_NOR`

 |
| 

QEMU External Flash

 | 

`qemu,pebble-extflash`

 | 

`CONFIG_FLASH_QEMU`

 |
| 

POSIX External Flash

 | 

—

 | 

`CONFIG_FLASH_POSIX`

 |

Generated from PebbleOS [12b6c531f](https://github.com/coredevices/pebbleos/commit/12b6c531f9e0c2f39fe4e9bb2886314697128f08). This page is maintained in the pebbleos repository: [docs/drivers/flash.md](https://github.com/coredevices/pebbleos/blob/12b6c531f9e0c2f39fe4e9bb2886314697128f08/docs/drivers/flash.md).
