1.CCS提示未定义CPU,错误信息为
#35 #error directive: "You must define CPU1 or CPU2 in your project properties.
Otherwise, the offsets in your header files will be inaccurate."
解决方法:在Properties-Build-C2000 Compiler-Predefined Symbols中的Pre-define NAME一栏添加一项,命名为CPU1即可,如下图所示: