gmake: No rule to make target `C:/ti/controlSUITE2_DMC Rev/device_support/f2803x/v122/DSP2803x_h的解决
注:此方法是在CCS8环境下的使用成功的
在使用controlSUITE的例程编译时,工程老出现这种错误,排查了很久,终于找到了原因,造成这种原因主要是CCS在安装时没有按照默认的路径来,造成文件链接错误;
错误:gmake: *** No rule to make target C:/ti/controlSUITE2_DMC Rev/device_support/f2803x/v122/DSP2803x_headers/source/DSP2803x_GlobalVariableDefs.c', needed by
DSP2803x_GlobalVariableDefs.obj’.
gmake: *** No rule to make target C:/ti/controlSUITE2_DMC Rev/libs/math/IQmath/v15c/lib/IQmath.lib', needed by
HVACI_Sensored.out’.
解决的方法是:
- 先打开一个可以正常编译的工程,如HVACI_sensored为例
工程编译时正常的
2.由于编译里面是DSP2803x_GlobalVariableDefs.c无法找到,选中HVACI_sensored工程此文件中DSP2803x_GlobalVariableDefs.c,右击选中Properties,
复制以下链接
2.将链接粘贴到有问题的HCACI_Scalar的工程里
然后点击确定即可。
3.其他类似文件也是按照以上的方法
4.将链接设置好后编译通过