PlatformArgs
PythonPlatform configuration for the conversion process.
PlatformArgs()Platform configuration for the conversion process.
name
Pythonname: 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.
cm55_during_npu
Pythoncm55_during_npu: Cm55DuringNpu = Field(Cm55DuringNpu.UNDECLARED, description='Application guarantee for the CM55 during Atomiq NPU work, through driver completion.')facts
Pythonfacts: 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.
boot
Pythonboot: 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.
addons
Pythonaddons: 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.
reserve
Pythonreserve: 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.
cpu
Pythoncpu: 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.
speeds
Pythonspeeds: 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.
memories
Pythonmemories: 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.
capabilities
Pythoncapabilities: 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.
preferred_memory_order
Pythonpreferred_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.
min_alignment
Pythonmin_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.
overlay
Pythonoverlay: 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.