C2000 data is being written to auto-generated file *.i10

在使用C2000开发,生成Hex文件时,出现生成了2个文件的问题(一个hex文件,一个i10文件,需要将两个文件合并才是完整的烧写文件)。

从网上查找资料得知原因为:cmd文件中,将带有初始化代码段分别放到了PAGE0和PAGE1中。只需要将待初始化部分的代码段全部放到PAGE0中,再进行编译,就会只生成一个完整的HEX文件。

验证有效,记录一下!

转载网页查到资料说明如下:

If you use hex utility version 17.6.0.STS, then you are probably experiencing the bug described in this forum thread.

Otherwise, my best guess is that you have an initialized section on PAGE 1, and you shouldn't. Visit this article for background on memory pages. The hex utility only converts initialized sections, like .text and .data. Uninitialized sections, like the stack and .ebss, are ignored. Usually (bordering on always), a C2000 linker command file has initialized sections on PAGE 0, and uninitialized sections on PAGE 1. The hex utility always outputs data for PAGE 0 and PAGE 1 in different files. Usually, no output is needed for PAGE 1, and so only one file is output. If, for some reason, there are initialized sections on PAGE 0 and PAGE 1, then two files are output. If you have not specified a name for the second output file, then the hex utility automatically chooses an output file name and issues the warning diagnostic you show in your post.

Thanks and regards,

-George

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/761417/compiler-tms320f28377s-warning-data-is-being-written-to-auto-generated-file

把带有初始化部分的地址段 定义在cmd的page0 就只生成一个hex了。

 

  • 1
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值