Install on Linux
The Linux commands live on the main Install page, in the Linux tab of each step. Examples there are written for Debian, Ubuntu and Fedora; adapt the package manager for other distributions.
In short:
sudo apt updatesudo apt install python3 python3-pip cmake ninja-build gitcurl -LsSf https://astral.sh/uv/install.sh | sh# Arm GNU toolchain: extract the official download and put its bin/ on PATH# SEGGER J-Link: install the .deb or .rpm packuv tool install neuralspotxnsx doctorArm GNU toolchain from the package manager
Section titled “Arm GNU toolchain from the package manager”Faster to install than the official download, but often several releases behind:
# Debian and Ubuntusudo apt install gcc-arm-none-eabi
# Fedorasudo dnf install arm-none-eabi-gcc-cs arm-none-eabi-newlibOptional toolchains
Section titled “Optional toolchains”GCC builds every packaged example. Both alternates below are optional, and nsx doctor
reports them only when it finds them.
Arm Compiler for Embedded (armclang)
Section titled “Arm Compiler for Embedded (armclang)”A licensed commercial compiler. Install it from Arm, make sure armclang is on your
PATH, and NSX picks it up. No environment variable is needed. Select it per command with
--toolchain armclang.
Arm Toolchain for Embedded (ATfE)
Section titled “Arm Toolchain for Embedded (ATfE)”ATfE is Arm’s LLVM based bare-metal toolchain (clang, lld and picolibc with a newlib overlay). NSX treats it as experimental.
-
Download the Linux build from the Arm Toolchain for Embedded releases.
-
Extract it somewhere stable, for example
/opt/ATfE-22.1.0. -
Extract the matching
ATfE-newlib-overlayon top of that same directory. NSX andnsx doctorboth need the bundlednewlib.cfg. -
Point
ATFE_ROOTat the install directory. ATfE does not need to be onPATH, because NSX invokes its binaries by absolute path.Terminal window export ATFE_ROOT="/opt/ATfE-22.1.0" # add to ~/.bashrc
Select it per command with --toolchain atfe.
Check your environment with nsx doctor.