Auto Program
Auto Program feature allows you to execute a sequence of commands defined by the user. This option allows you to define your own command sequence for MCU firmware testing and final production programming.
Auto Program Setup
You can create a list of commands using a dedicated window in the GUI. This option can be found under Setup->Auto Program
The window offers the following functions:
support for all commands used to communicate with the ROM bootloader and Flashloader,
selecting, configuring and adding a command to the auto program sequence,
editing commands from the list,
deleting commands from the list,
loading the command list from the *.bat file created in MCUXpresso secure provisioning
Selecting the configuration and adding the command to the sequence
To add a command, first select it from the Command dropdown:
Then the list of arguments and their type will adjust:
After entering the appropriate values, you can add the command to the list:
Selecting the configuration and adding the command to the sequence
The list of commands can also be loaded from a *.bat file created in MCUXpresso secure provisioning containing sequences of commands executed in sdphost and blhost.
By selecting "Browse" and pointing to the file "write_image_win.bat" all commands from the file will be loaded and saved with the same name in the file ".cfg"
Commands set
The set of supported commands can be found in the documentation for blhost and sdphost.
https://www.nxp.com/docs/en/user-guide/MCUBLHOSTUG.pdf
https://spsdk.readthedocs.io/en/latest/apps/sdphost.html
The command format used in Gangflasher-N inserts from the command name and its arguments. The values used for USB connection are omitted.
Example:
get-property 10
set-property 10 0
flash-erase-region 0xa000 1024
...
read-memory 0x3c0 32 myConfigData.dat