Create your first app
nsx create-app writes a standalone app directory and, unless you tell it not to, clones
the starter modules that board needs into it. Nothing else on your machine changes.
Illustrative output for an Apollo510 EVB target. Paths, clone output and ordering vary by host and cache state. The CLI prints your own absolute path.
This first app blinks a board LED without an RTOS or SWO viewer. It requires a BSP
LED table; for FPGA targets or boards without LEDs, use --template default instead.
--board defaults to apollo510_evb, so you can leave it off for that target. Run
nsx board list for the 17 packaged boards, or read the
board matrix for each board’s SoC, tier, provider and
declared toolchains.
What it wrote
Section titled “What it wrote”blinky_ap510/├── .gitignore├── CMakeLists.txt├── README.md├── boards/│ └── apollo510_evb/├── cmake/│ ├── nsx/│ └── presets/├── modules/├── nsx.yml└── src/ └── main.c| Path | What it is |
|---|---|
nsx.yml |
The app manifest: board and SoC target, toolchain, release channel, starter profile and the module list. This is the file you edit. |
CMakeLists.txt |
An ordinary top-level CMake file. It declares cmake_minimum_required(VERSION 3.24), includes the packaged NSX support, and links your executable against nsx::board and nsx::runtime_core. |
src/main.c |
The generated application. |
cmake/nsx/ |
Packaged CMake support: module wiring, the three toolchain files, the SEGGER flash and reset templates. Regenerated by NSX rather than hand-edited. |
cmake/presets/ |
CMakePresets.json, so editors and IDEs can open the project directly. |
boards/apollo510_evb/ |
The vendored board module: board.yaml, plus the board, BSP, SoC, memory and debug CMake fragments. |
modules/ |
Where vendored modules land. After a default create-app it holds the starter set, here nsx-ambiq-sdk and nsx-pmu-armv8m. Gitignored. |
README.md |
A short readme for the generated app, including the build and flash sequence. |
There is no nsx.lock and no build/ yet. Both appear when you run
nsx configure.
The generated src/main.c uses the BSP LED table and toggles its first LED every
500 ms. The AmbiqSuite LED driver preserves the board’s polarity and drive mode.
/* SPDX-License-Identifier: BSD-3-Clause *//* Copyright (c) 2026, Ambiq */#include "nsx_core.h"#include "am_bsp.h"#include "am_devices_led.h"
#if !defined(AM_BSP_NUM_LEDS) || AM_BSP_NUM_LEDS < 1#error "Blinky requires a BSP LED table; use --template default for boards without LEDs."#else
int main(void){ nsx_core_config_t cfg = { .api = &nsx_core_V1_0_0, }; (void)nsx_core_init(&cfg);
/* Use the BSP pin, polarity and drive mode for its first LED only. */ am_devices_led_init(&am_bsp_psLEDs[0]); am_devices_led_off(am_bsp_psLEDs, 0);
while (1) { am_devices_led_toggle(am_bsp_psLEDs, 0); nsx_delay_us(500000); }}
#endifThe LED’s physical label varies by board. Watch for half a second on, half a
second off after flashing; this app does not print to SWO. Boards without
AM_BSP_NUM_LEDS > 0 receive a build error explaining the requirement.
Choosing a template
Section titled “Choosing a template”--template picks the scaffold flavor.
| Template | What you get |
|---|---|
blinky |
The bare-metal LED app above; requires a BSP LED table. |
default |
A SWO printf loop; used when --template is omitted. |
npu-tflm |
TFLite Micro inference on the Ethos-U85 NPU. It seeds nsx-helia-rt and nsx-npu, turns on heliaRT’s Ethos-U dispatch, and ships a Vela model harness plus a tools/tflite_to_header.py converter. The generated README covers the offline Vela compilation step. |
The NPU template targets boards whose SoC NSX registers as carrying an Ethos-U85 NPU,
which today is atomiq110_fpga_turbo:
nsx create-app pd_npu --board atomiq110_fpga_turbo --template npu-tflmScaffolding without the starter modules
Section titled “Scaffolding without the starter modules”--no-bootstrap writes the app but skips the clones, which is what you want when you plan
to pick modules yourself or when you have no network. The app then has no boards/
directory and an empty modules/, and nsx.yml records baseline: none. NSX tells you
what to do next:
Created app 'my_app' at: /home/you/my_appStarter modules were not bootstrapped (--no-bootstrap).Next steps: 1) cd /home/you/my_app 2) Run `nsx module list --app-dir .` 3) Add modules with `nsx module add <module> --app-dir .`Browse what you can add in the module catalog.
The remaining options are --soc, which overrides the SoC that the board would otherwise
imply, and --force, which allows writing into a directory that is not empty. Both are
documented on the nsx create-app reference
page.
Configure and build the app you just created.