pebble
  • Tutorials
  • Get the SDK
  • Guides
  • Documentation
  • PebbleOS
  • Mobile App
  • Examples
  • Index 01
  • Community
  • Blog
  • More
Privacy
Cookies
Publish

PebbleOS

  • Overview
  • Start here
    • Getting started guide
  • Pebble Firmware
    • Overview
    • Playground
    • Application SDK
  • Development
    • The pbl CLI
    • Build system
    • Samples
    • Emulator and simulator
    • Testing
    • Debugging
    • Conventions
  • System
    • Architecture overview
    • Kernel
    • Drivers
      • Device model
      • Simulators
      • Buses and I/O
      • Clocks, power and timing
      • Memory and storage
      • Display and graphics
      • Sensors and input
      • Audio and haptics
      • Power supply
      • System
    • Subsystems
    • Libraries
    • Third-party
  • Hardware
    • Boards
    • Board Add-ons
    • Programmers
  • Community
    • Contribution Guidelines
  • Reference
    • Reference
    • Kconfig options

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

API

API reference

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. This page is maintained in the pebbleos repository: docs/drivers/flash.md.