PocketMage SDK Documentation
PocketMage SDK Documentation
A PocketMage app is a standalone ELF the host firmware loads at runtime and runs in-process. There is no firmware reflash: you build an ELF, pack it with an overlay sidecar and an icon, copy the tar onto the SD card, and install it through the on-device app loader. These docs cover the whole path, from installing the toolchain to the binary contract the loader enforces.
Get StartedGuides
API reference
Binary contract
Tooling
Publishing
Get started
New here? Go from an empty directory to a running app in two steps.
What a PocketMage app is, what you need installed, and the shortest path to a running ELF.
OpenThe pinned espressif Xtensa compiler, the elf_overlay host tools, and the pm CLI.
Scaffold, build, gate, pack, and install a minimal app end to end.
OpenGuides
Walkthroughs of the whole app model.
From pm new to a running ELF: scaffold, build recipe, delivery tar, and the host loader.
Entry points, the host/app export model, APP_INIT, and exiting cleanly.
The two-display model, the buffered E-Ink refresh rhythm, and the scroll loop.
OpenGive an app translatable strings: the catalog it ships and the runtime that resolves them.
OpenThe delivery tar, the 40x40 icon, assets, and what APPLOADER does with them.
OpenGuide index and cross-links into the deep references.
OpenAPI reference
Every component the SDK publishes, with semantics and its pm_* C ABI. Start at the overview.
The umbrella header, the PM_TARGET_HOST/PM_TARGET_APP split, the singleton pattern, and the pm_* projection model.
Every pm_* wrapper and its exact signature, grouped by module.
OLED, E-Ink, Font, Layout, UI helpers.
OpenKeyboard, Touch.
OpenSys and globals, SD card, Clock, Buzzer, WiFi, i18n runtime.
OpenThe binary contract
What the loader accepts and how an app’s dependencies resolve.
The binary shape the loader accepts: format, entry, two-stage load, failure modes.
OpenThe overlay sidecar that pages app code into executable RAM, and what it contains.
OpenThe host-export surface an app’s undefined list resolves against, and how to change it.
OpenTooling
The build and release tools.
A Makefile including tools/app.mk is the whole build system. Toolchain, targets, icon, overlay.
Scaffolding, building, the enforcing dependency gate, packing, exports, and release bumps.
OpenThe generator and the merge rules that keep string IDs stable across the SDK and app catalogs.
OpenHelp
The failures a build or load hits most, what causes each, and how to fix it.
OpenEvery term these docs use, defined once, with links to the page that owns the concept.
OpenMoving a pre-ELF app to the runtime-load flow.
OpenStart here
- Install the toolchain: Get Started.
- Build your first app end to end: Your first app.
- Learn the model: Making an app, then the API overview.
- Read the contract: App ABI and Overlay format.
- Check what your app resolves against: Symbols.
- Ship a tar: Publishing.
- Port existing code: Migration.