Skip to content
neuralSPOT-X
User guide
HELIA HUB

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.

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: 1
board:
name: apollo510_evb
tier: evb
soc: apollo510
registered: true
sdk_provider: ambiqsuite
cpu:
core: cortex-m55
float_abi: hard
abi: thumbv8.1m-fpv5-hard
toolchains:
- arm-none-eabi-gcc
- armclang
- atfe

toolchains 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.

Terminal window
nsx board list
BOARD SOC TIER PROVIDER
apollo2_evb apollo2 evb ambiqsuite
apollo330mP_evb apollo330P evb ambiqsuite
apollo3_evb apollo3 evb ambiqsuite
apollo3_evb_cygnus apollo3 evb ambiqsuite
apollo3p_evb apollo3p evb ambiqsuite
apollo3p_evb_cygnus apollo3p evb ambiqsuite
apollo4l_blue_evb apollo4l evb ambiqsuite
apollo4l_evb apollo4l evb ambiqsuite
apollo4p_blue_kbr_evb apollo4p evb ambiqsuite
apollo4p_blue_kxr_evb apollo4p evb ambiqsuite
apollo4p_evb apollo4p evb ambiqsuite
apollo4p_evb_disp_shield_rev2 apollo4p evb ambiqsuite
apollo510_evb apollo510 evb ambiqsuite
apollo510b_evb apollo510b evb ambiqsuite
apollo510dL_evb apollo510L evb ambiqsuite
apollo5b_evb apollo5b evb ambiqsuite
atomiq110_fpga_turbo atomiq110 fpga ambiqsuite

nsx 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.

A freshly generated app declares one board:

target:
board: apollo510_evb

The 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_evb

default 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.

Terminal window
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.

  1. Add the board to targets.supported in nsx.yml. For a freshly generated app, replace its singular target block with the multi-target form above and remove the creation-time profile and profile_status keys so each board uses its own implicit profile.
  2. Run nsx lock so the new board gets its own resolved section in nsx.lock.
  3. 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.

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.

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:

Terminal window
nsx build demo
nsx run demo --fvp /path/to/FVP_Corstone_SSE-300_Ethos-U55

With 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:

Terminal window
nsx create-app demo320 --board corstone320_fvp_u85
nsx build demo320
fvp_root=/path/to/FVP_Corstone_SSE-320
model_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.

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.

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.