Thread 中讨论的其他器件:TMS320F28379D、 SysConfig、C2000WARE
工具/软件:
在从 F28x 系列(TMS320F28379D)迁移到 F29x 系列(TMS320F29H850TU9)的代码期间、会遇到错误: unknown type "__interrupt"
。
即使在指定的位置没有明确定义中断、也会出现此错误。
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.
工具/软件:
在从 F28x 系列(TMS320F28379D)迁移到 F29x 系列(TMS320F29H850TU9)的代码期间、会遇到错误: unknown type "__interrupt"
。
即使在指定的位置没有明确定义中断、也会出现此错误。
您好、Shashank、
您能否提供整个错误消息的片段?
在 F28x 中、"__interrupt"属性用于向编译器指示函数是否是 ISR、并添加适当的反汇编指令以确保正常操作。
在 F29x 中、"__attribute__((interrupt ("int_kind")))" 将用于上述相同目的。 换句话说、在迁移中断代码时、请确保 您没有使用旧的 F28x 属性 、而是仅使用 F29x 属性。 如果您使用 SysConfig、这在 board.h 中进行处理 确保对应用程序代码进行相同的更新。 如需更多信息、请参阅 C29 CPU 用户指南和 C29编译器指南(https://software-dl.ti.com/codegen/docs/c29clang/compiler_tools_user_guide/migration_guide/migrating_c_and_cpp_source/pragmas_and_attributes.html?highlight=attribute%20interrupt#attributes)。
此致、
Aishwarya
您好、Shashank、
您的代码好像引用了 F29H85x 不支持的 C2000WARE DP SDK。 在您的项目目录和属性中、请分别删除(或从构建中排除)并非特定于 F29x 的所有文件以及项目路径。 由于我们没有 F29x SDK、因此如果需要、您可以考虑一些自定义文件。 此时、您应该能够 在没有错误的情况下重新编译工程(或清理+构建)。
此致、
Aishwarya