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.

[参考译文] CCS/TMS320F28335:DSP2833x_usDelay.asm 文件与较新的 F28335.cmd 文件不兼容

Guru**** 2601915 points
Other Parts Discussed in Thread: C2000WARE

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/676363/ccs-tms320f28335-dsp2833x_usdelay-asm-file-not-compatible-with-newer-f28335-cmd-files

器件型号:TMS320F28335
主题中讨论的其他器件:C2000WARE

工具/软件:Code Composer Studio

C2000Ware 1.00.03.00中包含的 DSP2833x_usDelay.asm 文件具有以下代码行:

.sect "ramfuncs" 

在 CCS v7.4.0.00015提供的 F28335.cmd 文件中、"ramfuncs"部分被".TI.ramfunc"取代。

#ifdef __TI_Compiler_version__
#if __TI_Compiler_version__>=15009000
.TI.ramfunc:{}负载= FLASHD,
运行= RAML0、
load_start (_RamfuncsLoadStart)、
load_end (_RamfuncsLoadEnd)、
run_start (_RamfuncsRunStart)、
PAGE = 0
#else
ramfuncs :LOAD = FLASHD,
运行= RAML0、
load_start (_RamfuncsLoadStart)、
load_end (_RamfuncsLoadEnd)、
run_start (_RamfuncsRunStart)、
PAGE = 0
#endif
#endif 

这会在尝试链接代码时产生警告、因为在使用较新的编译器时未定义"ramfuncs":

"#10247-D null:创建不带 SECTIONS 规范的输出段"ramfuncs "

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

    接下来将该段更新为.TI.ramfunc、使其在您的项目中正常工作。 由于目前这些示例仍然是使用15.9之前的编译器构建和发布的、因此保留为"ramfuncs"

    此致
    Chris