Get Started

Get Started

A PocketMage app is a standalone ELF the device loads and runs at runtime. 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. The host resolves everything the app references, from malloc to the pm_* API, at load time.

This section takes you from nothing to a running app in two steps.

  1. Install the toolchain - the pinned espressif Xtensa compiler, the elf_overlay host tools, and the pm CLI.
  2. Build your first app - scaffold, build, gate, pack, and install.

How the pieces fit

Piece Role
SDK repo the app-facing contract: headers, the pm_* ABI, the build recipe, the base i18n catalog
Xtensa toolchain compiles and links the app into a 32-bit ET_DYN ELF
elf_overlay tools turn the link output into the .elfo overlay sidecar
pm CLI scaffolds, builds, gates, and packs (wraps make)
App template the starting point pm new clones from

Where to go next