Read Memory
Reading to view the contents of the external non-volatile memory is possible in 3 ways:
with the "Read" button in the GUI, after which the read content appears in the "Data Viewer" window
using the autoprogram button, where the read data will be written to the indicated binary file.
using the CLI
All reading operations require an initial MCU configuration consisting of:
loading the flashloader
and configuring the memory
If these steps have been performed, they do not need to be repeated if the MCU has not been reset or restarted.
Gangflasher-N GUI
Read via the read button
To read and display the content, follow these steps:
load the flashloader with the "Load Flashloader" button
define the configuration word in the Setup->Memory Configuration Window
configure the memory using the “Configure Memory" button
define the start and end address of the reading operation in the "Memory Options" window
finally, press the "Read" button
Read via autoprogram button
The autoprogram button executes a sequence prepared by the user in the Setup-> Autoprogram window. The command sequence must be properly prepared to load the flashloader and configure the memory before the read command. Then in the read command you need to specify the start address, size, file path and memory id.
Example content of an autoprogram file:
reset
load-image "C:\Program Files\Elprotronic\GangFlasher-N\targets\MIMXRT1176\ivt flashloader.bin"
fill-memory 0x2000 0x00000004 0xC0000007 ""
configure-memory 0x09 0x2000
read-memory 0x30000000 0x00001000 "file.bin" 0x09
reset
Gangflasher-N-CLI
Reading a file from the command line is only possible up to a file. The sequence of steps to be followed is like that of a GUI, as you have to load the flashloader and configure the memory. This can be done by loading CLI commands or by using the autoprogram command list file and the autoprogram command. The memory configuration values and the range of addresses to read can be found in the configuration file generated by the GUI. The path to the file can be indicated when calling commands.
Manual Sequence
Load Flashloader
GangFlasher-N-CLI.exe -target_cfg C:\Users\Public\lastused_gfnxp_prog_setup.cfg -usb_cfg C:\Users\Public\lastused_gfnxp_usb_setup.cfg -cmd 3
Memory Config:
GangFlasher-N-CLI.exe -target_cfg C:\Users\Public\lastused_gfnxp_prog_setup.cfg -usb_cfg C:\Users\Public\lastused_gfnxp_usb_setup.cfg -cmd 4
Read:
GangFlasher-N-CLI.exe -target_cfg C:\Users\Public\lastused_gfnxp_prog_setup.cfg -usb_cfg C:\Users\Public\lastused_gfnxp_usb_setup.cfg -cmd 9
Autoprogram
GangFlasher-N-CLI.exe -target_cfg C:\Users\Public\lastused_gfnxp_prog_setup.cfg -usb_cfg C:\Users\Public\lastused_gfnxp_usb_setup.cfg -cmd 1