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.
您好!
我将一个项目从379D 移植到386s。 我只是更改了处理器类型并构建了它。 结果是链接器 cmd 文件中 GROUP 结构周围存在链接错误。 项目使用 LOAD_START、LOAD_SIZE 和 RUN_START。 这些参数在项目使用的 CPP 文件中使用。 我发现、为了避免链接错误、379D 项目中的参数必须以下划线开头。 但在386s 项目中、它们的开头必须不带下划线。 是否有其他设置会导致此问题?
TMS320F28379D 项目
cpp 文件
#pragma code_section ("MyMethods")
CMD 文件
组
{
玛理斯
}负载= blah
运行 = blah
Load_start (_StoredAddress)、
Load_Size (_StoredSize)、
RUN_START (_RunAddress)
TMS320F28386S 项目
一切都相同、但为了进行链接、必须从 StoredAddress、StoredSize 和 RunAddress 的开头删除下划线。
cpp 文件
#pragma code_section ("MyMethods")
CMD 文件
组
{
玛理斯
}负载= blah
运行 = blah
Load_start (StoredAddress)、
Load_Size (StoredSize)、
RUN_START (运行地址)
谢谢!
据
我找到了这个问题。 即从 COFF 更改为 EABI。 根据 《C2000从 COFF 迁移到 EABI》、EABI 不使用下划线。