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.

[参考译文] C2000WARE:不兼容的声明 IFR、IER - C2000Ware 与 TI v22.6.3.LTS

Guru**** 2826825 points

Other Parts Discussed in Thread: C2000WARE

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1595182/c2000ware-incompatible-declaration-ifr-ier---c2000ware-with-ti-v22-6-3-lts

器件型号: C2000WARE

您好、TI 专家。

我的项目的编译存在问题

控制台输出:

“C:/ti/ccs2040/ccs/tools/compiler/ti-cgt-c2000_22.6.3.LTS/bin/cl2000 -O2 --opt_for_speed=4 --fp_mode=relaxed --include_path=……
[5]“C:\ti\c2000\C2000Ware_5_02_00_00\driverlib\f2837xs\driverlib\cpu.h“、第 61 行:错误:声明与“volatile unsigned int ifr“不兼容(在“C:/ti/c2000/C2000Ware_5_02_00_00/device_support/f2837xs/headers/include/F2837xS_device.h 的第 64 行声明)
[6]“C:\ti\c2000\C2000Ware_5_02_00_00\driverlib\f2837xs\driverlib\cpu.h“、第 68 行:错误:声明与“volatile unsigned int IER“不兼容(在“C:/ti/c2000/C2000Ware_5_02_00_00/device_support/f2837xs/headers/include/F2837xS_device.h 的第 65 行声明)
[7]“C:\ti\c2000\C2000Ware_5_02_00_00\driverlib\f2837xs\driverlib\interrupt.h“、第 481 行:警告:声明隐藏了内置函数“__disable_interrupts"</s>“
[8]“C:\ti\c2000\C2000Ware_5_02_00_00\driverlib\f2837xs\driverlib\interrupt.h“、第 482 行:警告:声明隐藏了内置函数“__enable_interrupts"</s>“
[9]“C:/ti/c2000/C2000Ware_5_02_00_00/driverlib/f2837xs/driverlib/can.h、第 360 行:警告:类型为“int16_t *“的参数与类型为“int *“的参数不兼容
[10]“C:/ti/c2000/C2000Ware_5_02_00_00/driverlib/f2837xs/driverlib/can.h、第 408 行:警告:类型为“int16_t *“的参数与类型为“int *“的参数不兼容
[11]“C:/ti/c2000/C2000Ware_5_02_00_00/driverlib/f2837xs/driverlib/can.h、第 457 行:警告:类型为“int16_t *“的参数与类型为“int *“的参数不兼容
[12]“C:/ti/c2000/C2000Ware_5_02_00_00/driverlib/f2837xs/driverlib/can.h、第 498 行:警告:类型为“int16_t *“的参数与类型为“int *“的参数不兼容
[13]2 在编译“myfile"时“时检测到错误。

 

将工程导入到 CCS-20.4.0 后会发生此问题。   之前我运行的是 12.8.1、工作正常。

当在 20.4.0 中将编译器从 TI v22.6.3.LTS 切换到 TI v22.6.1.LTS 时、不会显示错误(和警告)(这是我在 12.8.1 中拥有的版本)

我还尝试了将 C2000Ware_5_02_00_00 更改为 C2000Ware_6_00_01_00、问题仍然存在。