CN / EN
文档反馈
感谢关注汇顶文档,期待您的宝贵建议!
感谢您的反馈,祝您愉快!

GR5xxx_console.exe

命令行程序GR5xxx_console.exe的使用步骤如下:

  1. 选择开始菜单 > 命令提示符,或者在运行对话框中输入cmd再回车,打开命令提示符窗口。
  2. 使用cd命令进入GProgrammer安装目录。
  3. 输入GR5xxx_console.exe command命令行完成相应操作。关于command具体描述,参见表 8
表 8 GR5xxx_console.exe支持的命令
command 功能描述 命令格式及参数说明 备注
program 下载固件文件至芯片内部Flash

program <firmware file path> <run immediately:y | n> <flash start address(hex)> <flash size> <product type>

参数说明:

  • <firmware file path>:待下载固件文件路径
  • <run immediately:y | n>:下载完成后是否立即运行固件
​​​命令中相同的参数,说明如下:
  • <flash start address(hex)>:Flash起始地址,可输入值及含义如下:
    • 0x01000000:GR551x Flash起始地址
  • <flash size>:Flash大小(单位KB),即使用的芯片型号Flash大小,可查看图 6Flash列。

    说明:

    若使用的芯片Flash为0 KB,则写入使用的外挂Flash大小。

  • <product type>:芯片系列,可输入值及含义如下:
    • 0:GR551x系列芯片
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>

参数说明:

  • <start address<hex>>:擦除区域的起始地址(16进制)
  • <end address<hex>>:擦除区域的结束地址(16进制)
  • <force erase when conflict with firmware/bootinfo:y | n>:当和固件、bootinfo区域冲突之后,是否强制擦除
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>

参数说明:

  • <data file path>:待下载数据文件路径
  • <start address<hex>>:下载区域的起始地址(16进制)
  • <force download when conflict with firmware/bootinfo:y | n>:当和固件、bootinfo区域冲突之后,是否强制下载
writeefuse 将Encrypt Key Info和Mode Control文件写入eFuse

writeefuse <Encrypt Key Info file Path> <Mode Control file Path> <product type>

参数说明:

  • <Encrypt Key Info file Path>:Encrypt Key Info文件路径
  • <Mode Control file Path>:Mode Control文件路径
reset 复位芯片系统 reset <product type>
generate 转换固件文件为芯片可用.bin格式文件 generate <input firmware file path> <output firmware file path> <flash start address(hex)> <flash size> <product type>

参数说明:

  • <input firmware file path>:输入文件路径(IDE工具编译所生成的.hex/.bin文件)
  • <output firmware file path>:输出文件路径
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和界面程序无法同时使用。

扫描关注

打开微信,使用“扫一扫”即可关注。