KEIL软件错误代码与错误信息_第1页
KEIL软件错误代码与错误信息_第2页
KEIL软件错误代码与错误信息_第3页
KEIL软件错误代码与错误信息_第4页
已阅读5页,还剩22页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、.错误代码及错误信息错误释义error 1: Out of memory内存溢出error 2: Identifier expected缺标识符error 3: Unknown identifier未定义的标识符error 4: Duplicate identifier重复定义的标识符error 5: Syntax error语法错误error 6: Error in real constant实型常量错误error 7: Error in integer constant整型常量错误error 8: String constant exceeds line字符串常量超过一行error 10:

2、 Unexpected end of file文件非正常结束error 11: Line too long行太长error 12: Type identifier expected未定义的类型标识符error 13: Too many open files打开文件太多error 14: Invalid file name无效的文件名error 15: File not found文件未找到error 16: Disk full 磁盘满error 17: Invalid compiler directive无效的编译命令error 18: Too many files文件太多error 19:

3、Undefined type in pointer def指针定义中未定义类型error 20: Variable identifier expected缺变量标识符error 21: Error in type类型错误.专业专注.error 22: Structure too large结构类型太长error 23: Set base type out of range集合基类型越界error 24: File components may not be files or objectsfile分量不能是文件或对象error 25: Invalid string length无效的字符串长度

4、error 26: Type mismatch类型不匹配error 27 :error 27 : Invalid subrange base type无效的子界基类型error 28 :Lower bound greater than upper bound下界超过上界error 29 :Ordinal type expected缺有序类型error 30 :Integer constant expected缺整型常量error 31 :Constant expected 缺常量error 32 :Integer or real constant expected缺整型或实型常量error 3

5、3 :Pointer Type identifier expected缺指针类型标识符error 34:Invalid function result type无效的函数结果类型error 35:Label identifier expected缺标号标识符error 36 :BEGIN expected缺 BEGINerror 37 :END expected缺 END.专业专注.error 38 :Integer expression expected缺整型表达式error 39 :Ordinal expression expected缺有序类型表达式error 40 :Boolean e

6、xpression expected缺布尔表达式error 41 :Operand types do not match操作数类型不匹配error 42 :Error in expression表达式错误error 43 :Illegal assignment非法赋值error 44:Field identifier expected缺域标识符error 45:Object file too large目标文件太大error 46 :Undefined external未定义的外部过程与函数error 47:Invalid object file record无效的 OBJ 文件格式error

7、 48 :Code segment too large代码段太长error 49 :Data segment too large数据段太长error 50:DO expected 缺 DOerror 51 :Invalid PUBLIC definition无效的 PUBLIC 定义error 52 :Invalid EXTRN definition无效的 EXTRN 定义error 53: Too many EXTRN definitions太多的 EXTRN 定义error 54 :OF expected 缺 OFerror 55:INTERFACE expected 缺 INTERFAC

8、Eerror 56:Invalid relocatable reference无效的可重定位引用error 57:THEN expected 缺 THENerror 58:TO or DOWNTO expected缺 TO 或 DOWNTO.专业专注.error 59 :Undefined forward提前引用未经定义的说明error 61:Invalid typecast无效的类型转换error 62 :Division by zero被零除error 63:Invalid file type无效的文件类型error 64 :Cannot read or write variables o

9、f this type不能读写此类型变量error 65 :Pointer variable expected缺指针类型变量error 66 :String variable expected缺字符串变量error 67 :String expression expected缺字符串表达式error 68 :Circular unit reference单元 UNIT 部件循环引用error 69 :Unit name mismatch单元名不匹配error 70 :Unit version mismatch单元版本不匹配error 71:Internal stack overflow内部堆栈

10、溢出error 72:Unit file format error单元文件格式错误error 73 :IMPLEMENTATION expected缺IMPLEMENTATIONerror 74 :Constant and case types do not match常量和CASE 类型不匹配error 75 :Record or object variable expected缺记录或对象变量error 76 :Constant out of range常量越界.专业专注.error 77 :File variable expected缺文件变量error 78 :Pointer expr

11、ession expected缺指针表达式error 79 :Integer or real expression expected缺整型或实型表达式error 80:Label not within current block标号不在当前块内error 81:Label already defined标号已定义error 82:Undefined label in preceding statement part在前面未定义标号error 83 :Invalid argument无效的 参数error 84 :UNIT expected 缺 UNITerror 85: ""

12、; expected缺“;”error 86 : ":" expected缺“:”error 87 : "," expected缺“,”error 88 : "(" expected缺“(”error 89 : ")" expected缺“)”error 90 : "=" expected缺“ =”error 91: ":=" expected 缺 “ := ”error 92: "" or "(." Expected缺“或”“( .

13、”error 93: "" or ".)" expected缺“或”“ . )”error 94: "." expected缺“.”error 95: "." expected缺“ .”error 96:Too many variables变量太多.专业专注.error 97 :Invalid FOR control variable无效的 FOR 循环控制变量error 98 :Integer variable expected缺整型变量error 99 :Files and procedure types ar

14、e not allowed here该处不允许文件和过程类型error 100 : String length mismatch字符串长度不匹配error 101: Invalid ordering of fields无效域顺序error 102: String constant expected缺字符串常量error 103: Integer or real variable expected缺整型或实型变量error 104: Ordinal variable expected缺有序类型变量error 105 : INLINE error INLINE 错误error 106 : Char

15、acter expression expected缺字符表达式error 107 : Too many relocation items重定位项太多error 108: Overflow in arithmetic operation算术运算溢出error 112 : CASE constant out of range CASE常量越界error 113: Error in statement 表达式错误error 114: Cannot call an interrupt procedure不能调用中断过程error 116 : Must be in 8087 mode to compil

16、e this必须在8087 模式编译.专业专注.error 117 : Target address not found找不到目标地址error 118 : Include files are not allowed here该处不允许INCLUDE 文件error 119: No inherited methods are accessible here该处继承方法不可访问error 121: Invalid qualifier 无效的限定符error 122: Invalid variable reference无效的变量引用error 123 : Too many symbols 符号太

17、多error 124: Statement part too large语句体太长error 126 : Files must be var parameters文件必须是变量形参error 127 : Too many conditional symbols条件符号太多error 128: Misplaced conditional directive条件指令错位error 129 : ENDIF directive missing 缺 ENDIF 指令error 130: Error in initial conditional defines初始条件定义错误error 131: Head

18、er does not match previous definition和前面定义的过程或函数不匹配error 133 : Cannot evaluate this expression不能计算该表达式error 134 : Expression incorrectly terminated表达式错误结.专业专注.束error 135 : Invalid format specifier无效格式说明符error 136 : Invalid indirect reference无效的间接引用error 137 : Structured variables are not allowed her

19、e该处不允许结构变量error 138 : Cannot evaluate without System unit没有System 单元不能计算error 139 : Cannot access this symbol不能存取符号error 140: Invalid floating point operation无效的符号运算error 141 : Cannot compile overlays to memory不能编译覆盖模块至内存error 142: Pointer or procedural variable expected缺指针或过程变量error 143: Invalid pr

20、ocedure or function reference无效的过程或函数调用error 144: Cannot overlay this unit不能覆盖该单元error 146: File access denied 不允许文件访问error 147: Object type expected缺对象类型error 148: Local object types are not allowed不允许局部对象类型error 149 : VIRTUAL expected缺 VIRTUALerror 150: Method identifier expected缺方法标识符.专业专注.error

21、151: Virtual constructors are not allowed不允许虚构造函数error 152: Constructor identifier expected缺构造函数标识符error 153: Destructor identifier expected缺析构函数标识符error 154: Fail only allowed within constructors只能在构造函数内使用Fail 标准过程error 155 : Invalid combination of opcode and operands操作数与操作符无效组合error 156 : Memory r

22、eference expected缺内存引用指针error 157 : Cannot add or subtract relocatable symbols不能加减可重定位符号error 158 : Invalid register combination无效寄存器组合error 159 : 286/287 instructions are not enabled未激活286/287 指令error 160 : Invalid symbol reference无效符号指针error 161 : Code generation error代码生成错误error 162 : ASM expecte

23、d缺 ASMerror 166 : Procedure or function identifier expected缺过程或函数标识符error 167 : Cannot export this symbol不能输出该符号.专业专注.error 168 : Duplicate export name外部文件名重复error 169 : Executable file header too large可执行文件头太长error 170 : Too many segments段太多一、 运行错误信息运行错误分为四类 :1-99 为 DOS 错误;100-149 为 I/O 错误,发生 I/O 后

24、,如果使用了编译开关 $I+ ,程序将终止执行 ,否则编译开关为 $I- ,程序继续执行 ,并由 IOResult 函数返回错误信息 ; 150-199 为严重错误 , 200-255 为致命错误 ,致命错误将立即终止程序执行 。错误代码及错误信息错误释义error 1 : Invalid function number无效函数号error 2 : File not found文件未找到error 3: Path not found找不到路径error 4: Too many open files打开文件太多error 5: File access denied文件不允许访问error 6:

25、Invalid file handle无效文件句柄error 12 :Invalid file access code无效文件存取代码.专业专注.error 15 :Invalid drive number无效驱动器号error 16 :Cannot remove current directory不能删除当前目录error 17 :Cannot rename across drives不能跨驱动器改名error 18 :No more files 没有文件了error 100: Disk read error读磁盘错error 101: Disk write error写磁盘错error 1

26、02: File not assigned文件变量未赋值error 103: File not open 文件未打开error 104: File not open for input文件未打开为写方式error 105: File not open for output文件未打开为读方式error 106: Invalid numeric format无效数值格式error 150: Disk is write-protected磁盘写保护error 151: Bad drive request struct length错误的驱动器请求结构长度error 152: Drive not re

27、ady驱动器未准备好error 154 : CRC error in data数据 CRC 校验错error 156: Disk seek error磁盘定位错error 157 : Unknown media type未知的介质类型error 158 : Sector Not Found找不到扇区error 159: Printer out of paper打印机缺纸error 160: Device write fault设备写错误.专业专注.error 161 : Device read fault设备读错误error 162 : Hardware failure硬件故障error 20

28、0 : Division by zero被零除error 201 : Range check error范围检查出错error 202: Stack overflow error栈溢出error 203: Heap overflow error堆溢出error 204: Invalid pointer operation无效的指针操作error 205: Floating point overflow浮点运算上溢error 206: Floating point underflow浮点运算下溢error 207: Invalid floating point operation无效的浮点运算e

29、rror 208: Overlay manager not installed未安装覆盖管理程序error 209: Overlay file read error读覆盖文件错误error 210: Object not initialized对象未初始化error 211: Call to abstract method调用抽象方法error 212: Stream registration error流注 _册错误error 213: Collection index out of range集合下标越界error 214: Collection overflow error集合上溢err

30、or 215: Arithmetic overflow error算术运算上溢error 216: General Protection fault一般保护性错误.专业专注.keil c 编译器错误与解决方法1. Warning280: i :unreferenlocaledvariable说明局部变量i 在函数中未作任何的存取操作解决方法消除函数中 i 变量的宣告2 Warning206: Music3 :missingfunction-prototype说明 Music3( ) 函数未作宣告或未作外部宣告所以无法给其他函数调用解决方法将叙述void Music3(void)写在程序的最前端

31、作宣告如果是其他文件的函数则要写成 extern void Music3(void),即作外部宣告3 Compling :C:8051MANN.CError:318:canopentfile beep.h说明在编译C:8051MANN.C程序过程中由于main.c 用了指令 i nclude“beep.h ”,但却找不到所致解决方法编写一个beep.h 的包含档并存入到c:8051的工作目录中4 Compling:C:8051LED.CError 237: LedOn :functionalready has a body.专业专注.说明 LedOn( ) 函数名称重复定义即有两个以上一样的函

32、数名称解决方法修正其中的一个函数名称使得函数名称都是独立的5 *WARNING 16:UNCALLED SEGMENT,IGNORED FOR OVERLAY PROCESSSEGMENT: ?PR?_DELAYX1MS?DELAY说明 DelayX1ms( ) 函数未被其它函数调用也会占用程序记忆体空间解决方法去掉DelayX1ms( ) 函数或利用条件编译#if .#endif,可保留该函数并不编译6 *WARNING 6 :XDATA SPACE MEMORY OVERLAP FROM : 0025HTO: 0025H说明外部资料ROM 的 0025H 重复定义地址解决方法外部资料ROM

33、 的定义如下Pdata unsigned char XFR_ADC _at_0x25其中 XFR_ADC变量的名称为0x25,请检查是否有其它的变量名称也是定义在0x25 处并修正它7 WARNING206: DelayX1msmissing:function-prototypeC:8051INPUT.C.专业专注.Error 267: DelayX1ms :requiresANSI-style prototype C:8051INPUT.C说明程序中有调用DelayX1ms 函数但该函数没定义即未编写程序内容或函数已定义但未作宣告解决方法编写DelayX1ms 的内容编写完后也要作宣告或作外

34、部宣告可在 delay.h 的包含档宣告成外部以便其它函数调用8 *WARNING 1:UNRESOLVED EXTERNAL SYMBOLSYMBOL:MUSIC3MODULE:C:8051MUSIC.OBJ(MUSIC)*WARNING 2:REFERENCE MADE TO UNRESOLVED EXTERNALSYMBOL:MUSIC3MODULE:C:8051MUSIC.OBJ(MUSIC)ADDRESS:0018H说明程序中有调用MUSIC 函数但未将该函数的含扩档C 加入到工程档 Prj 作编译和连接解决方法设MUSIC3 函数在 MUSIC C 里将 MUSIC C 添加到工程

35、文件中去.专业专注.9 *ERROR 107:ADDESS SPACE OVERFLOW SPACE: DATASEGMENT: _DATA_GOUP_LENGTH: 0018H*ERROR 118: REFERENCE MADE TO ERRONEOUS EXTERN ALSYMBOL: VOLUMEMODULE: C:8051OSDM.OBJ (OSDM)ADDRESS: 4036H说明 data 存储空间的地址范围为00x7f, 当公用变量数目和函数里的局部变量如果存储模式设为SMALL 则局部变量先使用工作寄存器R2R7 作暂存当存储器不够用时则会以 data 型别的空间作暂存的个数超

36、过 0x7f 时就会出现地址不够的现象解决方法将以 data 型别定义的公共变量修改为 idata 型别的定义10.*WARNING L15: MULTIPLE CALL TO SEGMENTSEGMENT: ?PR?_WRITE_GMVLX1_REG?D_GMVLX1CALLER1: ?PR?VSYNC_INTERRUPT?MAINCALLER2: ?C_C51STARTUP.专业专注.*WARNING L15: MULTIPLE CALL TO SEGMENTSEGMENT: ?PR?_SPI_SEND_WORD?D_SPICALLER1: ?PR?VSYNC_INTERRUPT?MAIN

37、CALLER2: ?C_C51STARTUP*WARNING L15: MULTIPLE CALL TO SEGMENTSEGMENT: ?PR?SPI_RECEIVE_WORD?D_SPICALLER1: ?PR?VSYNC_INTERRUPT?MAINCALLER2: ?C_C51STARTUP该警告表示连接器发现有一个函数可能会被主函数和一个中断服务程序 (或者调用中断服务程序的函数 )同时调用 ,或者同时被多个中断服务程序调用。出现这种问题的原因之一是这个函数是不可重入性函数 ,当该函数运行时它可能会被一个中断打断 ,从而使得结果发生变化并可能会引起一些变量形式的冲突 (即引起函数内一

38、些数据的丢失,可重入性函数在任何时候都可以被ISR 打断 ,一段时间后又可以运行 ,但是相应数据不会丢失)。原因之二是用于局部变量和变量 (暂且这样翻译 ,arguments, 自变量 ,变元一数值 ,用于确定程序或子程序的值)的内存区被其他函数的内存区所覆盖,.专业专注.如果该函数被中断,则它的内存区就会被使用 ,这将导致其他函数的内存冲突。例如 ,第一个警告中函数WRITE_GMVLX1_REG 在D_GMVLX1.C 或者 D_GMVLX1.A51 被定义 ,它被一个中断服务程序或者一个调用了中断服务程序的函数调用了,调用它的函数是VSYNC_INTERRUPT,在MAIN.C 中。解决

39、方法 :如果你确定两个函数决不会在同一时间执行(该函数被主程序调用并且中断被禁止),并且该函数不占用内存(假设只使用寄存器),则你可以完全忽略这种警告。如果该函数占用了内存,则应该使用连接器(linker)OVERLAY 指令将函数从覆盖分析(overlay analysis) 中除去 ,例如:OVERLAY (?PR?_WRITE_GMVLX1_REG?D_GMVLX1 ! *)上面的指令防止了该函数使用的内存区被其他函数覆盖。如果该函数中调用了其他函数,而这些被调用在程序中其他地方也被调用,你可能会需要也将这些函数排除在覆盖分析(overlay analysis) 之外。 这种 OVERL

40、AY 指令能.专业专注.使编译器除去上述警告信息。如果函数可以在其执行时被调用,则情况会变得更复杂一些。这时可以采用以下几种方法:1.主程序调用该函数时禁止中断,可以在该函数被调用时用#pragma disable语句来实现禁止中断的目的 。必须使用 OVERLAY 指令将该函数从覆盖分析中除去 。2.复制两份该函数的代码 ,一份到主程序中 ,另一份复制到中断服务程序中 。3.将该函数设为重入型。例如:void myfunc(void) reentrant .这种设置将会产生一个可重入堆栈,该堆栈被被用于存储函数值和局部变量 ,用这种方法时重入堆栈必须在STARTUP.A51 文件中配置 。这

41、种方法消耗更多的RAM 并会降低重入函数的执行速度。11. * WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESSSEGMENT: ?PR?_COMPARE?TESTLCD.专业专注.说明:程序中有些函数 (或片段 )以前(调试过程中 )从未被调用过 ,或者根本没有调用它的语句 。这条警告信息前应该还有一条信息指示出是哪个函数导致了这一问题 。 只要做点简单的调整就可以 。不理它也没什么大不了的。解决方法 :去掉 COMPARE()函数或利用条件编译#if .#endif,可保留该函数并不编译。-C 编译器错误信息中文翻译Amb

42、iguous operators need parentheses不明确的运算需要用括号括起Ambiguous symbol xxx不明确的符号Argument list syntax error参数表语法错误Array bounds missing丢失数组界限符Array size toolarge数组尺寸太大Bad character in paramenters参数中有不适当的字符Bad file name format in include directive包含命令中文件名格式不正确.专业专注.Bad ifdef directive synatax编译预处理ifdef 有语法错Bad

43、 undef directive syntax编译预处理 undef有语法错Bit field too large位字段太长Call of non-function调用未定义的函数Call to function with no prototype调用函数时没有函数的说明Cannot modify a const object不允许修改常量对象Case outside of switch漏掉了 case 语句Case syntax error Case语法错误Code has no effect代码不可述不可能执行到Compound statement missing分程序漏掉 "&

44、quot;Conflicting type modifiers不明确的类型说明符Constant expression required要求常量表达式Constant out of range in comparison在比较中常量超出范围Conversion may lose significant digits转换时会丢失意义的数字Conversion of near pointer not allowed不允许转换近指针Could not find file xxx找不到 XXX 文件Declaration missing ;说明缺少 ";"Declaration s

45、yntax error说明中出现语法错误Default outside of switch Default出现在 switch 语句之外Define directive needs an identifier定义编译预处理需要标识.专业专注.符Division by zero用零作除数Do statement must have while Do-while语句中缺少while 部分Enum syntax error枚举类型语法错误Enumeration constant syntax error枚举常数语法错误Error directive :xxx错误的编译预处理命令Error writi

46、ng output file写输出文件错误Expression syntax error表达式语法错误Extra parameter in call调用时出现多余错误File name too long 文件名太长Function call missing )函数调用缺少右括号Fuction definition out of place函数定义位置错误Fuction should return a value函数必需返回一个值Goto statement missing label Goto语句没有标号Hexadecimal or octal constant too large16进制或 8 进制常数太大Illegal character x非法字符 xIllegal initialization非法的初始化Illegal octal digit非法的 8 进制数字Illegal pointer subtraction非法的指针相减Illegal structure operation非法的结构体操作.专业专注.Illegal use of floating point非法的浮点运算Illegal use of pointer指针使用非法Improper use of a typedefsymbol类型定义符号使用不恰当In-li

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论