Skip to content
neuralSPOT-X
Getting started
HELIA HUB

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.

nsx create-app
$ nsx create-app blinky_ap510 --board apollo510_evb --template blinky Created app 'blinky_ap510' at: /home/you/blinky_ap510 Next steps: 1) cd /home/you/blinky_ap510 2) Run `nsx configure --app-dir .` 3) Run `nsx build --app-dir .`, `nsx flash --app-dir .`, or `nsx view --app-dir .` Cloning into '/home/you/blinky_ap510/modules/nsx-ambiq-sdk'... Cloning into '/home/you/blinky_ap510/modules/nsx-pmu-armv8m'...

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.

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);
}
}
#endif

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

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

Terminal window
nsx create-app pd_npu --board atomiq110_fpga_turbo --template npu-tflm

--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_app
Starter 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.