Expand description
Booting a diagram and a set of flash images, with no project directory.
runner reads a project’s files; a host that already has
the diagram and the images in memory — the browser simulator is one — wants
the same construction without the file system in the way. The sequence is
shared so the two cannot drift: validate the diagram against the builtin
catalog, flatten it into a board, attach the board to the chip, place the
images in flash and either let the second-stage bootloader run or jump
straight to the application.
boot chooses the backend from the board’s manifest, exactly as the
runner does, so every builtin chip is reachable from an in-memory host.
boot_c3 is the older ESP32-C3-only entry point kept for callers that
named the chip themselves.
Structs§
- Board
Image - One development board’s images for
boot_fleet. A host that runs a multi-board diagram names each board’s instance id and boots every chip against the same flattened circuit. - Boot
Options - What a host can choose about a boot before the diagram is read.
- Booted
- A booted circuit: the chip that runs it and the board it drives.
- Booted
Fleet - The chips a multi-board circuit runs, with the board they share and the ids of the development board instances in diagram order.
- Images
- The images a boot needs. ROM and the bootloader/partition-table pair are optional; the pair goes together or not at all, because the bootloader looks the application up through the table.
- Manifest
Text - One manifest the host supplies, with the board’s internal schematic when the manifest names one and has no directory to resolve it against.
Constants§
- DEFAULT_
MAC - Espressif’s example MAC. Nothing in the simulation is MAC-specific, so a fixed value keeps two runs byte-identical.
Functions§
- boot
- Boot whatever chip the diagram’s board names.
- boot_c3
- Build a board and an ESP32-C3 wired to it, then place
imagesin flash. - boot_
fleet - Boot one chip per development board, all attached to one shared circuit.