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.

[参考译文] TMS320F28062:通过调用 TI&#39官方工具 tiobj2bin.bat 生成的 bin 文件显示了大量"00"

Guru**** 2535150 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1066478/tms320f28062-the-bin-file-generated-by-calling-ti-s-official-tool-tiobj2bin-bat-shows-a-large-segment-of-00

部件号:TMS320F28062

尊敬的团队:

使用 CCS10的客户生成的英特尔十六进制文件仅为118K,但生成的 bin 文件为7962K,.out 文件为621K。

测试后发现,bin 文件的前面有一大部分“00”,而后面有一小部分正常程序代码。 删除上一节中的“00”后,后一节的正常程序代码大小为49K。 使用 Bootloader 将其刻录到芯片中,它可以正常运行,因此可以验证大小为7913K 的“00”分段实际上没有用处。

此外,上面描述的是通过应用程序部分代码生成 bin 文件的问题(位于 Flash 的 B ~ H 部分)。 使用相同方法生成 Bootloader 项目(位于 Flash 的 A 部分)的客户不会遇到此问题。

为什么会有这样一个大型的“00”计划? 下图是应用程序项目生成的 bin 文件的内容:

此致