A unified command-line tool for flashing disting NT firmware. Replaces the need for Python/SPSDK installation.
- Flash from local ZIP firmware packages
- Download and flash specific firmware versions
- Download and flash the latest firmware
- Cross-platform: Linux, macOS, Windows
Linux:
sudo apt-get install libudev-devmacOS:
- Xcode Command Line Tools:
xcode-select --install
Windows (MinGW-w64):
- Install MinGW-w64 from https://www.mingw-w64.org/
- Ensure
gccandmakeare in your PATH
# Clone with submodules
git clone --recursive https://github.com/thorinside/nt-flash.git
cd nt-flash
# Build
make
# Or to build on Windows with MinGW
mingw32-makeThe build produces a single binary: nt-flash (or nt-flash.exe on Windows).
Before flashing, enable bootloader mode on the disting NT:
Menu > Misc > Enter bootloader mode...
nt-flash /path/to/distingNT_1.12.0.zipnt-flash --version 1.12.0nt-flash --latestnt-flash --url https://example.com/firmware.zipnt-flash --list| Option | Description |
|---|---|
-v, --verbose |
Show detailed output |
-n, --dry-run |
Validate without flashing |
-h, --help |
Show help |
The tool expects ZIP files containing:
distingNT_X.Y.Z.zip
├── MANIFEST.json
├── bootable_images/
│ ├── unsigned_MIMXRT1060_flashloader.bin
│ └── disting_NT.bin
└── ...
Official firmware packages from Expert Sleepers are fully supported.
The flash process involves two stages:
- SDP Mode (USB 0x1FC9:0x0135): Upload flashloader to RAM and execute it
- Bootloader Mode (USB 0x15A2:0x0073): Configure flash, erase, write firmware, reset
- Ensure disting NT is in bootloader mode
- On Linux, you may need udev rules. Create
/etc/udev/rules.d/99-disting.rules:Then:SUBSYSTEM=="usb", ATTR{idVendor}=="1fc9", ATTR{idProduct}=="0135", MODE="0666" SUBSYSTEM=="usb", ATTR{idVendor}=="15a2", ATTR{idProduct}=="0073", MODE="0666"sudo udevadm control --reload-rules
Run with sudo or set up udev rules as above.
This tool incorporates:
- BLFWK from NXP (BSD-3-Clause)
- miniz (Public Domain)
- cJSON (MIT)
- Expert Sleepers for the disting NT
- NXP Semiconductors for BLFWK/SPSDK
- apexrtos/nxp_blhost_sdphost for the portable build setup