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.

DSP生成hex文件、生成bin文件方法

Other Parts Discussed in Thread: CONTROLSUITE

DSP生成hex文件、生成bin文件方法

平台:win7 + ccs5.5

目标板:C2000的28335

ccs5.5编译只能生成hex文件。要想获得bin文件的话。

不需要复杂的hex2000等等的操作。

只需要使用TI提供的mkhex4bin.exe

C:\ti\ccsv5\utils\tiobj2bin

具体步骤:

1、修改tiobj2bin.bat脚本

此脚本完成指定平台的hex到bin文件格式的转换。在ControlSuite的安装目录C:\ti\ccsv5\utils\tiobj2bin下。

原始文件是支持470平台的,修改为C2000,平台把hex470 改为hex2000,ofd470改为ofd2000,诸如此法。

2、添加处理命令

(1)点击“Project”->"Properties"进入设置

(2)点击“Build”->"Steps",在Post_build steps的Command里加入如下指令。

"${CCE_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin"  "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/armofd" "${CG_TOOL_ROOT}/bin/armhex"  "${CCE_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin" 

Note:点击Apply Predefined Step,选择“Create flash image:Intel-Hex”,可以生成hex文件。