CCS编译错误与解决办法 :fatal error: #error NO CHIP DEFINED
2010-04-09 23:47
901 查看
错误内型:
"C:/CCStudio_v3.3/C5500/csl/include/csl_chiphal.h", line 201:
fatal error: #error NO CHIP DEFINED
解决办法:
Project --> Build Options --> Preprocessor --> Pre-define Symbols 中加入CHIP_5502
错误原因分析:
查看文件 C:/CCStudio_v3.3/C5500/csl/include/csl_chiphal.h
仔细查看上面代码不难发现,在没有定义芯片时 CSL_CHIP_GRPA == 0) & (CSL_CHIP_GRPB == 0) & (CSL_CHIP_GRPC == 0)成立
所以会提示错误 #error NO CHIP DEFINED
在Project Build options 中没有定义任何芯片型号,导致错误: error NO CHIP DEFINED
只需要加上Pre-Define Symbol 就可以了
"C:/CCStudio_v3.3/C5500/csl/include/csl_chiphal.h", line 201:
fatal error: #error NO CHIP DEFINED
解决办法:
Project --> Build Options --> Preprocessor --> Pre-define Symbols 中加入CHIP_5502
错误原因分析:
查看文件 C:/CCStudio_v3.3/C5500/csl/include/csl_chiphal.h
#ifdef CHIP_5501 #undef CHIP_5501 #define CHIP_5501 1 #else #define CHIP_5501 0 #endif #ifdef CHIP_5502 #undef CHIP_5502 #define CHIP_5502 1 #else #define CHIP_5502 0 #endif #ifdef CHIP_5509 #undef CHIP_5509 #define CHIP_5509 1 #else #define CHIP_5509 0 #endif #ifdef CHIP_5509A #undef CHIP_5509A #define CHIP_5509A 1 #else #define CHIP_5509A 0 #endif #ifdef CHIP_5510 #undef CHIP_5510 #define CHIP_5510 1 #else #define CHIP_5510 0 #endif #ifdef CHIP_5510PG1_0 #undef CHIP_5510PG1_0 #define CHIP_5510PG1_0 1 #else #define CHIP_5510PG1_0 0 #endif #ifdef CHIP_5510PG2_0 #undef CHIP_5510PG2_0 #define CHIP_5510PG2_0 1 #else #define CHIP_5510PG2_0 0 #endif #ifdef CHIP_5510PG2_1 #undef CHIP_5510PG2_1 #define CHIP_5510PG2_1 1 #else #define CHIP_5510PG2_1 0 #endif #ifdef CHIP_5510PG2_2 #undef CHIP_5510PG2_2 #define CHIP_5510PG2_2 1 #else #define CHIP_5510PG2_2 0 #endif #ifdef CHIP_5510PG1_2 #undef CHIP_5510PG1_2 #define CHIP_5510PG1_2 1 #else #define CHIP_5510PG1_2 0 #endif #if CHIP_5510PG1_0 #undef CHIP_5510 #define CHIP_5510 1 #endif #if CHIP_5510PG1_2 #undef CHIP_5510 #define CHIP_5510 1 #endif #if (CHIP_5510PG2_1) || (CHIP_5510PG2_2) #undef CHIP_5510PG2_0 #define CHIP_5510PG2_0 1 #endif #ifndef BIOS_CNT #define BIOS_CNT 0 #endif .. .. .. .. #if ((CHIP_5510)==0) & ((CHIP_5510PG1_0)==0) & ((CHIP_5510PG1_2)==0) & ((CHIP_5510PG2_0)==0) #define CSL_CHIP_GRPA 0 #define CHIP_5510_FAMILY 0 #else #define CSL_CHIP_GRPA 1 #define CHIP_5510_FAMILY 1 #endif #if ((CHIP_5509)==0) & ((CHIP_5509A)==0) #define CSL_CHIP_GRPB 0 #define CHIP_5509_FAMILY 0 #else #define CSL_CHIP_GRPB 1 #define CHIP_5509_FAMILY 1 #endif #if ((CHIP_5502==0) & (CHIP_5501==0)) #define CSL_CHIP_GRPC 0 #define CHIP_5502_FAMILY 0 #else #define CSL_CHIP_GRPC 1 #define CHIP_5502_FAMILY 1 #endif #if (CSL_CHIP_GRPA == 0) & (CSL_CHIP_GRPB == 0) & (CSL_CHIP_GRPC == 0) #error NO CHIP DEFINED #endif
仔细查看上面代码不难发现,在没有定义芯片时 CSL_CHIP_GRPA == 0) & (CSL_CHIP_GRPB == 0) & (CSL_CHIP_GRPC == 0)成立
所以会提示错误 #error NO CHIP DEFINED
在Project Build options 中没有定义任何芯片型号,导致错误: error NO CHIP DEFINED
只需要加上Pre-Define Symbol 就可以了
相关文章推荐
- 一种编译错误的解决办法。/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory
- CSS编译错误之:fatal error: #error NO CHIP DEFINED
- linux 内核编译时出现scripts/sign-file.c:23:30: fatal error: openssl/opensslv.h错误的解决办法
- linux 内核编译时出现scripts/sign-file.c:23:30: fatal error: openssl/opensslv.h错误的解决办法
- linux 内核编译时出现scripts/sign-file.c:23:30: fatal error: openssl/opensslv.h错误的解决办法
- ADS编译错误Error: Fatal L6002U:Could not open file:.....解决办法
- NDK编译:error: iostream: No such file or directory错误解决办法
- pro*c/c++编译错误 ” error: sqlca.h: No such file or directory “ 的解决办法
- linux 内核编译时出现scripts/sign-file.c:25:30: fatal error: openssl/opensslv.h错误的解决办法
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- 编译Busybox时,出现错误fatal error: curses.h: No such file or directory
- 在Linux下生成GUID的程序,及编译错误 “uuid/uuid.h: No such file or directory” 的解决办法。
- junit.framework.AssertionFailedError: No tests found in错误解决办法
- vs210编译sevenzip 7-zip出现link error opt:nowin98的错误解决办法
- APACHE 编译错误:make[2]: *** [htpasswd] Error 1 解决办法
- PHP错误:Fatal error session_start() 解决办法
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- 安装mysql,在./configure时出现错误:error: No curses/termcap library found的解决办法
- vs210编译sevenzip 7-zip出现link error opt:nowin98的错误解决办法
- .NET Web Deployment Project 编译错误An error occurred when merging assemblies: Index was outside the bounds of the array解决办法