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.

CCS编译CC2460R2F的SDK时遇到问题, error #20

Other Parts Discussed in Thread: CC2640R2F

ccs的版本: 10.1.0.00010

使用CC2640R2F的SDK,版本是simplelink_cc2640r2_sdk_4_30_00_08

将CC2640R2DK_7ID文件复制到ccs的workspace路径下,也相应修改startup/board.c里./cc2640r2em/cc2640r2em_board.c中调用CC2640R2DK_7ID.c和.h的路径

编译时遇到的问题是

./CC2640R2DK_7ID_USER/CC2640R2DK_7ID.c", line 529: error #20: identifier "RFCC26XX_HWAttrs" is undefined

但是在报错这个位置是include有这个类型定义的h文件的,如#include <ti/drivers/rf/RF.h>,但是编译时报错

再有就是,在这个报错的附近也还有类似的变量定义,如下

#include <ti/drivers/PWM.h>
#include <ti/drivers/pwm/PWMTimerCC26XX.h>

PWMTimerCC26XX_Object pwmtimerCC26xxObjects[CC2640R2DK_7ID_PWMCOUNT];

const PWMTimerCC26XX_HwAttrs pwmtimerCC26xxHWAttrs[CC2640R2DK_7ID_PWMCOUNT] = {
{ .pwmPin = CC2640R2DK_7ID_PWMPIN0, .gpTimerUnit = CC2640R2DK_7ID_GPTIMER0A },
{ .pwmPin = CC2640R2DK_7ID_PWMPIN1, .gpTimerUnit = CC2640R2DK_7ID_GPTIMER0B },
{ .pwmPin = CC2640R2DK_7ID_PWMPIN2, .gpTimerUnit = CC2640R2DK_7ID_GPTIMER1A },
{ .pwmPin = CC2640R2DK_7ID_PWMPIN3, .gpTimerUnit = CC2640R2DK_7ID_GPTIMER1B },
{ .pwmPin = CC2640R2DK_7ID_PWMPIN4, .gpTimerUnit = CC2640R2DK_7ID_GPTIMER2A },
{ .pwmPin = CC2640R2DK_7ID_PWMPIN5, .gpTimerUnit = CC2640R2DK_7ID_GPTIMER2B },
{ .pwmPin = CC2640R2DK_7ID_PWMPIN6, .gpTimerUnit = CC2640R2DK_7ID_GPTIMER3A },
{ .pwmPin = CC2640R2DK_7ID_PWMPIN7, .gpTimerUnit = CC2640R2DK_7ID_GPTIMER3B },
};

这个却没有报错。这是什么情况?