Boards and targets
A board is the concrete thing NSX builds for. Picking one fixes the SoC, the CPU and ABI flags, the startup and linker behavior, the flash and SWO settings, and which SDK provider the app resolves against.
What a board definition carries
Section titled “What a board definition carries”Each packaged board is a directory under the NSX package holding a board.yaml descriptor
plus the CMake fragments that implement it. The descriptor for apollo510_evb is:
schema_version: 1board: name: apollo510_evb tier: evb soc: apollo510 registered: truesdk_provider: ambiqsuitecpu: core: cortex-m55 float_abi: hard abi: thumbv8.1m-fpv5-hardtoolchains: - arm-none-eabi-gcc - armclang - atfetoolchains is the set the board declares it can be built with. tier distinguishes an
evaluation board from an FPGA platform. Every field is documented on the generated
board.yaml reference.
Alongside board.yaml the board ships board.cmake, bsp.cmake, soc.cmake,
memory.cmake and debug.cmake. Those are what nsx configure vendors into
boards/<board>/ in your app, and between them they select the startup file and the
linker script for the target. See
Startup and linker.
The packaged boards
Section titled “The packaged boards”nsx board listBOARD SOC TIER PROVIDERapollo2_evb apollo2 evb ambiqsuiteapollo330mP_evb apollo330P evb ambiqsuiteapollo3_evb apollo3 evb ambiqsuiteapollo3_evb_cygnus apollo3 evb ambiqsuiteapollo3p_evb apollo3p evb ambiqsuiteapollo3p_evb_cygnus apollo3p evb ambiqsuiteapollo4l_blue_evb apollo4l evb ambiqsuiteapollo4l_evb apollo4l evb ambiqsuiteapollo4p_blue_kbr_evb apollo4p evb ambiqsuiteapollo4p_blue_kxr_evb apollo4p evb ambiqsuiteapollo4p_evb apollo4p evb ambiqsuiteapollo4p_evb_disp_shield_rev2 apollo4p evb ambiqsuiteapollo510_evb apollo510 evb ambiqsuiteapollo510b_evb apollo510b evb ambiqsuiteapollo510dL_evb apollo510L evb ambiqsuiteapollo5b_evb apollo5b evb ambiqsuiteatomiq110_fpga_turbo atomiq110 fpga ambiqsuitensx board list --json adds the CPU core, float ABI, ABI string and declared toolchains
for each entry, and nsx board show <board> prints one board in full. The
board matrix is the same data rendered as a page.
How an app declares its target
Section titled “How an app declares its target”A freshly generated app declares one board:
target: board: apollo510_evbThe manifest also accepts a multi-target form, which is what the packaged examples use:
targets: default: apollo510_evb supported: - apollo510_evb - apollo510b_evb - apollo330mP_evb - apollo510dL_evb - apollo4p_blue_kxr_evbdefault is the board used when you do not say otherwise. supported is the set that
--board will accept. Every field is on the generated
nsx.yml reference.
Selecting a target for one run
Section titled “Selecting a target for one run”nsx build --board apollo4p_blue_kxr_evb--board works on configure, build, flash, view and clean. It does not change
nsx.yml; it selects which declared target this invocation acts on.
Each board gets its own build/<board>/ directory, so switching back and forth does not
throw away the other target’s build tree. nsx.lock likewise records one resolved module
set per board, because two boards on different SoC families can legitimately resolve
different modules.
Adding a second target
Section titled “Adding a second target”- Add the board to
targets.supportedinnsx.yml. For a freshly generated app, replace its singulartargetblock with the multi-target form above and remove the creation-timeprofileandprofile_statuskeys so each board uses its own implicit profile. - Run
nsx lockso the new board gets its own resolved section innsx.lock. - Build it with
nsx build --board <new-board>.
If the new board’s closure cannot be satisfied, the lock step is where you find out, not the build. Source that needs to differ per family belongs in a per-family overlay rather than behind preprocessor conditionals; see Multi-target and portability.
Existing generated apps
Section titled “Existing generated apps”App CMake targets should link nsx::board, the alias for the currently selected board.
Older default and npu-tflm scaffolds instead embedded the creation-time board, for
example nsx::board_apollo510_evb. Before switching boards in one of those apps, replace
that entry in target_link_libraries(...) with nsx::board and run nsx configure
for the selected board. NSX does not rewrite your app-owned CMakeLists.txt on upgrade.
This changes board selection, not hardware compatibility: app sources and modules must
still support the selected target. In particular, the NPU template requires an
atomiq110 board.
Arm Corstone virtual target
Section titled “Arm Corstone virtual target”nsx create-app demo --board corstone300_fvp_u55 creates a Cortex-M55 GCC app.
Build the app, then run its ELF with Arm’s separately installed model:
nsx build demonsx run demo --fvp /path/to/FVP_Corstone_SSE-300_Ethos-U55With the model on PATH, nsx run demo is enough. Use --elf for another
built executable in the selected build directory and --timeout to change
the 30-second model limit. The CLI prints guest UART output on completion and
returns 0 for guest success, 1 for a nonzero guest exit, or 2 for configuration,
model, timeout, or completion-record errors. Each invocation retains its own
uart.log (when produced) and model.log under <build-dir>/nsx-run/.
The model can exit successfully after a guest assertion failure, so NSX
checks the firmware’s signed exit code and its terminal UART marker.
The Python entry point is run_app(AppRunRequest(...)).
For Cortex-M85 and Ethos-U85 use --board corstone320_fvp_u85 and Arm’s
FVP_Corstone_SSE-320. On Linux, add the model’s bundled libraries to the loader path.
For example, with Arm’s x86-64 Corstone-320 11.27 distribution:
nsx create-app demo320 --board corstone320_fvp_u85nsx build demo320fvp_root=/path/to/FVP_Corstone_SSE-320model_dir="$fvp_root/models/Linux64_GCC-9.3"LD_LIBRARY_PATH="$fvp_root/python/lib:$fvp_root/fmtplib:$model_dir${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" \ nsx run demo320 --fvp "$model_dir/FVP_Corstone_SSE-320"Run NSX with its normal host Python environment. For Cortex-M85 with U55 choose corstone310_fvp_u55 and FVP_Corstone_SSE-310.
All three boards support GCC, UART and an optional
nsx-corstone-npu module. The runner selects 32 MACs for U55 and 256 for U85.
Use a Vela payload compiled for the selected NPU and MAC count. The
provider KWS fixture
exercises one Shared_Sram inference.
For integer kernels on the Corstone-320 CPU, run
nsx module add nsx-corstone-cmsis-nn --app-dir demo320 and link the app
to nsx::cmsis_nn. This entry point builds the kernels from source with Arm GNU.
Boards NSX does not package
Section titled “Boards NSX does not package”nsx board create scaffolds a board definition you own, which you then fill in with the
same fragments a packaged board ships. The practical constraint is that the SoC, the
startup path and the SDK provider have to line up before an app will build against it.
Add a board covers the work and the
order to do it in.
Compatibility is declared
Section titled “Compatibility is declared”Every statement a board or a module makes about what it works with comes from a manifest
its author wrote. A board declaring atfe in toolchains, or a module declaring a board
in compatibility.boards, is a declaration of intent, not a record that the combination
was run on hardware. Treat the matrix as the starting point for a bring-up, not as
evidence of one.