Skip to content
heliaAOT
API Reference
HELIA HUB

PlatformArgs

Machine-readable model

  • PlatformArgsclassPlatform configuration for the conversion process.
class

Platform configuration for the conversion process.

helia_aot/cli/defines.py:565

PlatformArgs()

Platform configuration for the conversion process.

attribute

name

Python

helia_aot/cli/defines.py:613

name: str = Field(default='apollo510_evb', description='Target platform name; with platform.facts catalog, a helia-platforms board, part, SoC, implementation or composition id, or an alias')

Target platform name. Defaults to “apollo510_evb”. With facts: catalog, a helia-platforms catalog board, part, SoC, implementation or composition id, or an alias.

attribute

helia_aot/cli/defines.py:618

cm55_during_npu: Cm55DuringNpu = Field(Cm55DuringNpu.UNDECLARED, description='Application guarantee for the CM55 during Atomiq NPU work, through driver completion.')
attribute

facts

Python

helia_aot/cli/defines.py:622

facts: PlatformFacts = Field(default=PlatformFacts.REGISTERED, description='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)', json_schema_extra=stability('experimental'))

registered (the registry entry, or the custom fields of an unregistered name) or catalog (derived from the catalog target name selects). Experimental.

attribute

boot

Python

helia_aot/cli/defines.py:628

boot: str | None = Field(None, description="With platform.facts catalog: a boot configuration the target defines, such as sbl; the target's default when unset", json_schema_extra=stability('experimental'))

With facts: catalog, a boot configuration the target defines, such as sbl; the target’s default when unset. Experimental.

attribute

addons

Python

helia_aot/cli/defines.py:634

addons: list[str] = Field(default_factory=list, description='With platform.facts catalog: helia-platforms add-on ids fitted to a board target', json_schema_extra=stability('experimental'))

With facts: catalog, catalog add-on ids fitted to a board target. Experimental.

attribute

reserve

Python

helia_aot/cli/defines.py:639

reserve: dict[MemoryType, int] = Field(default_factory=dict, description='With platform.facts catalog: bytes per memory reserved for the application, subtracted once from the derived size', json_schema_extra=stability('experimental'))

With facts: catalog, bytes per memory reserved for the application, subtracted once from the derived size. Experimental.

attribute

cpu

Python

helia_aot/cli/defines.py:645

cpu: str | None = Field(None, description='CPU core type (e.g., cortex-m55); refused with platform.facts catalog, which gives the core')

CPU core type (e.g., cortex-m55). Optional for built-ins. Refused with facts: catalog, as are memories, preferred_memory_order and speeds.

attribute

speeds

Python

helia_aot/cli/defines.py:648

speeds: list[int] = Field(default_factory=list, description='Declared clock speeds in MHz; refused with platform.facts catalog', json_schema_extra=stability('deprecated', since='0.32.0', replacement='remove it; no conversion reads it.'))

Declared clock speeds in MHz. No conversion reads them, and platforms show never lists a configuration platform.

attribute

memories

Python

helia_aot/cli/defines.py:653

memories: dict[MemoryType, int] = Field(default_factory=dict, description='Memory sizes in bytes; refused with platform.facts catalog, where platform.reserve lowers a budget')

Memory sizes in bytes.

attribute

helia_aot/cli/defines.py:658

capabilities: list[SocCapability] = Field(default_factory=list, description='List of SoC capabilities; with platform.facts catalog, a restriction of the derived set, where an empty list is no restriction')

Available SoC capabilities. The removed ble, usb and psram capabilities are rejected with a migration hint. With facts: catalog, a restriction of the derived set; an empty list is no restriction.

attribute

helia_aot/cli/defines.py:663

preferred_memory_order: list[MemoryType] = Field(default_factory=list, description='Preferred memory order for allocations; refused with platform.facts catalog, where memory.constraints orders placement')

Placement preference for planner.

attribute

helia_aot/cli/defines.py:668

min_alignment: int | None = Field(None, description='Minimum alignment requirement in bytes; with platform.facts catalog, it replaces the derived floor')

Minimum alignment in bytes. With facts: catalog, it replaces the derived floor.

attribute

overlay

Python

helia_aot/cli/defines.py:673

overlay: Path | None = Field(None, description='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')

A helia-platforms overlay file that defines the catalog entry name names, so a custom platform gets that board’s transfer facts. A key in a configuration file is relative to that file, and the --platform.overlay flag to the working directory; ignored, with a warning, for a registered platform. With facts: catalog, it adds entries to the catalog.