Windows CLI
Prerequisites
License activation using key
Layout
GangFlasher-N-CLI.exe -activate XXXX-XXXX-XXXX-XXXX
Example:
GangFlasher-N-CLI.exe -activate J38G-4YSC-9ANJ-8XGA
Configuration files
Configuration files should be specified with each command. Gangflasher-N requires two configuration files:
The first relates to the settings of the target, i.e. the MCU model and any settings related to memory and files.
The second configuration file contains the USB paths of the connected targets to the host computer.
These files are created in the Gangflasher GUI and saved to the default location:
C:\Users\Public
Feeding the configuration files to Ganflaher-N-CLI
Layout:
GangFlasher-N-CLI.exe -target_cfg config_file_path.cfg -usb_cfg usb_cfg_file_path.cfg
Example with default path:
Configuration file layout
Configuration File | Configuration file content
Connection checking
Checking the connection to the selected target (like any command) requires a configuration file and a USB path file. The configuration file is created automatically when the GUI application is opened and closed. The USB path file, on the other hand, is created after the USB scan, which is described here:
An example of a command to test a connection is given below:
-target_cfg
path to the configuration file
-usb_cfg
USB path file path
-cmd 2
opcode of the command to test the connection
The command response provides information on whether the connection to the target has been established and whether the flashloader is running.
Load Flashloader
The flashloader is the firmware that provides the connection between the host computer and the memories attached to the IMXRT devices. Without the flashloader running, commands that operate on the memory will not work.
Reset
Reset means software reset and only works when Flashloader is running, the purpose of the reset is for IMXRT to return to Boot ROM.