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.

[参考译文] TMS320F28075:.INT_ARRAY WSECTIONS 错误。

Guru**** 2181985 points
Other Parts Discussed in Thread: TMS320F28075, C2000WARE
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1481451/tms320f28075-int_array-wwithout-sections-error

器件型号:TMS320F28075
Thread 中讨论的其他器件: C2000WARE

工具与软件:

嗨,大家好,我每次组装(构建)我的 asm 文件时都有一个错误。 错误是这样的

说明   资源   路径   位置   类型
#10440-D 创建输出段".init_array"、没有段规范。  有关本节的更多信息、请参阅 software-dl.ti.com/.../C2000_c28x_migration_from_coff_to_eabi.html   TMS320F28075_GPU_ASM            C/C++问题上的"C2000从 COFF 迁移到 EABI"指南

CCS 说这是 C/C++问题、但我的 asm 文件是一个只汇编文件、而不是带有.extern ASM_FILE 的 C/C++文件。

在我的 asm 文件的开头、我有以下内容:

   .global _c_int00
   .sect .reset
   .long _c_int00
   .sect   "Pete_asm"
   .retain
   .text
   .nolist

_c_int00   .asmfunc

        spm   0       ;初始化状态位字段
       C28OBJ       ;设置 C28x 模式
       CLRC AMODE
       C28ADDR
       C28MAP
       asp           ;对齐栈指针

我的 ASM 文件下载到我的 F28075文件并且运行良好。 每次我构建 ASM 文件时、错误都令人厌烦。

请告诉我如何消除此错误。

感谢大家和 Gals、希望很快收到您的回复。

Peter