Device
Processes
An AtomVM program. program is the device entry point.
It lowers to start/0. A crash is printed on the serial console and the entry runs again, stopping after [atomvm] crash_retries crashes (default 3; set crash_retries = "infinity" to keep retrying). There is no hot reload. An undefined call (undef) stops the device; the compiler rejects calls outside the selected board manifest before flash. Integers wider than 256 bits are rejected. The application budget is 512 KB on RP2 (the slot at 0x10180000 on a 2 MB Pico) and 1 MB on ESP32 until selm device expand.
Host OTP must be 26 through 29. The pinned AtomVM release is 0.7.0-beta.0.
Types
Program
type Program = ProgramA device program ready to boot.
Examples
Device.program helloValues
program
program : (() -> ()) -> ProgramRun start as the AtomVM entry point.
Examples
main =
Device.program hello
hello : () -> ()
hello () =
hello ()