器件型号: TMS320F28P650DH
您好:
我´m 使用 CCS 版本 12.6 在 F28P650DH 器件中为 CLA 编写我的第一个代码。 现在我从 CLA 编译器收到意外警告 (f28p65x_xbar 中的#1173-D 未知属性“noblocked“)。

如何防止此警告?
非常感谢
Ralf
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.
器件型号: TMS320F28P650DH
您好:
我´m 使用 CCS 版本 12.6 在 F28P650DH 器件中为 CLA 编写我的第一个代码。 现在我从 CLA 编译器收到意外警告 (f28p65x_xbar 中的#1173-D 未知属性“noblocked“)。

如何防止此警告?
非常感谢
Ralf
尊敬的 Ralf:
您是否尝试在.cla 文件中包含 f28p65x_xbar.h 文件? 似乎发生的情况是、此文件不是为 CLA 编写的、因此它使用只有 C28x 编译器才能识别的编译器属性。 您可以忽略此警告、从源文件中删除 noblocked 属性、也可以更新源文件、以便编译两个不同的版本:一个用于 C28x、一个用于 CLA:
#if defined(__TMS320C28X__) extern volatile struct XBAR_REGS XbarRegs __attribute__((noblocked)); #elif defined(__TMS320C28XX_CLA__) extern volatile struct XBAR_REGS XbarRegs; #endif
此致、
Delaney
尊敬的 Delaney:
非常感谢您的回答。
是的、f28p65x_xbar.h 文件包含在 CLA 编译器源代码中、因为我们需要访问 ADC 和 ePWM 寄存器。 我包含了以下文件。
#include “cla_f28p65_shared.h“
#include “f28x_Project.h“ //此文件包含 f28p65x_xbar.h
#include “CLAmath.h“
来自 F28379D 器件、F28379D_xbar.h 不具有属性扩展名。
为什么 f28p65x_xbar.h 文件具有此扩展名?
谢谢你
Ralf