GR5xxx_console.exe
Follow the steps below to run GR5xxx_console.exe:
- Open the Command Prompt window from the Start menu or by entering cmd in the Run window.
- Navigate to the GProgrammer installation directory by using cd command.
- Type the GR5xxx_console.exe command to complete corresponding operations. The details about the command are shown in Table 8.
Command | Functional Description | Command Format and Parameter Description | Remarks |
---|---|---|---|
program | Programs firmware files to internal SoC flash memories. |
program <firmware file path> <run immediately:y | n> <flash start address(hex)> <flash size> <product type> Parameter description:
|
The following parameters apply to all commands:
|
erase | Erases flash memory data within an SoC based on a specified address range. |
erase <start address<hex>> <end address<hex>><force erase when conflict with firmware/bootinfo:y | n> <flash start address(hex)> <flash size> <product type> Parameter description:
|
|
eraseall | Erases all flash memory data within an SoC. | eraseall <product type> | |
download | Downloads data files to internal SoC flash memories. |
download <data file path> <start address<(hex)>> <force download when conflict with firmware/bootinfo:y | n> <flash start address(hex)> <flash size> <product type> Parameter description:
|
|
writeefuse | Writes Encrypt Key Info and Mode Control files to eFuse. |
writeefuse <Encrypt Key Info file Path> <Mode Control file Path> <product type> Parameter description:
|
|
reset | Resets the GR551x SoC. | reset <product type> | |
generate | Converts firmware files into BIN files that can be used by the SoC | generate <input firmware file path> <output firmware file path>
<flash start address(hex)> <flash size> <product type>
Parameter description:
|
|
help | Displays all help information. | help |
Take GR551x SoC as an example. The code below shows how to use the program command to download a firmware file to SoC flash memories and run the firmware immediately after downloading. Command line:
GR5xxx_console.exe program "D:/test/test_fw.bin" y "0x01000000" 1024 0
- "D:/test/test_fw.bin": It indicates the path for the to-be-downloaded firmware BIN file
- "0x01000000" 1024 0: It represents the start address in Flash to which the firmware is downloaded (0x01000000), the Flash size (1024 KB), and SoC model (GR551x) respectively.
The downloading progress is displayed in real time during executing the program command.
You cannot operate GR5xxx_console.exe while GProgrammer is running.