This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C2000 HEX 文件生成

Other Parts Discussed in Thread: CCSTUDIO

这里分别介绍在CCS3.3下和CCSv5下生成hex的方法。

CCS3.3生成HEX

  1. 找到CCS3.3的安装目录。在C2000目录找到一个叫hex2000.exe的可执行文件。我是在下面这个目录下找到的,供您参考。C:\CCStudio_v3.3PLA\C2000\cgtools\bin
  2. 把要转的xxx.out文件拷到这个目录下。
  3. 在电脑上进入     start->run->cmd进入命令行窗口。用DOS命令进入hex2000.exe的安装目录。

hex2000 -romwidth 16 -memwidth 16 -i -o xxx.hex xxx.out就会在当前目录下生成一个叫xxx.hex的文件。

CCSv5生成HEX

  1. 在IDE中选择 菜单   project->propertise打开下面界面。
  2. 在左侧选中CCS Build 在右侧的选项卡中点击Steps
  3. 在最下方Apply Predefined Step选中 Create flash image: Intel-HEX
  4. 在编译的时候会自动生成一个xxx.hex文件。