Targets
A target describes the compiler’s view of the hardware: core, capabilities,
clock choices, memory capacities, preferred placement order and alignment.
Select it with platform.name; choose build-system integration separately with
module.type.
helia-aot platforms listhelia-aot platforms show apollo510_evbhelia-aot platforms show apollo510_evb --jsonLookups are case-insensitive. Built-in platform names use lowercase canonical
spellings; custom registrations preserve the spelling supplied to
register_platform(). The
Targets reference is generated from the registry
and contains the full values for each platform.
list-targets and target-info --name NAME are deprecated aliases of these
commands: they print the same output and a warning, and they are removed in
heliaAOT 2.0. Use the full registered name, such as apollo510_evb, for discovery and
helia-aot convert --platform.name apollo510_evb ... for conversion. Shortened
names such as AP510_EVB and bare SoC names such as apollo510 are not aliases.
Both discovery commands accept --json. The version-1 response is an object
with schema_version: 1 and either a platforms array (list) or a platform
object (show). Each record contains name, cpu, speeds_mhz, capabilities,
memories (region name and integer bytes), preferred_memory_order,
min_alignment (bytes), supports_fp16, and target, the
catalog target the name resolves to (null for a platform
added through register_platform()). Each memory also lists the catalog
regions it binds to and the one region’s dma_boundary (null when none is
stated). Memory and capability names use
uppercase enum names. Output describes the registered profile, before any
conversion-local overrides or model constraints. Declared clock choices do not
set hardware clocks; memory values are planning limits, not measured free RAM.
The human view uses binary KiB and MiB units. A custom registration with a
contradictory FP16 declaration remains discoverable: supports_fp16 is null
and fp16_error explains the problem. This does not make the profile valid for
conversion: resolving it for one raises an InvalidConfigError, the
ConfigValueError whose exit_code is 2, and the command line exits 2 before
converting.
When a side-loaded catalog source cannot be loaded, the discovery commands
still list every record, without the catalog fields, and add the error: one
catalog facts unavailable: ... line in the text, and a top-level
catalog_error string in the JSON. They exit 0.
The families
Section titled “The families”| Family | Core | Platforms |
|---|---|---|
| Apollo3 | Cortex-M4 | apollo3_evb, apollo3p_evb, apollo3_blue_evb, apollo3_blue_plus_evb, apollo3_blue_thin_evb |
| Apollo4 | Cortex-M4 | apollo4p_evb, apollo4l_evb, apollo4p_blue_kbr_evb, apollo4p_blue_kxr_evb, apollo4l_blue_evb |
| Apollo330 | Cortex-M55 | apollo330mp_evb |
| Apollo510 | Cortex-M55 | apollo510_evb, apollo510b_evb, apollo510l_evb |
| Atomiq | Cortex-M55 with Ethos-U85 | atomiq110 |
A registry entry is not a promise that every firmware format and toolchain has been exercised on that board. See build coverage.
What a target changes
Section titled “What a target changes”Kernel selection. Operator candidates use target capabilities to determine which implementations are applicable. The compiled kernel library also has CPU and feature flags; changing platform metadata alone does not rebuild that library or configure silicon. See kernel selection.
Float support. Operators requiring native FP16 consult supports_fp16.
An explicit FP16 capability is accepted unless it contradicts a known
incompatible CPU. When the capability is absent, a normalized cortex-m55 CPU
still provides a compatibility fallback. Removing FP16 from a Cortex-M55
capability list therefore does not disable all FP16 lowering.
FP16 storage is a separate concern: some copies and FP16-to-FP32 widening do not require native FP16 computation. Read Precision before inferring support from tensor width alone. FP32 has no equivalent platform gate.
Memory planning. Capacities and preferred order guide allocation and tensor
rules. They do not install linker sections or reserve memory for your
application: a capacity is the total a program links into, from the board’s
default linker script (on Apollo510 EVBs, 496 KiB of MCU_TCM; on the
Apollo330MP and Apollo510L EVBs, apollo330mp_evb and apollo510l_evb, 240 KiB; in each case the MRAM after the bootloader). Leave
your application’s share with a
max_size constraint.
apollo510_evb and apollo510b_evb each declare 64 MiB (67,108,864 bytes) of
PSRAM, after DTCM, SRAM and MRAM in the preferred placement order. Module-specific
placement hooks and your firmware linker configuration must realize the plan;
check the map file after linking.
AT110 HBLRAM placement
Section titled “AT110 HBLRAM placement”On atomiq110, hblram selects the writable bank beginning at
0x60000000. The registered and catalog routes both read its size from the
installed helia-platforms catalog. Version 0.2.0 reports 13 MiB. Version 0.3.0
reports a 32 MiB silicon planning capacity pending hardware verification. The FPGA and FPGA Turbo
targets omit this bank. sram continues to select SSRAM. On a derived target
with a separate DRAM region, select it with dram. Reduce the registered
HBLRAM budget with platform.memories.hblram, or reserve bytes on the catalog
route with platform.reserve.hblram.
For the public compiled CNN (tests/e2e/models/cnn_s_quantized_vela.tflite),
these rules put the command stream, weights and planned writable arena in HBLRAM:
platform: {name: atomiq110}memory: tensors: - {type: constant, attributes: {memory: hblram}} - {id: "0", attributes: {memory: hblram}}The generated module leaves its HBLRAM placement macros empty by default. For
a module prefixed net, include these definitions when compiling all
generated sources. Use a compiler preinclude, or the generated NSX CMake
<MODULE>_ATTRIBUTES_HEADER setting.
#define NET_PUT_IN_HBLRAM __attribute__((section(".hblram_bss")))#define NET_PUT_IN_HBLRAM_INIT __attribute__((section(".hblram_data")))Give the firmware linker a writable HBLRAM memory region at the origin and
size of the selected target. Within GNU ld’s SECTIONS, for example, where
FLASH names the firmware’s load region:
.hblram_data : { *(.hblram_data) } > HBLRAM AT> FLASH.hblram_bss (NOLOAD) : { *(.hblram_bss) } > HBLRAMHave startup copy the initialized data from its load address and clear the zero-initialized section before model initialization. Check both arena symbols and their extents in the linked map. With caller-bound arenas, load the constant sidecar into the selected bank and bind the writable and constant buffers with their emitted sizes and alignments.
The placement report links command and weight allocation IDs to their
physical bank. The driver’s fast-memory argument can replace a scratch base at
invocation, so that allocation records its planned memory and omits
physical_memories. The installed catalog describes HBLRAM as system-attached.
AOT therefore treats an HBLRAM-to-SSRAM constant transfer as internal. An
external DRAM at either end activates the CM55’s 32-byte constant-arena
alignment and padding. The catalog attachment does not establish board MPU
cacheability or hardware timing.
Catalog facts
Section titled “Catalog facts”heliaAOT reads each target’s transfer facts from the helia-platforms catalog: which memories are external, which a DMA engine can reach, and each memory’s DMA boundary. With helia-platforms 0.3.x the catalog also supplies the DMA address alignment, core D-cache line size and DMA power restrictions. For example, a custom Apollo330P board with PSRAM offers CPU copies when the catalog has no alignment for DMA. With 0.2.x, AOT supplies its existing transfer rules for the supported SoCs. A registered AT110 also takes its HBLRAM capacity from this catalog. Other registered and custom sizes, capabilities and alignment come from the profile, unless you opt in to targets from the catalog.
| Platform | Catalog facts |
|---|---|
| A registered built-in | Its name’s catalog target, as platforms show prints it; apollo510l_evb is apollo510dL_evb. The name you configured is kept everywhere. |
A custom definition with platform.overlay |
The entry platform.name names in the overlay, or in a side-loaded source. |
A custom definition without platform.overlay |
No board binding. The core’s cache line can be read from the shipped core data. Transfers offer CPU copies only. |
A platform added through register_platform() |
None. platform.overlay is ignored with a warning. |
Any name with platform.facts: catalog |
The catalog target platform.name selects, which also gives the sizes, capabilities and alignment; see targets from the catalog. |
Each memory binds to the catalog regions core 0 reaches, except a region the
catalog marks guidance: discouraged for core 0, which gets no facts:
| Memory | Catalog region |
|---|---|
dtcm |
The TCM-attached SRAM region other than itcm |
itcm |
itcm |
sram |
Every system-attached SRAM region (three on Apollo4 Plus) |
mram |
The non-volatile regions an application can use (mram, rram or flash) |
psram |
The PSRAM device the board populates |
hblram |
An SRAM or DRAM region named hblram on Atomiq110 and targets derived from it |
dram |
Other DRAM regions |
A memory has transfer facts only when exactly one region binds to it. A
transfer offers dma from a memory whose region is external, has an address
and is reached directly by core 0, with a known DMA address alignment, into an
on-die SRAM or DRAM region with a stated DMA boundary. Every usable CPU view
of the source must begin on its DMA alignment, and every usable view of the
destination must begin on its boundary. The generated source arena for a
scheduled DMA transfer also guarantees the device alignment. On apollo510_evb and apollo510b_evb that is PSRAM into DTCM. cpu is
offered for every pair, except from an external memory the catalog states the
CPU cannot read: one with no address (its interface has no aperture) or no
direct access from core 0. Nothing can copy from such a memory, so a schedule
unit that streams from it is refused, naming the region and the reason. A
memory without catalog facts keeps cpu. A stated DMA boundary that is not a
power of two, or not a multiple of a supported external source’s DMA granule, is refused when a
conversion reads it.
When a stream pool is configured and a memory it uses has no transfer facts, the conversion logs why once.
Private catalogs side-load as helia-platforms defines: installed
helia_platforms.catalogs entry points, then the files in
HELIA_PLATFORMS_PATH. A side-loaded entry cannot shadow a built-in. A source
that fails to load stops the conversion of an overlay platform, naming the
source. From heliaAOT 1.5.0 a built-in still converts without catalog facts,
with one warning naming the source. Its plan leaves out platform.target and
generator.helia_platforms, and the module’s “Platform facts” line reads
“catalog facts unavailable”. A conversion with memory.stream_pool needs those
facts, so it is refused at the memory-planning step with the load error. The plan and the module’s “Platform facts” line record
only the sources the target’s own entries come from, by label (overlay:<file>,
env:<file> or entry_point:<distribution>, no directory): a built-in
records none, so its module is the same on every machine and names no private
catalog, while an overlay board on a side-loaded part records both files, and a
composition records the file that defines it. Those labels can name a private
SoC or package. On helia-platforms 0.3.x, remove the deprecated port key from
access entries in overlays before loading them. helia-platforms 0.2.0 names a side-loaded source by its file
name only, so two side-loaded files with one name in different directories are
both recorded when one is used
(helia-platforms#169);
give private catalog files distinct names.
Targets from the catalog
Section titled “Targets from the catalog”Experimental in 1.6.0. platform.facts: catalog derives the whole platform
from the helia-platforms catalog target platform.name selects: core,
capabilities, memory budgets, placement order and alignment. The registry is
not read, and the default (registered) is unchanged.
platform: name: apollo510_evb # a board, part, SoC, implementation or composition id, or an alias facts: catalog boot: sbl # optional; the target's default boot otherwise reserve: {dtcm: 16384} # optional; bytes the application keeps| Value | Where it comes from |
|---|---|
cpu |
Core 0’s catalog id. The CMSIS-Pack Dcore follows the core’s based_on chain. Catalog 0.3.x supplies the D-cache line. |
| Capabilities | MCU for an M-profile core 0, then DSP, MVE, FP16 (MVE-FP) and NPU from the catalog. FP16 is never inferred from the core name. |
| Memory budgets | The regions core 0 reaches directly: physical RAM sizes, the usable non-volatile memory of the selected boot, and the addressable external memories the board and its add-ons populate. Fitted eMMC is storage and contributes no inference memory. Writable memory budgets exclude regions the catalog marks read-only. Contiguous regions of one memory are summed (Apollo4 Plus SRAM is 2,432 KiB); otherwise the largest contiguous run is used, and on a tie the lowest. Contiguity and order use the addresses visible to core 0. For DMA eligibility, an explicit core access address replaces the physical base and all its aliases. Without a remap, the primary and alternate windows must each satisfy the alignment checks. |
| Placement order | DTCM, SRAM, MRAM, PSRAM, DRAM, HBLRAM, keeping those the target has. |
min_alignment |
16 bytes with MVE enabled, 4 otherwise. |
The budgets are the hardware sizes, not a linker script’s: apollo510_evb
gets 512 KiB of DTCM where its registry entry has 496 KiB. Keep your
application’s share with platform.reserve, which is subtracted once and
recorded beside the catalog size; memories it does not list keep their full
budget.
| Setting | With facts: catalog |
|---|---|
platform.boot |
A boot configuration the target defines, such as sbl or nbl. One that differs from the board’s provisioning is logged once as a warning. |
platform.addons |
Add-on ids fitted to a board target, such as cygnus. |
platform.reserve |
Bytes per memory, at most its derived size, and only for a memory with a budget. |
platform.capabilities |
A restriction of the derived set; an empty list is no restriction. It must keep MCU; FP16 needs MVE, and MVE needs DSP. Removing FP16 also turns off packed FP32 weights, and removing MVE gives a 4-byte floor. |
platform.min_alignment |
Replaces the derived floor; both are recorded. |
platform.overlay |
Adds entries to the catalog, such as your own board. |
platform.cpu, memories, preferred_memory_order, speeds |
Refused when the configuration loads: the catalog gives them, a smaller budget is a platform.reserve entry, and memory.constraints orders placement. |
boot, addons and reserve are refused without facts: catalog. A name
the catalog does not know, a family such as AP510, a boot or add-on that
does not apply, a target with no boot configuration, a core 0 that is not
M-profile or that no customer can program, and two non-volatile regions in one
memory are each refused, naming the entry. On an integer-only MVE core, float
weights keep the standard layout.
Each region no budget uses is recorded with its reason: discouraged for core 0
(rs_tcm on the Apollo330 and Apollo510L parts), not reached directly, no
address, or no memory type takes it (an add-on’s flash). A streaming request from such a memory is refused,
quoting the region and the reason.
helia_aot.platforms.platform_record(resolve_platform(config.platform))
returns the configuration before converting: the platforms show fields plus
schema, facts, boot, addons, core_lineage, each memory’s
derived_bytes and reserved, min_alignment_origin,
min_alignment_derived, left_out, derived_capabilities when the enabled set differs from it,
and catalog, the catalog identity. The plan’s platform section records the
same fields for a catalog conversion. The record is provisional.
Overriding a platform
Section titled “Overriding a platform”A registered name selects its registry definition. platform.memories
replaces the sizes of memories the target has, for that conversion only, for
a board variant whose sizes differ; a size above the registered one is logged,
and a memory the target lacks is an error. Other platform fields
such as capabilities or min_alignment do not override it: the converter
ignores them and warns about configured overrides. This is the registered
route; with platform.facts: catalog,
capabilities restricts the derived set, min_alignment replaces the
derived floor and platform.reserve lowers a budget.
For an application budget or stronger arena alignment, retain the registered
target and use memory constraints. An explicit constraint list is the complete
set of memories the planner may use, in order of preference, so this example
lists the Apollo510 entry’s memories in their registered order and gives the
model at most 8 MiB of PSRAM, with a 32-byte alignment floor in that bank. A
list naming only psram would place every arena in PSRAM.
platform: name: apollo510_evbmemory: constraints: - name: DTCM - name: SRAM - name: MRAM - name: psram max_size: 8388608 arena_alignment: 32These are model allocation constraints, not PSRAM initialization or linker configuration. See memory constraints for their scope and the report checks to perform.
To change the hardware definition itself, use an unregistered name (lowercase is recommended) and supply every required custom-platform field. This complete example copies the Apollo510 entry’s hardware values and chooses a stricter minimum alignment; it does not inherit anything from the registry:
platform: name: apollo510_custom cpu: cortex-m55 memories: mram: 4128768 sram: 3145728 dtcm: 507904 itcm: 262144 psram: 67108864 preferred_memory_order: [dtcm, sram, mram, psram] min_alignment: 32 capabilities: [mcu, dsp, mve, fp16]Review the complete definition against the actual board before adapting it.
An unregistered name without CPU, nonempty memories and preferred order, and
minimum alignment fails during target resolution. capabilities must describe
the features the hardware really supplies. A custom name is conversion-local;
it is not added to platforms list. Without platform.overlay it has no
catalog facts, even when its name is a catalog name: transfers
use cpu copies, and its memories have no DMA boundary.
| Field | Meaning for a custom definition |
|---|---|
name |
Unregistered name; registered names instead select the registry entry. |
cpu |
Core name, such as cortex-m55. |
speeds |
Deprecated since 0.32.0 and removed in 2.0. No conversion reads it, and platforms show never lists a custom definition; it is accepted with a warning. |
memories |
Complete region capacities in bytes. |
capabilities |
Available MCU, DSP, MVE, FP16 or NPU features. The removed ble, usb and psram values are an error; PSRAM memory is declared under memories. |
preferred_memory_order |
Memory preference when a placement rule does not name a region. |
min_alignment |
Power-of-two pointer alignment floor. |
overlay |
A helia-platforms overlay file that defines the board name names, so the definition gets that board’s catalog facts. Relative to the configuration file that sets it; the --platform.overlay flag is relative to the working directory. Ignored, with a warning, for a registered name. |
CLI --platform.memories merges entries with the YAML configuration mapping,
and on a registered target the result resizes the memories it names for that
conversion (see Overriding a platform). Kernel experiments requiring
a different capability set need a complete custom definition, or an explicitly
registered Python platform. Keep declarations truthful and record the kernel
library’s CPU/build flags as well.
Native FP16 support still falls back to a normalized cortex-m55 CPU when a
custom definition omits fp16; an empty list does not force a scalar/FP32-only
path. Generated section hooks also depend on module format and platform family,
so review them and the linker map when using a custom name.
A custom board through an overlay
Section titled “A custom board through an overlay”Give a custom definition a board’s DMA facts by naming a helia-platforms overlay entry. The overlay describes the board; the definition still states the CPU, memories, order and alignment:
platform: name: my_apollo510_board # an entry the overlay defines overlay: boards/my_apollo510_board.yaml cpu: cortex-m55 memories: {dtcm: 507904, sram: 3145728, mram: 4128768, psram: 33554432} preferred_memory_order: [dtcm, sram, mram, psram] min_alignment: 16 capabilities: [mcu, dsp, mve, fp16]schema_version: 1boards: my_apollo510_board: category: custom revision: "1.0" part: AP510NFA-CBR interfaces: mspi0: {controller: mspi0, modes: [hex-ddr], aperture_base: 0x60000000, aperture_max: 256M} population: {mspi0: APS256XXN} provisioning: sblThis board gets the Apollo510 DTCM boundary of 4096 bytes and dma from its
PSRAM into DTCM. Two alignment rules follow from 1.5.0:
- A stream pool in DTCM is aligned to the 4096-byte boundary, because a
source offers
dmainto DTCM. A target where no source offersdmainto the pool’s memory, such asapollo510l_evb, leaves the boundary out of the pool’s alignment (the report still statesdma_boundary): the pool takes the largest of the 16-byte floor,min_alignment,arena_alignmentand its constants’ alignment. - A constant arena in PSRAM is aligned and padded to the Cortex-M55’s 32-byte D-cache line.
| Case | Result |
|---|---|
platform.name is a built-in catalog name, such as apollo510 |
Refused: an overlay defines its own entries. Use the registered name with no custom fields instead. |
platform.name names no entry, or a family such as AP510 |
Refused, with close names or the family’s members. |
| The overlay is malformed | Refused with the catalog’s message, which names the file and entry. |
The file is already side-loaded through HELIA_PLATFORMS_PATH |
Used once when it is the same file, by any path, or a copy of a self-contained file with the same content. The path is the one the catalog was loaded from, so a later change of working directory does not matter. A copy with other content, or a copy of a file that needs another side-loaded file, is refused as a shadow; name the side-loaded file itself. |
| That side-loaded file changed after the process loaded the catalog | Refused: a process uses one catalog, so the change takes effect in a new process. |
Python users can register platforms through helia_aot.platforms; explicitly
registered names become discoverable through platforms list and subsequently
resolve to their registered definition.
Ethos-U
Section titled “Ethos-U”An original LiteRT model can be compiled during conversion with the optional
helia-aot[ethos] extra. The checked Corstone-300 example models a U55 with
128 MACs per cycle, a 64-bit AXI interface, a 500 MHz modeled NPU clock and
Shared_Sram (constant data on AXI1, arena and cache on AXI0). It uses
apollo510_evb for Cortex-M55 code generation and explicitly selects the
simulator-provided NPU. The compiler SoC, mode, placement and policy identity
are in the example YAML. From a checkout with Git LFS model files, run:
uv sync --frozen --extra ethosuv run --frozen --extra ethos helia-aot convert --path examples/ethos-u/prepare.yamluv run --frozen --extra ethos python examples/ethos-u/prepare.py out/ethos-pythonEach original-model request preserves its compiler diagnostics, source
snapshot, compiled model and preparation record in a fresh
directory under model.preparation.compile.evidence_root. Keep this directory
separate from the generated module. The CLI prints the record and compiled SHA-256.
Python returns them as result.preparation.record and result.preparation.sha256.
Optimization plans fingerprint the compiled model. Automatic numerical reference
execution uses the original model’s public I/O slots.
To split the CNN after original operators 1 and 4, add
fences: {boundaries: [1, 4]} under model.preparation.compile in the YAML.
Python can set the same choice after loading the example:
from helia_aot import AotConverter, ConvertArgsfrom helia_aot.cli.defines import EthosExplicitFenceArgs
config = ConvertArgs.from_yaml("examples/ethos-u/prepare.yaml")config.model.preparation.compile.fences = EthosExplicitFenceArgs(boundaries=(1, 4))result = AotConverter(config).convert()Use fences: {cycle_budget: 50000, min_coverage: 1.0} to select cuts by
estimated cycles. With a YAML configuration, the CLI option
--model.preparation '{"compile":{"fences":{"cycle_budget":50000}}}'
replaces explicit boundaries with a budget. Supplying boundaries switches
back to explicit cuts. To change just the coverage of a YAML budget, supply
only min_coverage in the CLI fence settings.
min_coverage defaults to 1.0 and sets the fraction of
estimated cycles that must map to original operators. The budget is a planning
estimate. An explicit selection or an unfenced conversion compiles once.
Budget planning first compiles an estimate, then recompiles only if it selects
cuts. The retained record’s fences object gives the selected boundaries
and the verified region spans. For a budget, matched_cycles and
unmatched_cycles record coverage. Both are null for explicit cuts.
Apply a selection to an original graph. For an existing split, use its verified
record or convert its compiled file directly.
For parameter sweeps, move the complete run directory together, set model.path
to its preparation.json, and remove model.preparation.compile while retaining
the same backend, target, family and MAC count. The converter checks the recorded
files and decoded accelerator before loading the compiled artifact. A replay with
automatic test generation needs the retained original or matching
test.golden_data. To consume a supplied compiled LiteRT file directly, set
model.path to the file and omit model.preparation. This direct route also
works in the base installation. Each Ethos-U operator lowers to a driver call,
with supported offline allocation offsets and 16-byte alignment preserved.
When the conversion uses a platform’s own NPU, preparation requires its catalog entry to identify the accelerator family and MAC count. A platform registered only in Python lacks those catalog facts. The external-NPU setting below is for a simulator that supplies its own accelerator.
atomiq110 declares an Ethos-U85-256 and is the registered target with NPU.
The simulator qualification uses this catalog configuration with the platform gate enabled.
The generated accelerator code requires the Ethos-U core driver header and
linkage. For CMake, provide ethosu_core_driver before adding the generated
module, or use the generated build file’s explicit include/link integration.
The generated README and build file identify the dependency.
HELIA_ETHOSU_ALLOW_STUB=1 permits a nonfunctional stub for host code-generation
checks. It returns success without executing the NPU. Never use a stub result
as accelerator inference evidence.
A generated module can avoid repeated CPU cache maintenance on Vela U55 and
U85 invocations with more than eight base entries. For the NSX Ethos-U driver
at b5a4be354df5b6b7aaa80bc0ea96c89721c447e2 and its range-based clean
and invalidate hooks, enable the qualified contract on the generated module
target after adding it to the build.
target_compile_definitions(my_model PRIVATE HELIA_ETHOSU_NSX_BASE_CACHE_V1=1)The generated code checks the driver headers and recognizes Vela’s supported COP1 stream format. It retains all eight programmable base registers in compiler order, including repeated operands. For an invocation with more than eight entries, the qualified driver requires enough stream and operand metadata to establish that the trailing slots are unused for address programming. Trailing addresses must be 16-byte aligned, including empty buffers. Each nonempty, nonnull trailing span must fit inside one of the eight retained spans after external binding, staging and the driver’s optional slot-2 fast-memory substitution.
If any check fails, the operator releases the driver and returns an error before submitting a job. The caller can correct a binding and retry. The default build and unrecognized driver headers retain the full positional invocation.
The platform gate, and opting out
Section titled “The platform gate, and opting out”The NPU gate requires an explicit NPU capability; unlike FP16 there is no CPU
fallback. For a simulator that supplies an accelerator while the chosen
platform description does not, the operator gate can be disabled in YAML, or
with the same rule as JSON on the command line,
--operators '{"type": "ETHOS_U", "attributes": {"require_platform_npu": "false"}}':
operators: - type: ETHOS_U attributes: require_platform_npu: "false"This only bypasses the platform check. It neither adds an accelerator nor supplies the driver or makes a stub functional.
What works now, and what is planned
Section titled “What works now, and what is planned”| Path | Repository evidence |
|---|---|
| Parse Vela output and emit accelerator calls | Registered parser/operator/template implementation. |
| Prepare an original using Vela | Optional typed preparation through helia-ethos 0.4.0. The Corstone-300 U55-128 CNN is qualified with Vela 5.2.0. |
| Ethos-U55 | End-to-end Corstone-300 FVP test setup, using the platform-gate override. |
| Ethos-U85-256 | The original quantized CNN is prepared for atomiq110 and run on Corstone-320 with the real driver. The test checks a completed NPU job and compares the output with LiteRT. |
Corstone-320 uses a Cortex-M85 and its own memory and interrupt map. The qualification module places constants in simulator DDR and scratch in shared SRAM. For physical Atomiq placement and the CM55 power declaration, see plans and reports. See the Ethos-U example for the simulator test command.
Native NSX module on Corstone-320
Section titled “Native NSX module on Corstone-320”Use NSX with the Corstone kernel registry entry from
neuralspotx #370.
Set module.type: nsx and describe the execution platform as
platform.name: corstone-320 with platform.cpu: cortex-m85 and
platform.capabilities: [mcu, dsp, mve, fp16]. For the U85
CNN, prepare the model for atomiq110, ethos-u85, 256 MACs and
Shared_Sram. The NSX BSP provides 2 MiB of NPU SRAM for working buffers
and 256 MiB of DDR for constants. The qualification configuration in
tests/e2e/qualification_corstone320.py sets these capacities, orders SRAM
first and assigns constants to DRAM. Conversion checks every Ethos-U command stream
for the board’s U85-256 configuration, including when the input is already compiled.
It also checks that initialized constants reside in DDR and working arenas in SRAM. If your application binds
its own arenas, supply buffers in the corresponding BSP memory regions.
Generate the module outside the app. From a corstone320_fvp_u85 app,
register its manifest, then select the model as a dependency:
model_dir=../modules/helia_e2e_nnnsx module register helia_e2e_nn --project helia_e2e_nn \ --project-local-path "$model_dir" --metadata "$model_dir/nsx-module.yaml"nsx module add helia_e2e_nnLink the application to nsx::helia_e2e_nn. NSX resolves the integer
kernels and, for an Ethos-U graph, the Corstone driver. Before inference,
call nsx_corstone_npu_init() from nsx_corstone_npu.h and check its
return value. Keep D-cache disabled for the FVP driver. Run
nsx configure, nsx build --frozen and nsx run.