A conversion exits nonzero on failure; Exit codes lists each code. Capture both stdout and stderr when investigating it: conversion progress and error diagnostics go to stderr, while the final Results output goes to stdout, and some input failures retain Python tracebacks. Verbosity controls logging detail, not whether the conversion succeeded. See troubleshooting and the error reference.
Output path for the generated module. Use a directory for an unpacked module, a ‘.zip’ suffix for a generic zip archive, or a ‘.pack’ suffix for an Open-CMSIS-Pack archive (requires module.type=cmsis_pack). (default: output.zip)
--module.type
zephyr | cmake | nsx | cmsis_pack
cmake
Module type: cmake, zephyr, nsx or cmsis_pack (cmsis_pack is experimental) (default: cmake)
--module.name
str
helia_aot_nn
Module name (default: helia_aot_nn)
--module.prefix
str
aot
Prefix added to sources for unique namespace (default: aot)
--module.schedule
table | static
table
Operator dispatch shape in the generated model: ‘table’ (default) keeps the runtime function-pointer table and per-node callback seam; ‘static’ emits straight-line direct calls (no table, no loop, no indirect dispatch). (default: table)
--module.zephyr-dtcm-bytes
int
—
Size in bytes of an application-provided Apollo4 Plus Zephyr DTCM linker region, before platform.reserve and memory.constraints. Omit to offer the stock EVB layout snippet.
--module.transfer-provider
auto | none
auto
The transfer provider emitted beside a module with ‘dma’ units: ‘auto’ emits the module type’s provider when the type has one (‘nsx’: on nsx-psram’s asynchronous read; ‘cmake’, ‘cmsis_pack’ and ‘zephyr’: none today), ‘none’ emits no provider for an application that binds its own. No effect without ‘dma’ units. (experimental) (default: auto)
Memory planner strategy (greedy_by_size is experimental) (default: hill_climb)
--memory.planner-options
str
{}
Planner tunables as JSON, validated against the selected planner’s option schema (hill_climb: iterations, seed, max_stall_iterations)
--memory.constraints
str (repeatable)
—
Memory constraints (ordered by preference)
--memory.tensors
str (repeatable)
[]
Tensor attributes
--memory.stream-pool
str
—
The stream pool that constants with residency stream are copied into: its bytes, and optionally its memory (dtcm, the default and the only accepted value). Its alignment is derived and stated as <prefix>_arena_pool_dtcm_alignment and the report’s stream_pool.alignment. Reserved in the memory’s budget before planning and emitted as a region the application binds in both arena modes (experimental)
If true, the module will use internal, statically allocated arenas. If false, the caller must bind every region via <prefix>_bind_arena() / <prefix>_bind_arenas() before model_init. (default: True)
If true, write a machine-readable residency report (<prefix>_residency.json) alongside the emitted module. Mirrors the verbose log summary as JSON for tooling that needs to introspect arena layout, staged-vs-cold residency, and per-tensor placement post-planning. (default: False)
Target platform name; with platform.facts catalog, a helia-platforms board, part, SoC, implementation or composition id, or an alias (default: apollo510_evb)
--platform.cm55-during-npu
awake | may_sleep | undeclared
undeclared
Application guarantee for the CM55 during Atomiq NPU work, through driver completion. (default: undeclared)
--platform.facts
registered | catalog
registered
Where the configuration comes from: registered (the registry entry or the custom fields) or catalog (derived from the helia-platforms catalog target platform.name selects) (experimental) (default: registered)
--platform.boot
str
—
With platform.facts catalog: a boot configuration the target defines, such as sbl; the target’s default when unset (experimental)
--platform.addons
str (repeatable)
[]
With platform.facts catalog: helia-platforms add-on ids fitted to a board target (experimental)
--platform.reserve
str
{}
With platform.facts catalog: bytes per memory reserved for the application, subtracted once from the derived size (experimental)
--platform.cpu
str
—
CPU core type (e.g., cortex-m55); refused with platform.facts catalog, which gives the core
--platform.speeds
str (repeatable)
[]
Declared clock speeds in MHz; refused with platform.facts catalog (deprecated since 0.32.0: remove it; no conversion reads it.)
--platform.memories
str
{}
Memory sizes in bytes; refused with platform.facts catalog, where platform.reserve lowers a budget
--platform.capabilities
str (repeatable)
[]
List of SoC capabilities; with platform.facts catalog, a restriction of the derived set, where an empty list is no restriction
--platform.preferred-memory-order
str (repeatable)
[]
Preferred memory order for allocations; refused with platform.facts catalog, where memory.constraints orders placement
--platform.min-alignment
int
—
Minimum alignment requirement in bytes; with platform.facts catalog, it replaces the derived floor
--platform.overlay
str
—
helia-platforms overlay file that defines platform.name, or with platform.facts catalog adds entries to the catalog; relative to the configuration file that sets it, or to the working directory for the flag
Allow auto knob values that change numerics relative to the knob’s default (e.g. fast accumulation) (default: False)
--optimization.accumulation
auto | precise | fast
auto
FP16 fully connected and depthwise accumulation: precise (four-tap FP32 folding on eligible packed fully connected layers, otherwise standard; the default depthwise entry), fast (legacy fully connected routing; the FP16-lane depthwise entry; approximate where alternatives apply) or auto; FP16 convolution packs at every setting (default: auto)
--optimization.kernel
auto | specialized | generic
auto
Int8 convolution, depthwise, fully connected and bilinear resize entry: specialized (shape-specialized ns-cmsis-nn direct entries where they apply), generic (the general entries, fewer kernels linked) or auto; both are exact (default: auto)
--optimization.plan
str
—
Path to a plan whose schedule and declared placement, operator knob and direct-entry choices the conversion applies (experimental)
A valid request failed while converting, with a typed error, or an unexpected exception was raised with its traceback.
2
USAGE
The input was rejected: the command line, the configuration, a file it names (the model, the golden data, the output location), the model type or format, or the target, whether before or during conversion.
130
INTERRUPTED
The command was interrupted.
The code depends on what failed, not on when. Rejected input exits 2: the command line, the configuration, a file it names (the model, the golden data, the output location) and the target, even when the check runs after conversion has started, as for golden data, test.state_feedback pairs or an out-of-range model.subgraph, all checked against the loaded model. A valid request that fails while converting, such as a model construct heliaAOT cannot lower or memory that does not fit, exits 1. Each error class declares its code; the Errors page lists them. An unexpected exception is a defect and keeps its traceback.
An interrupt during conversion, or before it starts, exits 130. An interrupt while heliaAOT is still loading ends the process on the signal itself, which a shell reports as 130.