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.

[参考译文] CC2651R3:如何在非加载项目中从.hex 文件生成.bin

Guru**** 2386710 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1200396/cc2651r3-how-to-generate-bin-from-hex-file-in-non-oad-projects

器件型号:CC2651R3

大家好!

我希望从针对 OAD 的应用软件中的.hex 生成.bin 文件、但不能从 OAD 示例代码生成。

执行此操作时、我会遇到以下错误:

Makefile:250:目标"post-build"的食谱失败
回溯(最近的调用最后):
 文件"oad_image_tool.py"、第542行、在中
 文件"oad_image_tool.py"、第341行、在 main 中
 createAppStackBinfile 中的"oad_image_tool.py"第184行
 updateImgLen 中的文件"imgBinUtil.py"、第252行
 writeBytes 中的文件"imgBinUtil.py"、第105行
OverflowError:无法将负 int 转换为无符号
[47336]由于未处理异常、无法执行脚本'OAD_IMAGE_TOOL'!
gmake[2]:[post-build]错误1 (已忽略)

 以下是我使用和修改的 post-build 步骤:

${COM_TI_SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR}/tools/common/oad/oad_image_tool --详细 CCS ${PROJECT_LOC}7 -hex1 ${ConfigName}/${ProjName}.hex -o ${ConfigName}/${ProjName}

 

经过一些调试、我们发现可能必须将一些 OAD 映像标头相关性添加到非基于 OAD 的项目中。