# `EHLS.Flash`
[🔗](https://github.com/elixir-hls/elixir-hls/blob/v0.1.0/lib/ehls/flash.ex#L1)

The record of what a board's flash holds: for each part (`:vm`, `:lib`, ...) the hash of the file last written
there by `mix ehls.flash` or `mix ehls.run`. A board is told apart by its target and its port (the machine's
`uart_port`, if the target has one), so one record serves every application on the machine: an AtomVM written
for another application's SoC is seen as not matching.

Kept in the user's cache (`~/.cache/ehls/flash.json`; another directory with `EHLS_CACHE_DIR`).

# `forget`

Forgets what the board holds (the next run writes every part it needs).

# `stale`

The parts among `parts` whose file differs from what the record says the board holds.

# `write!`

Writes the parts with the target and records them.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
