GR5xxx_console.exe
命令行程序GR5xxx_console.exe的使用步骤如下:
- 选择,或者在运行对话框中输入cmd再回车,打开命令提示符窗口。
- 使用cd命令进入GProgrammer安装目录。
- 输入GR5xxx_console.exe command命令行完成相应操作。关于command具体描述,参见表 8。
| command | 功能描述 | 命令格式及参数说明 | 备注 |
|---|---|---|---|
| program | 下载固件文件至芯片内部Flash |
program <firmware file path> <run immediately:y | n> <flash start address(hex)> <flash size> <product type> 参数说明:
|
命令中相同的参数,说明如下:
|
| erase | 擦除指定地址范围内的芯片内部Flash数据 |
erase <start address<hex>> <end address<hex>><force erase when conflict with firmware/bootinfo:y | n> <flash start address(hex)> <flash size> <product type> 参数说明:
|
|
| eraseall | 擦除全部芯片内部Flash数据 | eraseall <product type> | |
| download | 下载数据文件至芯片内部Flash |
download <data file path> <start address<hex>><force download when conflict with firmware/bootinfo:y | n> <flash start address(hex)> <flash size> <product type> 参数说明:
|
|
| writeefuse | 将Encrypt Key Info和Mode Control文件写入eFuse |
writeefuse <Encrypt Key Info file Path> <Mode Control file Path> <product type> 参数说明:
|
|
| reset | 复位芯片系统 | reset <product type> | |
| generate | 转换固件文件为芯片可用.bin格式文件 | generate <input firmware file path> <output firmware file path>
<flash start address(hex)> <flash size> <product type>
参数说明:
|
|
| help | 查看所有命令帮助信息 | help |
例如,使用program命令下载一个固件文件到GR551x系列芯片,并设置下载完成后立即运行该固件,输入的命令为:
GR5xxx_console.exe program "D:/test/test_fw.bin" y "0x01000000" 1024 0
- "D:/test/test_fw.bin":待下载的目标固件.bin所在路径。
- "0x01000000" 1024 0:依次为待烧录目标固件的Flash起始地址为0x01000000、Flash大小为1024 KB、芯片系列为GR551x。
program命令执行过程中会实时显示下载进度。
GProgrammer命令行程序GR5xxx_console.exe和界面程序无法同时使用。