Gang Flasher-ST CLI allow to programming STM32 MCUs with using only command line. This article show list of all supported commands by software and how to use it in examples.
List of supported commands
The following sections describe how to use the GangFlasher-ST from the command line. Available commands are shown in Figure 1.
...
Command description
There are two types of command arguments - required argument( always needed to perform any operation) and optional arguments needed olny in specific situation. Below is descrionp of all possible command arguments.
Required argument
-target_cfg <setup filepath>Path to setup file created in GUI that has the target parameters and other information. How to save config file is shown in Figure 2.(File ->Save Setup as…).
...
Optional Settings
-usb_cfg <usb setup filepath> : Path to USB configuration file created in GUI that specifies a fixed USB PORT/HUB allocation. With no usb assignment file, F_USBAutoScanAndAssign() will be called to auto assign boards for programming. How to save USB configuration is shown in Figure 3. (File ->Save USB Configuration as…).
...
-of <filename> : send output to file with path <filename>.
Example usage
Test connection:
GangFlasher-CLI.exe -target_cfg setup_file.cfg
...
target_cfg <setup filepath>: - path to setup file created in GUI that has the target parameters and other information;
cmd 2 -optionaly agrument during connect operation(default cmd value is 2 - F_Connect()).
...
Autoprogram
GangFlasher-CLI.exe -target_cfg setup_7targets.cfg -usb_cfg usb_loc.cfg -cmd 1
...