nsx flash¶
Builds and flashes a generated NSX app.
Syntax¶
nsx flash [--app-dir APP_DIR] [--board BOARD]
[--build-dir BUILD_DIR] [--toolchain TOOLCHAIN]
[--target TARGET] [--probe-serial PROBE_SERIAL] [--jobs JOBS]
[--update] [--frozen] [--timeout SECONDS] [app]
Main Arguments¶
--app-dir: app directory containingnsx.yml; when omitted, NSX searches upward from the current directoryapp: optional app name or directory; overrides--app-dirand is resolved under the current directory andexamples/--board: select a board from the app's supported targets instead oftargets.default--build-dir: build directory override--toolchain: toolchain override (gcc,armclang,atfe). Defaults tonsx.yml→arm-none-eabi-gcc--target: optional executable target to flash; omitted selects the app's primary executable--probe-serial: select one J-Link explicitly when multiple probes are attached--jobs: parallel build jobs--update: re-resolve module constraints to upstream tips and re-vendor before flashing--frozen: when configure is needed, reject manifest, lock, or vendored-module drift; explicit probe selection still forces configure--timeout: wall-clock budget per subprocess; a timeout terminates the process group
Example¶
cd <app-dir>
nsx flash
# Flash another executable finalized by the same NSX/CMake project.
nsx flash --target hpx_profiler_power
Notes¶
- discovers J-Link Commander from
JLINK_PATH,PATH, or the standard SEGGER install locations on Linux, macOS, and Windows; the resolved path is passed into CMake so discovery is consistent across NSX operations - uses the board-defined flash settings
- requires the selected target's
.binand generatedjlink/<target>/flash_cmds.jlinkrecipe - rejects a successful process exit unless J-Link reports an actual flash-download operation
- run
nsx commands --jsonfor the authoritative machine-readable argument schema