IAR常见编译错误
IAR编译问题

Error[Pe020]: identifier "ccc" is undefined C:\Documents and Settings\Administrator\桌面\ECG1200G-Printer-stm32\user\main.c 63问题:红色部分没有定义,黄色部分是路径,63是行数。
解决:先定义ccc后使用。
Fatal Error[Lc002]: could not open file "C:\Documents and Settings\Administrator\桌面\ECG1200G-Printer-stm32\..\stm32f10x_flash.icf"问题:找不到黄色路径中的文件。
解决:查找下图中路径设置是否正确。
Warning[Pa084]: pointless integer comparison, the result is always false C:\Documents and Settings\Administrator\桌面\ECG1200G-Printer-stm32\user\main.c 219问题:警告条件判断结果一直是假。
比如:unsigned char i = 0;if(i > 0xFF){}Error[Pe513]: a value of type "int *" cannot be assigned to an entity of type "char *" C:\Documents and Settings\Administrator\桌面\ECG1200G-Printer-stm32\user\main.c 219问题:两个类型不一样,不能直接赋值。
解决:Warning[Pe223]: function "spi_config" declared implicitly C:\Documents and Settings\Administrator\桌面\ECG1200G-Printer-stm32\user\main.c 216问题:红色部分没有声明或在其它地方声明过,但是main.c没有引用。
IAR编译错误

IAR编译错误清单Warning[Pe1665]: concatenation with "PDOR" in macro "PT" does not create a valid token E:\All learning files\IAR files\四轴\电调\VCANBLDC\Board\src\VCAN_NRF24L0.c 317警告:“PDDR”宏“PT”不创建有效的TOK级联未解1,错误:Error[Li005]: no definition for "__VECTOR_TABLE" [referenced from F:\k60 example\ E04 WOTCHDOG\Watdog\Debug\Obj\vectors.o]Error[Li005]: no definition for "__VECTOR_RAM" [referenced from F:\k60 example\E 04 WOTCHDOG\Watdog\Debug\Obj\vectors.o]Error[Li005]: no definition for "__BOOT_STACK_ADDRESS" [referenced from F:\k60 example\E04 WOTCHDOG\Watdog\Debug\Obj\vectors.o]错误原因(见下图):在linker里没有设置icf文件的路径。
说2,错误:Warning[Pe223]: function "LCD_Init" declared implicitly D:\All learning files\IA R files\exercise\Project\files\main.c 30files\exercise\Project\files\main.c 31Warning[Pe223]: function "LCD_P8x16Str" declared implicitly D:\All learning files\IAR files\exercise\Project\files\main.c 40Warning[Pe223]: function "LCD_P6x8Str" declared implicitly D:\All learning files\IAR f iles\exercise\Project\files\main.c 41Warning[Pe223]: function "LCD_CLS" declared implicitly D:\All learning files\IAR files\ exercise\Project\files\main.c 44Error[Pe020]: identifier "longqiu96x64" is undefined D:\All learning files\IAR files\exer cise\Project\files\main.c 45或者:Error[Pe101]: "uint8" has already been declared in the current scope (at line 72 of "D:\All learning files\IAR files\exercise\ D:\All learning files\IAR files\exercise\LI B\drivers\LQ12864\LQ12864.h 10Project\iar\..\..\LIB\cpu\arm_cm4.h")Error[Pe070]: incomplete type is not allowed D:\All learning files\IAR files\exercise\LI B\drivers\LQ12864\LQ12864.h 10Error[Pe065]: expected a ";" D:\All learning files\IAR files\exercise\LIB\drivers\LQ1286 4\LQ12864.h 10Error while running C/C++ Compilermain.cError[Pe101]: "uint8" has already been declared in the current scope (at line 72 of "D:\All learning files\IAR files\exercise\ D:\All learning files\IAR files\exercise\LIB\drive rs\LQ12864\LQ12864.h 10Project\iar\..\..\LIB\cpu\arm_cm4.h")Error[Pe070]: incomplete type is not allowed D:\All learning files\IAR files\exercise\LI B\drivers\LQ12864\LQ12864.h 10Error[Pe065]: expected a ";" D:\All learning files\IAR files\exercise\LIB\drivers\LQ1286 4\LQ12864.h 10Warning[Pe223]: function "LCD_Init" declared implicitly D:\All learning files\IAR files\e xercise\Project\files\main.c 30Warning[Pe223]: function "Draw_LibLogo" declared implicitly D:\All learning files\IAR files\exercise\Project\files\main.c 31files\exercise\Project\files\main.c 40Warning[Pe223]: function "LCD_P6x8Str" declared implicitly D:\All learning files\IAR f iles\exercise\Project\files\main.c 41Warning[Pe223]: function "LCD_CLS" declared implicitly D:\All learning files\IAR files\ exercise\Project\files\main.c 44Error[Pe020]: identifier "longqiu96x64" is undefined D:\All learning files\IAR files\exer cise\Project\files\main.c 45Error while running C/C++ Compiler注意:我这是把LQ12864.h中的void byte longqiu96x64[768];//void LCD_Init(void);//void LCD_CLS(void);//void LCD_P6x8Str(byte x,bytey,bytech[]);//void LCD_P8x16Str(byte x,bytey,bytech[]);//void LCD_P14x16Str(byte x,bytey,bytech[]);voidLCD_Print(byte x, byte y, byte ch[]);// void LCD_PutPixel(byte x,byte y);//void LCD_Rectangle(byte x1,byte y1,byte x2,byte y2,byte gif);//void Draw_LQLogo(void);//void Draw_LibLogo(void);看到没我都给注释了,然后出现这么多错误,最后又把本来是extern byte longqiu96x64[7 68];改成voidbyte longqiu96x64[768];于是出现了:Error[Pe101]: "uint8" has already been declared in the current scope (at line 72 of "D:\All learning files\IAR files\exercise\ D:\All learning files\IAR files\exercise\LIB\drive rs\LQ12864\LQ12864.h 10Project\iar\..\..\LIB\cpu\arm_cm4.h")Error[Pe070]: incomplete type is not allowed D:\All learning files\IAR files\exercise\LI B\drivers\LQ12864\LQ12864.h 10Error[Pe065]: expected a ";" D:\All learning files\IAR files\exercise\LIB\drivers\LQ1286 4\LQ12864.h 10Error while running C/C++ CompilerIAR 6.20编译错误清单1、①错误描述:Tool Internal Error:Internal Error: [CoreUtil/General]: Access violation (0xc0000005) at 007588A5 (reading from address 0x0)Internal Error: [CoreUtil/General]: Access violation (0xc0000005) at 007588A5 (reading from address 0x0)Error while running C/C++ Compiler②错误原因:High配置设置为Size,应该为Low2、①错误描述:Fatal Error[Pe1696]: cannot open source file "inc/hw_types.h" E:\StellarisWareM3_9D92\boards\dk-lm3s9b96\boot_demo2\boot_demo2.c 25②错误原因:C/C++ Complier(Assember)->Preprocessor->Additional include directories:$PROJ_DIR$\.$PROJ_DIR$\..$PROJ_DIR$\..\..\..3、①错误描述:Fatal Error[Pe1696]: cannot open source file "lwip/opt.h" E:\StellarisWareM3_9D92\utils\lwiplib.h 44②错误原因:C/C++ Complier-(Assember)>Preprocessor->Additional include directories:$PROJ_DIR$\..\..\..\third_party\lwip-1.3.2\apps$PROJ_DIR$\..\..\..\third_party\bget$PROJ_DIR$\..\..\..\third_party\lwip-1.3.2\ports\stellaris\include$PROJ_DIR$\..\..\..\third_party\lwip-1.3.2\src\include$PROJ_DIR$\..\..\..\third_party\lwip-1.3.2\src\include\ipv4$PROJ_DIR$\..\..\..\third_party\lwip-1.3.2\src\include\lwip$PROJ_DIR$\..\..\..\third_party4、①错误描述:Fatal Error[Pe035]: #error directive: Unrecognized COMPILER! E:\StellarisWareM3_9D92\boards\dk-lm3s9b96\drivers\set_pinout.h 59Error while running C/C++ Compiler②错误原因:C/C++ Complier-(Assember)>Preprocessor->Defined symbols: ewarm5、①错误描述:Error[Pe020]: identifier "ROM_pvAESTable" is undefined E:\StellarisWareM3_9D92\third_party\aes\aes.c 319②错误原因:6、①错误描述:Error[Li005]: no definition for "main" [referenced from cmain.o(rt7M_tl.a)]Error while running Linker②错误原因:定义函数:intmain(void){ return (0);}7、①错误描述:Error[Li005]: no definition for "main" [referenced from cmain.o(rt7M_tl.a)]Error while running Linker②错误原因:如果是库是库函数,在:General Options->Output->Output file:选择:Library项4、①错误描述:Fatal Error[Pe1696]: cannot open source file "uip.h" E:\StellarisWareM3_9D92\third_party\uip-1.0\apps\dhcpc\dhcpc.c 37②错误原因:5、①错误描述:②错误原因:$PROJ_DIR$\..\..\..\third_party\lwip-1.3.2\apps$PROJ_DIR$\..\..\..\third_party\bget$PROJ_DIR$\..\..\..\third_party\lwip-1.3.2\ports\stellaris\include$PROJ_DIR$\..\..\..\third_party\lwip-1.3.2\src\include$PROJ_DIR$\..\..\..\third_party\lwip-1.3.2\src\include\ipv4$PROJ_DIR$\..\..\..\third_party$PROJ_DIR$\..\..\..\third_party\uip-1.0$PROJ_DIR$\..\..\..\third_party\uip-1.0\uip$PROJ_DIR$\..\..\..\third_party\uip-1.0\apps$PROJ_DIR$\..\..\..\third_party\\speex-1.2rc1\include$PROJ_DIR$\..\..\..\third_party\\speex-1.2rc1\include\speex$PROJ_DIR$\..\..\..\third_party\\speex-1.2rc1\stellaris6、①错误描述:Fatal Error[Pe035]: #error directive: You now need to define either FIXED_POINT or FLOATING_POINT E:\StellarisWareM3_9D92\third_party\speex-1.2rc1\libspeex\arch.h 65②错误原因:7、①错误描述:Fatal Error[Pe035]: #error directive: "Unrecognized/undefined driver for DISK0!" E:\StellarisWareM3_9D92\third_party\fatfs\port\dual-disk-driver.c 62Error while running C/C++ Compiler②错误原因:UART_BUFFEREDDISK0_DK_LM3S9B96DISK1_USB_MSCINCLUDE_BGET_STATS8、①错误描述:Error[Pe020]: identifier "ROM_pvAESTable" is undefined E:\SWM3_9D92(6.20)\third_party\aes\aes.c 359Error while running C/C++ Compiler②错误原因:10、①错误描述:Fatal Error[Pe035]: #error directive: You now need to define either FIXED_POINT or FLOATING_POINT E:\SWM3_9D92(6.20)\third_party\speex-1.2rc1\libspeex\arch.h 65Error while running C/C++ Compiler②错误原因:11、①错误描述:Error[Li005]: no definition for "ROM_SysCtlClockSet" [referenced from E:\SWM3_9D92(6.20)\boards\dk-lm3s9b96\safertos_demo\Debug\Obj\safertos_demo.o] Error[Li005]: no definition for "ROM_FlashUserGet" [referenced from E:\SWM3_9D92(6.20)\boards\dk-lm3s9b96\safertos_demo\Debug\Obj\lwip_task.o] Error[Li005]: no definition for "ROM_IntPrioritySet" [referenced from E:\SWM3_9D92(6.20)\boards\dk-lm3s9b96\safertos_demo\Debug\Obj\lwip_task.o] Error[Li005]: no definition for "ROM_GPIOPinTypeGPIOOutput" [referenced from E:\SWM3_9D92(6.20)\boards\dk-lm3s9b96\safertos_demo\Debug\Obj\led_task.o]Error[Li005]: no definition for "ROM_GPIOPinWrite" [referenced from E:\SWM3_9D92(6.20)\boards\dk-lm3s9b96\safertos_demo\Debug\Obj\led_task.o]Error[Lp011]: section placement failed: unable to allocate space for sections/blocks with a total estimated minimum size of 0x11e54 bytes in <[0x20000000-0x2000ffff]> (total uncommitted space 0x10000).Error while running Linker②错误原因:12、①错误描述:Error[Lp011]: section placement failed: unable to allocate space for sections/blocks with a total estimated minimum size of 0x11e54 bytes in <[0x20000000-0x2000ffff]> (total uncommitted space 0x10000).Error while running Linker。
【经验笔记】IAR常见错误及警告信息表

【经验笔记】IAR常见错误及警告信息表用惯了IAR 觉着它真的灰常强大(虽然UI 界面有点简单,没有Keil 和Eclipse 做的那么炫),随着使用的时间越来越长,不断有新的技巧和功能被发掘,第一是不断给俺带来惊喜,第二是成就感自我感觉良好,第三也是最重要的就是IAR 功能的强大极大程度上方便了我们的产品开发,所以如此贤内助我们怎么舍得拒绝呢(这回轮到给IAR 做广告了),哈哈~不过令我们头疼的是当编译程序时出现的一大堆错误及警告信息,虽然大多数问题好解决,不过也有一些错误或者警告让我们抓耳挠腮无所适从。
所以这里我就列出IAR 一些常见的错误和警告信息所代表的意思及相应的处理方法,希望能对正在使用IAR 的同志们有所帮助。
另外本信息表主要是我在逛阿莫论坛时看到的,也没有原作者相应的信息,所以无法在这里感谢了,也因此我以经验笔记的形式写出来(当然也有自己的一些批注)。
下面我挑了一些重点的列出来并加以注释,具体原版信息表见文章最后的附件:一、警告信息表:1.Macro name redefine(宏被重新定义)表示用#define 定义的宏在程序中以不同形式的参数或者形式重新定义了。
2.undeclared function parameter name; assumed int(为声明的函数参数name,假设为int 型)缺省情况下,函数定义头部中未声明的标识符默认为int 型。
3.unreferenced label name(未引用的标号name)这个貌似最常遇到的警告之一了,常常我们定义了某个变量,但在程序中却没有使用它。
4.unreachable returns, the function will never return.(不能到达的返回,即执行。
IAR 编译错误信息表

编译错误信息表15 ‘,’or’)’expected(预待’,’或‘)’) 编译器发现函数定义头部或宏定义的句法无效16 Identifier expected(期待识别符) 在声明、goto语句或预处理器行中丢失识别符17 Space or tab expected(期待空格或制表符) 必须用制表或空格字符把预处理器参数与伪指令隔开。
18 Macro parameter ‘name’ redefined(宏参数‘name’被重定义) #define语句中符号的形式参数被重复19 Unmatched #else,#endif或#elif(不匹配的# else,#endif 或#elif) 致命错误。
丢失了#if,#ifdef或#ifdef20 No such pre-processor command:’name’(无这样的预处理命令)#后随未知的识别符21 Unexpected token found in pre-processorline(在预处理器行中发现未预期的记号)在读参数部分之后预处理器行不空。
22 Too many nested parameterized macro(maxis50)(嵌套参数化宏太多)致命错误。
预处理器极限被超过。
23 Too many active macro parameters(max is250)(有效宏参数太多(最大为250))致命错误。
预处理器极限被超过。
24 Too deep macro nestiong(max is 100)(宏嵌套太深(最大为100))致命错误。
预处理器极限被超过。
25 Macro ‘name’called with too manyparameters(用太多的参数调用宏‘name’) 致命错误。
用比声明更多的参数调用参数化的#define宏。
26 Actual macro parameter too long(max is512)(实际宏参数太长(最大为512)单个宏参数不能超过源代码行的长度27 macro ‘name’called with too fewpatameters(用太少的参数调用宏‘name’) 用比声明更少的参数调用参数化#define宏28 Missing #endif(遗漏#endif) 致命错误。
IAR编译错误

IAR编译错误清单Warning[Pe1665]: concatenation with "PDOR" in macro "PT" does not create a valid token E:\All learning files\IAR files\四轴\电调\VCANBLDC\Board\src\VCAN_NRF24L0.c 317警告:“PDDR”宏“PT”不创建有效的TOK级联未解1,错误:Error[Li005]: no definition for "__VECTOR_TABLE" [referenced from F:\k60 example\ E04 WOTCHDOG\Watdog\Debug\Obj\vectors.o]Error[Li005]: no definition for "__VECTOR_RAM" [referenced from F:\k60 example\E 04 WOTCHDOG\Watdog\Debug\Obj\vectors.o]Error[Li005]: no definition for "__BOOT_STACK_ADDRESS" [referenced from F:\k60 example\E04 WOTCHDOG\Watdog\Debug\Obj\vectors.o]错误原因(见下图):在linker里没有设置icf文件的路径。
说2,错误:Warning[Pe223]: function "LCD_Init" declared implicitly D:\All learning files\IA R files\exercise\Project\files\main.c 30files\exercise\Project\files\main.c 31Warning[Pe223]: function "LCD_P8x16Str" declared implicitly D:\All learning files\IAR files\exercise\Project\files\main.c 40Warning[Pe223]: function "LCD_P6x8Str" declared implicitly D:\All learning files\IAR f iles\exercise\Project\files\main.c 41Warning[Pe223]: function "LCD_CLS" declared implicitly D:\All learning files\IAR files\ exercise\Project\files\main.c 44Error[Pe020]: identifier "longqiu96x64" is undefined D:\All learning files\IAR files\exer cise\Project\files\main.c 45或者:Error[Pe101]: "uint8" has already been declared in the current scope (at line 72 of "D:\All learning files\IAR files\exercise\ D:\All learning files\IAR files\exercise\LI B\drivers\LQ12864\LQ12864.h 10Project\iar\..\..\LIB\cpu\arm_cm4.h")Error[Pe070]: incomplete type is not allowed D:\All learning files\IAR files\exercise\LI B\drivers\LQ12864\LQ12864.h 10Error[Pe065]: expected a ";" D:\All learning files\IAR files\exercise\LIB\drivers\LQ1286 4\LQ12864.h 10Error while running C/C++ Compilermain.cError[Pe101]: "uint8" has already been declared in the current scope (at line 72 of "D:\All learning files\IAR files\exercise\ D:\All learning files\IAR files\exercise\LIB\drive rs\LQ12864\LQ12864.h 10Project\iar\..\..\LIB\cpu\arm_cm4.h")Error[Pe070]: incomplete type is not allowed D:\All learning files\IAR files\exercise\LI B\drivers\LQ12864\LQ12864.h 10Error[Pe065]: expected a ";" D:\All learning files\IAR files\exercise\LIB\drivers\LQ1286 4\LQ12864.h 10Warning[Pe223]: function "LCD_Init" declared implicitly D:\All learning files\IAR files\e xercise\Project\files\main.c 30Warning[Pe223]: function "Draw_LibLogo" declared implicitly D:\All learning files\IAR files\exercise\Project\files\main.c 31files\exercise\Project\files\main.c 40Warning[Pe223]: function "LCD_P6x8Str" declared implicitly D:\All learning files\IAR f iles\exercise\Project\files\main.c 41Warning[Pe223]: function "LCD_CLS" declared implicitly D:\All learning files\IAR files\ exercise\Project\files\main.c 44Error[Pe020]: identifier "longqiu96x64" is undefined D:\All learning files\IAR files\exer cise\Project\files\main.c 45Error while running C/C++ Compiler注意:我这是把LQ12864.h中的void byte longqiu96x64[768];//void LCD_Init(void);//void LCD_CLS(void);//void LCD_P6x8Str(byte x,byte y,byte ch[]);//void LCD_P8x16Str(byte x,byte y,byte ch[]);//void LCD_P14x16Str(byte x,byte y,byte ch[]);void LCD_Print(byte x, byte y, byte ch[]);// void LCD_PutPixel(byte x,byte y);//void LCD_Rectangle(byte x1,byte y1,byte x2,byte y2,byte gif);//void Draw_LQLogo(void);//void Draw_LibLogo(void);看到没我都给注释了,然后出现这么多错误,最后又把本来是extern byte longqiu96x64[7 68];改成void byte longqiu96x64[768];于是出现了:Error[Pe101]: "uint8" has already been declared in the current scope (at line 72 of "D:\All learning files\IAR files\exercise\ D:\All learning files\IAR files\exercise\LIB\drive rs\LQ12864\LQ12864.h 10Project\iar\..\..\LIB\cpu\arm_cm4.h")Error[Pe070]: incomplete type is not allowed D:\All learning files\IAR files\exercise\LI B\drivers\LQ12864\LQ12864.h 10Error[Pe065]: expected a ";" D:\All learning files\IAR files\exercise\LIB\drivers\LQ1286 4\LQ12864.h 10Error while running C/C++ CompilerIAR 6.20编译错误清单1、①错误描述:Tool Internal Error:Internal Error: [CoreUtil/General]: Access violation (0xc0000005) at 007588A5 (reading from address 0x0)Internal Error: [CoreUtil/General]: Access violation (0xc0000005) at 007588A5 (reading from address 0x0)Error while running C/C++ Compiler②错误原因:High配置设置为Size,应该为Low2、①错误描述:Fatal Error[Pe1696]: cannot open source file "inc/hw_types.h" E:\StellarisWareM3_9D92\boards\dk-lm3s9b96\boot_demo2\boot_demo2.c 25②错误原因:C/C++ Complier(Assember)->Preprocessor->Additional include directories:$PROJ_DIR$\.$PROJ_DIR$\..$PROJ_DIR$\..\..\..3、①错误描述:Fatal Error[Pe1696]: cannot open source file "lwip/opt.h" E:\StellarisWareM3_9D92\utils\lwiplib.h 44②错误原因:C/C++ Complier-(Assember)>Preprocessor->Additional include directories:$PROJ_DIR$\..\..\..\third_party\lwip-1.3.2\apps$PROJ_DIR$\..\..\..\third_party\bget$PROJ_DIR$\..\..\..\third_party\lwip-1.3.2\ports\stellaris\include$PROJ_DIR$\..\..\..\third_party\lwip-1.3.2\src\include$PROJ_DIR$\..\..\..\third_party\lwip-1.3.2\src\include\ipv4$PROJ_DIR$\..\..\..\third_party\lwip-1.3.2\src\include\lwip$PROJ_DIR$\..\..\..\third_party4、①错误描述:Fatal Error[Pe035]: #error directive: Unrecognized COMPILER! E:\StellarisWareM3_9D92\boards\dk-lm3s9b96\drivers\set_pinout.h 59Error while running C/C++ Compiler②错误原因:C/C++ Complier-(Assember)>Preprocessor->Defined symbols: ewarm5、①错误描述:Error[Pe020]: identifier "ROM_pvAESTable" is undefined E:\StellarisWareM3_9D92\third_party\aes\aes.c 319②错误原因:6、①错误描述:Error[Li005]: no definition for "main" [referenced from cmain.o(rt7M_tl.a)]Error while running Linker②错误原因:定义函数:int main(void) { return (0); }7、①错误描述:Error[Li005]: no definition for "main" [referenced from cmain.o(rt7M_tl.a)]Error while running Linker②错误原因:如果是库是库函数,在:General Options->Output->Output file:选择:Library项4、①错误描述:Fatal Error[Pe1696]: cannot open source file "uip.h" E:\StellarisWareM3_9D92\third_party\uip-1.0\apps\dhcpc\dhcpc.c 37②错误原因:5、①错误描述:②错误原因:$PROJ_DIR$\..\..\..\third_party\lwip-1.3.2\apps$PROJ_DIR$\..\..\..\third_party\bget$PROJ_DIR$\..\..\..\third_party\lwip-1.3.2\ports\stellaris\include$PROJ_DIR$\..\..\..\third_party\lwip-1.3.2\src\include$PROJ_DIR$\..\..\..\third_party\lwip-1.3.2\src\include\ipv4$PROJ_DIR$\..\..\..\third_party$PROJ_DIR$\..\..\..\third_party\uip-1.0$PROJ_DIR$\..\..\..\third_party\uip-1.0\uip$PROJ_DIR$\..\..\..\third_party\uip-1.0\apps$PROJ_DIR$\..\..\..\third_party\\speex-1.2rc1\include$PROJ_DIR$\..\..\..\third_party\\speex-1.2rc1\include\speex$PROJ_DIR$\..\..\..\third_party\\speex-1.2rc1\stellaris6、①错误描述:Fatal Error[Pe035]: #error directive: You now need to define either FIXED_POINT or FLOATING_POINT E:\StellarisWareM3_9D92\third_party\speex-1.2rc1\libspeex\arch.h 65②错误原因:7、①错误描述:Fatal Error[Pe035]: #error directive: "Unrecognized/undefined driver for DISK0!" E:\StellarisWareM3_9D92\third_party\fatfs\port\dual-disk-driver.c 62Error while running C/C++ Compiler②错误原因:UART_BUFFEREDDISK0_DK_LM3S9B96DISK1_USB_MSCINCLUDE_BGET_STATS8、①错误描述:Error[Pe020]: identifier "ROM_pvAESTable" is undefined E:\SWM3_9D92(6.20)\third_party\aes\aes.c 359Error while running C/C++ Compiler②错误原因:10、①错误描述:Fatal Error[Pe035]: #error directive: You now need to define either FIXED_POINT or FLOATING_POINT E:\SWM3_9D92(6.20)\third_party\speex-1.2rc1\libspeex\arch.h 65Error while running C/C++ Compiler②错误原因:11、①错误描述:Error[Li005]: no definition for "ROM_SysCtlClockSet" [referenced from E:\SWM3_9D92(6.20)\boards\dk-lm3s9b96\safertos_demo\Debug\Obj\safertos_demo.o] Error[Li005]: no definition for "ROM_FlashUserGet" [referenced from E:\SWM3_9D92(6.20)\boards\dk-lm3s9b96\safertos_demo\Debug\Obj\lwip_task.o] Error[Li005]: no definition for "ROM_IntPrioritySet" [referenced from E:\SWM3_9D92(6.20)\boards\dk-lm3s9b96\safertos_demo\Debug\Obj\lwip_task.o] Error[Li005]: no definition for "ROM_GPIOPinTypeGPIOOutput" [referenced from E:\SWM3_9D92(6.20)\boards\dk-lm3s9b96\safertos_demo\Debug\Obj\led_task.o]Error[Li005]: no definition for "ROM_GPIOPinWrite" [referenced from E:\SWM3_9D92(6.20)\boards\dk-lm3s9b96\safertos_demo\Debug\Obj\led_task.o]Error[Lp011]: section placement failed: unable to allocate space for sections/blocks with a total estimated minimum size of 0x11e54 bytes in<[0x20000000-0x2000ffff]> (total uncommitted space 0x10000).Error while running Linker②错误原因:12、①错误描述:Error[Lp011]: section placement failed: unable to allocate space for sections/blocks with a total estimated minimum size of 0x11e54 bytes in <[0x20000000-0x2000ffff]> (total uncommitted space 0x10000).Error while running Linker。
IAR环境下编译Usart.c常见错误及解决

IAR环境下编译Usart.c常见错误及解决Usart.c部分源代码如下:#if 1#pragma import(__use_no_semihosting) //标准库需要的⽀持函数struct __FILE{int handle;};FILE __stdout; //定义_sys_exit()以避免使⽤半主机模式_sys_exit(int x){x = x;}//重定义fputc函数int fputc(int ch, FILE *f){while((USART1->SR&0X40)==0);//循环发送,直到发送完毕USART1->DR = (u8) ch;return ch;}#endif编译之后显⽰上⾯的这⼀段程序出错,问题如下:// 重定义fput Error[Pe101]: "__FILE" has already been declared in the current scope (at line 25 of "C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\arm\inc\c\ystdio.h") E:\stm32\STM31IAR_LCD\SYSTEM\usart\usart.c 40Error[Pe260]: explicit type is missing ("int" assumed) E:\stm32\STM31IAR_LCD\SYSTEM\usart\usart.c 48Error while running C/C++ Compiler解决如下,添加:#if defined( __ICCARM__ ) // IAR下使⽤// 重定义fputc函数int fputc(int ch, FILE *f){while((USART2->SR&0X40)==0);//循环发送,直到发送完毕USART2->DR = (u8) ch;return ch;}#else注释掉#if 1即可,需要的可以参考。
IAR编译错误总结之大全12345

IAR编译错误IAR中的error[27](2009-09-23 10:19:05)转载分类:嵌入式_etung标签:嵌入式_etungit发现IAR的链接器不允许在头文件中定义一个全局变量,然后有两个.c文件去引用。
而VC6.0就可以这样做。
所报错误示例为:Error[e27]: Entry "tagData" in module Wmmp ( E:\work\MiniFrame\PRJ\LED200_W4\IAR\Debug_in_flash\Obj\Wmmp.r79) redefined in module app ( E:\work\MiniFrame\PRJ\LED200_W4\IAR\Debug_in_flash\Obj\app.r79 )将头文件中变量前加上extern 后即不再报错。
程序编译时出现以下错误,实在不知道是什么原因,特向大家请教!Error[Pe223]: function "assert_param" declared implicitly E:\涡街流量计\设计\板2\程序\dft02\library\src\stm32f10x_nvic.c 351Error[Pa045]: function "assert_param" has no prototype E:\涡街流量计\设计\板2\程序\dft02\library\src\stm32f10x_rcc.c 500Error[Pe223]: function "assert_param" declared implicitly E:\涡街流量计\设计\板2\程序\dft02\library\src\stm32f10x_rcc.c 530第一你用了中文文件夹第二没有定义assert_param这个函数不太明白,assert_param函数在stm32f10x_conf.h中已经定义了。
IAR620编译错误

IAR 6.20编译错误清单1、①错误描述:Tool Internal Error:Internal Error: [CoreUtil/General]: Access violation (0xc0000005) at 007588A5 (reading from address 0x0)Internal Error: [CoreUtil/General]: Access violation (0xc0000005) at 007588A5 (reading from address 0x0)Error while running C/C++ Compiler②错误原因:High配置设置为Size,应该为Low2、①错误描述:Fatal Error[Pe1696]: cannot open source file "inc/hw_types.h"E:\StellarisWareM3_9D92\boards\dk-lm3s9b96\boot_demo2\boot_demo2.c 25②错误原因:C/C++ Complier(Assember)->Preprocessor->Additional include directories:$PROJ_DIR$\.$PROJ_DIR$\..$PROJ_DIR$\..\..\..3、①错误描述:Fatal Error[Pe1696]: cannot open source file "lwip/opt.h"E:\StellarisWareM3_9D92\utils\lwiplib.h 44②错误原因:C/C++ Complier-(Assember)>Preprocessor->Additional include directories:$PROJ_DIR$\..\..\..\third_party\lwip-$PROJ_DIR$\..\..\..\third_party\bget$PROJ_DIR$\..\..\..\third_party\lwip-$PROJ_DIR$\..\..\..\third_party\lwip-$PROJ_DIR$\..\..\..\third_party\lwip-$PROJ_DIR$\..\..\..\third_party\lwip-$PROJ_DIR$\..\..\..\third_party4、①错误描述:Fatal Error[Pe035]: #error directive: Unrecognized COMPILER! E:\StellarisWareM3_9D92\boards\dk-lm3s9b96\drivers\set_pinout.h 59Error while running C/C++ Compiler②错误原因:C/C++ Complier-(Assember)>Preprocessor->Defined symbols: ewarm5、①错误描述:Error[Pe020]: identifier "ROM_pvAESTable" is undefined E:\StellarisWareM3_9D92\third_party\aes\aes.c 319②错误原因:6、①错误描述:Error[Li005]: no definition for "main" [referenced from cmain.o(rt7M_tl.a)]Error while running Linker②错误原因:定义函数:int main(void) { return (0); }7、①错误描述:Error[Li005]: no definition for "main" [referenced from cmain.o(rt7M_tl.a)]Error while running Linker②错误原因:如果是库是库函数,在:General Options->Output->Output file:选择:Library项4、①错误描述:Fatal Error[Pe1696]: cannot open source file "uip.h" E:\StellarisWareM3_9D92\third_party\uip-1.0\apps\dhcpc\dhcpc.c 37②错误原因:5、①错误描述:②错误原因:$PROJ_DIR$\..\..\..\third_party\lwip-$PROJ_DIR$\..\..\..\third_party\bget$PROJ_DIR$\..\..\..\third_party\lwip-$PROJ_DIR$\..\..\..\third_party\lwip-$PROJ_DIR$\..\..\..\third_party\lwip-$PROJ_DIR$\..\..\..\third_party$PROJ_DIR$\..\..\..\third_party\uip-1.0$PROJ_DIR$\..\..\..\third_party\uip-1.0\uip$PROJ_DIR$\..\..\..\third_party\uip-1.0\apps$PROJ_DIR$\..\..\..\third_party\\speex-1.2rc1\include$PROJ_DIR$\..\..\..\third_party\\speex-1.2rc1\include\speex$PROJ_DIR$\..\..\..\third_party\\speex-1.2rc1\stellaris6、①错误描述:Fatal Error[Pe035]: #error directive: You now need to define either FIXED_POINT or FLOATING_POINT E:\StellarisWareM3_9D92\third_party\speex-1.2rc1\libspeex\arch.h 65②错误原因:7、①错误描述:Fatal Error[Pe035]: #error directive: "Unrecognized/undefined driver for DISK0!" E:\StellarisWareM3_9D92\third_party\fatfs\port\dual-disk-driver.c 62Error while running C/C++ Compiler②错误原因:UART_BUFFEREDDISK0_DK_LM3S9B96DISK1_USB_MSCINCLUDE_BGET_STATS8、①错误描述:Error[Pe020]: identifier "ROM_pvAESTable" is undefined E:\SWM3_9D92(6.20)\third_party\aes\aes.c 359Error while running C/C++ Compiler②错误原因:10、①错误描述:Fatal Error[Pe035]: #error directive: You now need to define either FIXED_POINT or FLOATING_POINT E:\SWM3_9D92(6.20)\third_party\speex-1.2rc1\libspeex\arch.h 65Error while running C/C++ Compiler②错误原因:11、①错误描述:Error[Li005]: no definition for "ROM_SysCtlClockSet" [referenced from E:\SWM3_9D92(6.20)\boards\dk-lm3s9b96\safertos_demo\Debug\Obj\safertos_demo.o]Error[Li005]: no definition for "ROM_FlashUserGet" [referenced from E:\SWM3_9D92(6.20)\boards\dk-lm3s9b96\safertos_demo\Debug\Obj\lwip_task.o]Error[Li005]: no definition for "ROM_IntPrioritySet" [referenced from E:\SWM3_9D92(6.20)\boards\dk-lm3s9b96\safertos_demo\Debug\Obj\lwip_task.o]Error[Li005]: no definition for "ROM_GPIOPinTypeGPIOOutput" [referenced from E:\SWM3_9D92(6.20)\boards\dk-lm3s9b96\safertos_demo\Debug\Obj\led_task.o]Error[Li005]: no definition for "ROM_GPIOPinWrite" [referenced from E:\SWM3_9D92(6.20)\boards\dk-lm3s9b96\safertos_demo\Debug\Obj\led_task.o]Error[Lp011]: section placement failed: unable to allocate space for sections/blocks with a total estimated minimum size of 0x11e54 bytes in<[0x-0x2000ffff]> (total uncommitted space 0x10000).Error while running Linker②错误原因:12、①错误描述:Error[Lp011]: section placement failed: unable to allocate space for sections/blocks with a total estimated minimum size of 0x11e54 bytes in <[0x-0x2000ffff]> (total uncommitted space 0x10000).Error while running Linker。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
【转】IAR常见编译错误—比较全
IAR常见编译错误,比较全面的:
前面的序号表示错误编号
0 Format chosen cannot support banking
Format unable to support banking.
1 Corrupt file. Unexpected end of file in module module (file) encountered
XLINK aborts immediately. Recompile or reassemble, or check the compatibility between XLINK and C compiler.
2 Too many errors encountered (>100)
XLINK aborts immediately.
3 Corrupt file. Checksum failed in module module (file). Linker checksum is linkcheck, module checksum is modcheck
XLINK aborts immediately. Recompile or reassemble.
4 Corrupt file. Zero length identifier encountered in module module (file)
XLINK aborts immediately. Recompile or reassemble.
5 Address type for CPU incorrect. Error encountered in module
module (file)
XLINK aborts immediately. Check that you are using the right files and libraries.
6 Program module module redeclared in file file. Ignoring second module
XLINK will not produce code unless the Always generate output (-B) option (forced dump) is used.
7 Corrupt file. Unexpected UBROF – format end of file encountered
in module module (file)
XLINK aborts immediately. Recompile or reassemble.
8 Corrupt file. Unknown or misplaced tag encountered in module module (file). Tag tag
XLINK aborts immediately. Recompile or reassemble.
9 Corrupt file. Module module start unexpected in file file
XLINK aborts immediately. Recompile or reassemble.
10 Corrupt file. Segment no. segno declared twice in module module (file)
XLINK aborts immediately. Recompile or reassemble.
11 Corrupt file. External no. ext no declared twice in module module (file)
XLINK aborts immediately. Recompile or reassemble.
12 Unable to open file file
XLINK aborts immediately. If you are using the command line, check the
environment variable XLINK_DFLTDIR.
13 Corrupt file. Error tag encountered in module module (file)
A UBROF error tag was encountered. XLINK aborts immediately. Recompile or reassemble.
14 Corrupt file. Local local defined twice in module module (file) XLINK aborts immediately. Recompile or reassemble.
15 This is no error message with this number.
16 Segment segment is too long for segment definition
The segment defined does not fit into the memory area reserved for it. XLINK
aborts immediately.
17 Segment segment is defined twice in segment definition -Zsegdef XLINK aborts immediately.
18 Range error, compiler/assembler_message
Some instructions do not work unless a certain condition holds after linking.
XLINK has verified that the conditions do not hold when the files are linked.
For information about how to interpret the error message, see Range errors, page 12.
The check can be suppressed by the -R option.
19 Corrupt file. Undefined segment referenced in module module (file) XLINK aborts immediately. Recompile or reassemble.。