TI中文支持网
TI专业的中文技术问题搜集分享网站

请问Code Composer for C33系列的linker对编译生成的代码大小有限制吗?

大家好:

当前,由于项目的原因,我们正在用一个很老的TI的DSP芯片,用的CCS的版本是v4.10.37,然后遇到了这样一个问题。

在功能升级之前,我们编译生成的代码大概7M,但是升级之后大小变成了9M多,然后我比较了升级前后的.dat文件,发现在升级后编译出来的.dat文件里面有两个代码段,就像下面这样:

$A840000,
00 94 60 C0 00 98 60 C0 00 9C 60 C0 00 A0 60 C0 01 61 60 C0 00 A8 60 C0 
00 00 00 00 00 00 00 00 00 AC 60 C0 00 BA 60 C0 00 BE 60 C0 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00

$A1000000,
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

ETX

但是在升级之前编译出来的.dat文件里只有一个代码段:

$A840000,
00 94 60 C0 00 98 60 C0 00 9C 60 C0 00 A0 60 C0 01 61 60 C0 00 A8 60 C0 
00 00 00 00 00 00 00 00 00 AC 60 C0 00 BA 60 C0 00 BE 60 C0 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00

ETX

我想知道我们用的lnk30对生成代码的大小有什么限制吗?因为当前我们项目所用的download工具只支持download一个代码段到仪器里,但是因为新生成的.dat文件有两个段,所以download失败。

有什么办法避免这中情况吗?

谢谢大家!

mangui zhang:

看着升级之后生成的.dat有问题啊    后面一段都是0   应该没什么意义

再说.dat有固定的格式    你看看最前面几个字就代表了整个的长度   

赞(0)
未经允许不得转载:TI中文支持网 » 请问Code Composer for C33系列的linker对编译生成的代码大小有限制吗?
分享到: 更多 (0)