Other Parts Discussed in Thread: C2000WARE
主题中讨论的其他器件:C2000WARE
工具/软件:TI C/C++编译器
您好!
我已经创建了一些定制运行时间库并使用了基于 TI 的闪存 API 库。 现在、我需要在链接器命令文件中创建不同的链接器段。 有没有任何方法或入门或文档可以让您了解如何开始编写链接器文件。
或者 以任何其他方式提供帮助。
谢谢!
此致
Gurusha
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.
Other Parts Discussed in Thread: C2000WARE
工具/软件:TI C/C++编译器
您好!
我已经创建了一些定制运行时间库并使用了基于 TI 的闪存 API 库。 现在、我需要在链接器命令文件中创建不同的链接器段。 有没有任何方法或入门或文档可以让您了解如何开始编写链接器文件。
或者 以任何其他方式提供帮助。
谢谢!
此致
Gurusha
尊敬的乔治:
我已经为 ramfuncs 段指定了加载开始和加载结束地址。 我无法理解的一点是、符号_RamfuncsLoadStart 的值应该在链接器文件中的哪个位置被提及。 写入此地址的语法是什么?
ramfuncs:load = FLASHD,
运行= RAML0、
load_start (_RamfuncsLoadStart)、
load_end (_RamfuncsLoadEnd)、
run_start (_RamfuncsRunStart)
谢谢
Gurusha
大多数 C2000Ware 示例项目在系统设置过程中执行与此类似的源代码行...
memcpy (&RamfuncsRunStart、&RamfuncsLoadStart、(uint32_t)&RamfuncsLoadSize);
这会将 ramfuncs 输出段中的函数从闪存复制到 RAM。 它必须在调用这些函数中的任何一个之前发生。 在您使用的 C2000Ware 示例中搜索此代码或与其类似的代码。
谢谢、此致、
乔治