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.

CCS5 编译生成 hex 文件

老话题了,对于 C2000,  CCS5 怎么编译时自动生成 hex 文件?

网上资料不少, 依葫芦画瓢, 结果找到的几个都是是错误的.

  • 原来他们都是 CCS. 却是 430 的编译器或 ARM 的编译器.

    对于 C2000 , 应该是hex2000.exe , 其他是设置差不多.

    (1)、进入工程配置选项,CCS Build --> Steps ;

    (2)、在 Post-build steps 的 Command 选项框中,输入如下命令(没有换行符):

    "${CG_TOOL_ROOT}/bin/hex2000" -i "${BuildArtifactFileName}" -o "${BuildArtifactFileBaseName}.hex" -order MS -romwidth 16

  • 可能将.out通过hex2000.cmd工作转换的方法使用比较多