欧美色欧美亚洲高清在线观看,国产特黄特色a级在线视频,国产一区视频一区欧美,亚洲成a 人在线观看中文

  1. <ul id="fwlom"></ul>

    <object id="fwlom"></object>

    <span id="fwlom"></span><dfn id="fwlom"></dfn>

      <object id="fwlom"></object>

      keil錯誤總結(jié)

      時間:2019-05-12 03:42:43下載本文作者:會員上傳
      簡介:寫寫幫文庫小編為你整理了多篇相關(guān)的《keil錯誤總結(jié)》,但愿對你工作學(xué)習(xí)有幫助,當然你在寫寫幫文庫還可以找到更多《keil錯誤總結(jié)》。

      第一篇:keil錯誤總結(jié)

      KEIL編譯錯誤信息表

      錯誤代碼及錯誤信息 錯誤釋義

      error 1: Out of memory 內(nèi)存溢出

      error 2: Identifier expected 缺標識符

      error 3: Unknown identifier 未定義的標識符

      error 4: Duplicate identifier 重復(fù)定義的標識符

      error 5: Syntax error 語法錯誤

      error 6: Error in real constant 實型常量錯誤

      error 7: Error in integer constant 整型常量錯誤

      error 8: String constant exceeds line 字符串常量超過一行

      error 10: Unexpected end of file 文件非正常結(jié)束

      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: Undefined type in pointer def 指針定義中未定義類型

      error 20: Variable identifier expected 缺變量標識符

      error 21: Error in type 類型錯誤

      error 22: Structure too large 結(jié)構(gòu)類型太長

      error 23: Set base type out of range 集合基類型越界

      error 24: File components may not be files or objectsfile分量不能是文件或?qū)ο?/p>

      error 25: Invalid string length 無效的字符串長度

      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 缺整型或?qū)嵭统A?/p>

      error 33:Pointer Type identifier expected 缺指針類型標識符

      error 34:Invalid function result type 無效的函數(shù)結(jié)果類型

      error 35:Label identifier expected 缺標號標識符

      error 36:BEGIN expected 缺BEGIN error 37:END expected 缺END

      error 38:Integer expression expected 缺整型表達式 error 39:Ordinal expression expected 缺有序類型表達式

      error 40:Boolean expression expected 缺布爾表達式

      error 41:Operand types do not match 操作數(shù)類型不匹配

      error 42:Error in expression 表達式錯誤

      error 43:Illegal assignment 非法賦值

      error 44:Field identifier expected 缺域標識符

      error 45:Object file too large 目標文件太大

      error 46:Undefined external 未定義的外部過程與函數(shù)

      error 47:Invalid object file record 無效的OBJ文件格式

      error 48:Code segment too large 代碼段太長

      error 49:Data segment too large 數(shù)據(jù)段太長

      error 50:DO expected 缺DO

      error 51:Invalid PUBLIC definition 無效的PUBLIC定義

      error 52:Invalid EXTRN definition 無效的EXTRN定義

      error 53: Too many EXTRN definitions 太多的EXTRN定義

      error 54:OF expected 缺O(jiān)F

      error 55:INTERFACE expected 缺INTERFACE

      error 56:Invalid relocatable reference 無效的可重定位引用

      error 57:THEN expected 缺THEN

      error 58:TO or DOWNTO expected 缺TO或DOWNTO error 59:Undefined forward 提前引用未經(jīng)定義的說明

      error 61:Invalid typecast 無效的類型轉(zhuǎn)換

      error 62:Division by zero 被零除

      error 63:Invalid file type 無效的文件類型

      error 64:Cannot read or write variables of this type 不能讀寫此類型變量

      error 65:Pointer variable expected 缺指針類型變量

      error 66:String variable expected 缺字符串變量

      error 67:String expression expected 缺字符串表達式

      error 68:Circular unit reference 單元UNIT部件循環(huán)引用

      error 69:Unit name mismatch 單元名不匹配

      error 70:Unit version mismatch 單元版本不匹配

      error 71:Internal stack overflow 內(nèi)部堆棧溢出

      error 72:Unit file format error 單元文件格式錯誤

      error 73:IMPLEMENTATION expected 缺IMPLEMENTATION

      error 74:Constant and case types do not match 常量和CASE類型不匹配

      error 75:Record or object variable expected 缺記錄或?qū)ο笞兞?/p>

      error 76:Constant out of range 常量越界

      error 77:File variable expected 缺文件變量

      error 78:Pointer expression expected 缺指針表達式

      error 79:Integer or real expression expected 缺整型或?qū)嵭捅磉_式

      error 80:Label not within current block 標號不在當前塊內(nèi)

      error 81:Label already defined 標號已定義 error 82:Undefined label in preceding statement part 在前面未定義標號

      error 83:Invalid @ argument 無效的@參數(shù)

      error 84:UNIT expected 缺UNIT error 85: “;” expected 缺“;” error 86: “:” expected 缺“:” error 87: “,” expected 缺“,” error 88: “(” expected 缺“(” error 89: “)” expected 缺“)” error 90: “=” expected 缺“=” error 91: “:=” expected 缺“:=”

      error 92: “[” or “(.” Expected 缺“[”或“(.” error 93: “]” or “.)” expected 缺“]”或“.)” error 94: “.” expected 缺“.” error 95: “..” expected 缺“..”

      error 96:Too many variables 變量太多

      error 97:Invalid FOR control variable 無效的FOR循環(huán)控制變量

      error 98:Integer variable expected 缺整型變量

      error 99:Files and procedure types are 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 缺整型或?qū)嵭妥兞?/p>

      error 104:Ordinal variable expected 缺有序類型變量

      error 105:INLINE error INLINE錯誤

      error 106:Character expression expected 缺字符表達式

      error 107:Too many relocation items 重定位項太多

      error 108:Overflow in arithmetic operation 算術(shù)運算溢出

      error 112:CASE constant out of range CASE常量越界

      error 113:Error in statement 表達式錯誤

      error 114:Cannot call an interrupt procedure 不能調(diào)用中斷過程

      error 116:Must be in 8087 mode to compile 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 符號太多

      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:Header does not match previous definition 和前面定義的過程或函數(shù)不匹配

      error 133:Cannot evaluate this expression 不能計算該表達式

      error 134:Expression incorrectly terminated 表達式錯誤結(jié)束

      error 135:Invalid format specifier 無效格式說明符

      error 136:Invalid indirect reference 無效的間接引用

      error 137:Structured variables are not allowed here 該處不允許結(jié)構(gòu)變量

      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 不能編譯覆蓋模塊至內(nèi)存

      error 142:Pointer or procedural variable expected 缺指針或過程變量

      error 143:Invalid procedure or function reference 無效的過程或函數(shù)調(diào)用

      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 缺VIRTUAL error 150: Method identifier expected 缺方法標識符

      error 151:Virtual constructors are not allowed 不允許虛構(gòu)造函數(shù)

      error 152:Constructor identifier expected 缺構(gòu)造函數(shù)標識符

      error 153:Destructor identifier expected 缺析構(gòu)函數(shù)標識符

      error 154:Fail only allowed within constructors 只能在構(gòu)造函數(shù)內(nèi)使用Fail標準過程

      error 155:Invalid combination of opcode and operands 操作數(shù)與操作符無效組合error 156:Memory reference expected 缺內(nèi)存引用指針

      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 expected 缺ASM

      error 166:Procedure or function identifier expected 缺過程或函數(shù)標識符

      error 167:Cannot export this symbol 不能輸出該符號

      error 168:Duplicate export name 外部文件名重復(fù)

      error 169:Executable file header too large 可執(zhí)行文件頭太長

      error 170:Too many segments 段太多

      一、運行錯誤信息

      運行錯誤分為四類:1-99為DOS錯誤;100-149為I/O錯誤,發(fā)生I/O后,如果使用了編譯開關(guān){$I+},程序?qū)⒔K止執(zhí)行,否則編譯開關(guān)為{$I-},程序繼續(xù)執(zhí)行,并由IOResult函數(shù)返回錯誤信息; 150-199為嚴重錯誤,200-255為致命錯誤,致命錯誤將立即終止程序執(zhí)行。

      錯誤代碼及錯誤信息 錯誤釋義

      error 1:Invalid function number 無效函數(shù)號

      error 2:File not found 文件未找到

      error 3:Path not found 找不到路徑

      error 4:Too many open files 打開文件太多

      error 5:File access denied 文件不允許訪問

      error 6:Invalid file handle 無效文件句柄

      error 12:Invalid file access code 無效文件存取代碼

      error 15:Invalid drive number 無效驅(qū)動器號

      error 16:Cannot remove current directory 不能刪除當前目錄

      error 17:Cannot rename across drives 不能跨驅(qū)動器改名

      error 18:No more files 沒有文件了

      error 100:Disk read error 讀磁盤錯

      error 101:Disk write error 寫磁盤錯

      error 102: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 無效數(shù)值格式

      error 150:Disk is write-protected 磁盤寫保護

      error 151:Bad drive request struct length 錯誤的驅(qū)動器請求結(jié)構(gòu)長度

      error 152:Drive not ready 驅(qū)動器未準備好

      error 154:CRC error in data 數(shù)據(jù)CRC校驗錯

      error 156:Disk seek error 磁盤定位錯

      error 157:Unknown media type 未知的介質(zhì)類型

      error 158:Sector Not Found 找不到扇區(qū)

      error 159:Printer out of paper 打印機缺紙

      error 160:Device write fault 設(shè)備寫錯誤

      error 161:Device read fault 設(shè)備讀錯誤

      error 162:Hardware failure 硬件故障

      error 200: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 無效的浮點運算

      error 208:Overlay manager not installed 未安裝覆蓋管理程序

      error 209:Overlay file read error 讀覆蓋文件錯誤

      error 210:Object not initialized 對象未初始化

      error 211:Call to abstract method 調(diào)用抽象方法

      error 212:Stream registration error 流注_冊錯誤

      error 213:Collection index out of range 集合下標越界 error 214:Collection overflow error 集合上溢

      error 215:Arithmetic overflow error 算術(shù)運算上溢

      error 216:General Protection fault 一般保護性錯誤

      keil c編譯器錯誤與解決方法

      1.Warning 280:?i?:unreferenced local variable

      說明局部變量i 在函數(shù)中未作任何的存取操作解決方法消除函數(shù)中i 變量的宣告Warning 206:?Music3?:missing function-prototype

      說明Music3()函數(shù)未作宣告或未作外部宣告所以無法給其他函數(shù)調(diào)用

      解決方法將敘述void Music3(void)寫在程序的最前端作宣告如果是其他文件的函數(shù)則要寫

      成extern void Music3(void),即作外部宣告Compling :C:8051MANN.C Error:318:can?t open file ?beep.h?

      說明在編譯C:8051MANN.C 程序過程中由于main.c 用了指令#i nclude “beep.h”,但

      卻找不到所致解決方法編寫一個beep.h 的包含檔并存入到c:8051 的工作目錄中Compling:C:8051LED.C

      Error 237:?LedOn?:function already has a body

      說明LedOn()函數(shù)名稱重復(fù)定義即有兩個以上一樣的函數(shù)名稱

      解決方法修正其中的一個函數(shù)名稱使得函數(shù)名稱都是獨立的***WARNING 16:UNCALLED SEGMENT,IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?_DELAYX1MS?DELAY

      說明DelayX1ms()函數(shù)未被其它函數(shù)調(diào)用也會占用程序記憶體空間解決方法去掉

      DelayX1ms()函數(shù)或利用條件編譯#if …..#endif,可保留該函數(shù)并不編譯***WARNING 6 :XDATA SPACE MEMORY OVERLAP FROM : 0025H TO: 0025H

      說明外部資料ROM 的0025H 重復(fù)定義地址

      解決方法外部資料ROM 的定義如下Pdata unsigned char XFR_ADC _at_0x25 其中XFR_ADC 變量的名稱為0x25,請檢查是否有其它的變量名稱也是定義在0x25 處并修正它WARNING 206:?DelayX1ms?: missing function-prototype C:8051INPUT.C

      Error 267 :?DelayX1ms ?:requires ANSI-style prototype C:8051INPUT.C

      說明程序中有調(diào)用DelayX1ms 函數(shù)但該函數(shù)沒定義即未編寫程序內(nèi)容或函數(shù)已定義但未作

      宣告

      解決方法編寫DelayX1ms 的內(nèi)容編寫完后也要作宣告或作外部宣告可在delay.h 的包含檔

      宣告成外部以便其它函數(shù)調(diào)用

      ***WARNING 1:UNRESOLVED EXTERNAL SYMBOL SYMBOL:MUSIC3

      MODULE:C:8051MUSIC.OBJ(MUSIC)

      ***WARNING 2:REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL:MUSIC3

      MODULE:C:8051MUSIC.OBJ(MUSIC)ADDRESS:0018H

      說明程序中有調(diào)用MUSIC 函數(shù)但未將該函數(shù)的含擴檔C 加入到工程檔Prj 作編譯和連接

      解決方法設(shè)MUSIC3 函數(shù)在MUSIC C 里將MUSIC C 添加到工程文件中去***ERROR 107:ADDESS SPACE OVERFLOW SPACE: DATA

      SEGMENT: _DATA_GOUP_ LENGTH: 0018H

      ***ERROR 118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: VOLUME

      MODULE: C:8051OSDM.OBJ(OSDM)ADDRESS: 4036H

      說明data 存儲空間的地址范圍為0~0x7f,當公用變量數(shù)目和函數(shù)里的局部變量如果存

      儲模式設(shè)為SMALL 則局部變量先使用工作寄存器R2~R7 作暫存當存儲器不夠用時則會

      以data 型別的空間作暫存的個數(shù)超過0x7f 時就會出現(xiàn)地址不夠的現(xiàn)象

      解決方法將以data 型別定義的公共變量修改為idata 型別的定義

      10.***WARNING L15: MULTIPLE CALL TO SEGMENT SEGMENT: ?PR?_WRITE_GMVLX1_REG?D_GMVLX1 CALLER1: ?PR?VSYNC_INTERRUPT?MAIN CALLER2: ?C_C51STARTUP

      ***WARNING L15: MULTIPLE CALL TO SEGMENT SEGMENT: ?PR?_SPI_SEND_WORD?D_SPI CALLER1: ?PR?VSYNC_INTERRUPT?MAIN CALLER2: ?C_C51STARTUP

      ***WARNING L15: MULTIPLE CALL TO SEGMENT SEGMENT: ?PR?SPI_RECEIVE_WORD?D_SPI CALLER1: ?PR?VSYNC_INTERRUPT?MAIN CALLER2: ?C_C51STARTUP

      該警告表示連接器發(fā)現(xiàn)有一個函數(shù)可能會被主函數(shù)和一個中斷服務(wù)程序(或者調(diào)用中斷

      服務(wù)程序的函數(shù))同時調(diào)用,或者同時被多個中斷服務(wù)程序調(diào)用。

      出現(xiàn)這種問題的原因之一是這個函數(shù)是不可重入性函數(shù),當該函數(shù)運行時它可能會被一

      個中斷打斷,從而使得結(jié)果發(fā)生變化

      并可能會引起一些變量形式的沖突(即引起函數(shù)內(nèi)一些數(shù)據(jù)的丟失,可重入性函數(shù)在任何時

      候都可以被ISR 打斷,一段時間后又可以

      運行,但是相應(yīng)數(shù)據(jù)不會丟失)。

      原因之二是用于局部變量和變量(暫且這樣翻譯,arguments,[自變量,變元一數(shù)值,用于 確定程序或子程序的值])的內(nèi)存區(qū)被其他函數(shù)的內(nèi)存區(qū)所覆蓋,如果該函數(shù)被中斷,則它的內(nèi)存區(qū)就會

      被使用,這將導(dǎo)致其他函數(shù)的內(nèi)存沖突。

      例如,第一個警告中函數(shù)WRITE_GMVLX1_REG 在D_GMVLX1.C 或者D_GMVLX1.A51 被定義, 它被一個中斷服務(wù)程序或者一個調(diào)用了中斷

      服務(wù)程序的函數(shù)調(diào)用了,調(diào)用它的函數(shù)是VSYNC_INTERRUPT,在MAIN.C 中。

      解決方法:

      如果你確定兩個函數(shù)決不會在同一時間執(zhí)行(該函數(shù)被主程序調(diào)用并且中斷被禁止),并

      且該函數(shù)不占用內(nèi)存(假設(shè)只使用寄存器), 則你可以完全忽略這種警告。

      如果該函數(shù)占用了內(nèi)存,則應(yīng)該使用連接器(linker)OVERLAY 指令將函數(shù)從覆蓋分析

      (overlay analysis)中除去,例如:

      OVERLAY(?PR?_WRITE_GMVLX1_REG?D_GMVLX1!*)

      上面的指令防止了該函數(shù)使用的內(nèi)存區(qū)被其他函數(shù)覆蓋。如果該函數(shù)中調(diào)用了其他函數(shù), 而這些被調(diào)用在程序中其他地方也被調(diào)用,你可能會需要也將這些函數(shù)排除在覆蓋分析(overlay analysis)之外。這種OVERLAY 指令能

      使編譯器除去上述警告信息。

      如果函數(shù)可以在其執(zhí)行時被調(diào)用,則情況會變得更復(fù)雜一些。這時可以采用以下幾種方

      法:

      1.主程序調(diào)用該函數(shù)時禁止中斷,可以在該函數(shù)被調(diào)用時用#pragma disable 語句來實現(xiàn)禁

      止中斷的目的。必須使用OVERLAY 指令將該函數(shù)

      從覆蓋分析中除去。

      2.復(fù)制兩份該函數(shù)的代碼,一份到主程序中,另一份復(fù)制到中斷服務(wù)程序中。

      3.將該函數(shù)設(shè)為重入型。例如:

      void myfunc(void)reentrant {...}

      這種設(shè)置將會產(chǎn)生一個可重入堆棧,該堆棧被被用于存儲函數(shù)值和局部變量,用這種

      方法時重入堆棧必須在STARTUP.A51 文件中配置。

      這種方法消耗更多的RAM 并會降低重入函數(shù)的執(zhí)行速度。

      11.*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?_COMPARE?TESTLCD

      說明:程序中有些函數(shù)(或片段)以前(調(diào)試過程中)從未被調(diào)用過,或者根本沒有

      調(diào)用它的語句。

      這條警告信息前應(yīng)該還有一條信息指示出是哪個函數(shù)導(dǎo)致了這一問題。只要做點簡

      單的調(diào)整就可以。不理它也沒什么大不了的。

      解決方法:去掉COMPARE()函數(shù)或利用條件編譯#if …..#endif,可保留該函數(shù)并不

      編譯。

      --------C 編譯器錯誤信息中文翻譯

      Ambiguous operators need parentheses 不明確的運算需要用括號括起

      Ambiguous symbol ``xxx`` 不明確的符號 Argument list syntax error 參數(shù)表語法錯誤

      Array bounds missing 丟失數(shù)組界限符

      Array size toolarge 數(shù)組尺寸太大

      Bad character in paramenters 參數(shù)中有不適當?shù)淖址?/p>

      Bad file name format in include directive 包含命令中文件名格式不正確

      Bad ifdef directive synatax 編譯預(yù)處理ifdef 有語法錯

      Bad undef directive syntax 編譯預(yù)處理undef 有語法錯

      Bit field too large 位字段太長

      Call of non-function 調(diào)用未定義的函數(shù)

      Call to function with no prototype 調(diào)用函數(shù)時沒有函數(shù)的說明

      Cannot modify a const object 不允許修改常量對象

      Case outside of switch 漏掉了case 語句

      Case syntax error Case 語法錯誤

      Code has no effect 代碼不可述不可能執(zhí)行到

      Compound statement missing{ 分程序漏掉“{” Conflicting type modifiers 不明確的類型說明符

      Constant expression required 要求常量表達式

      Constant out of range in comparison 在比較中常量超出范圍

      Conversion may lose significant digits 轉(zhuǎn)換時會丟失意義的數(shù)字

      Conversion of near pointer not allowed 不允許轉(zhuǎn)換近指針

      Could not find file ``xxx`` 找不到XXX 文件

      Declaration missing;說明缺少“;”

      Declaration syntax error 說明中出現(xiàn)語法錯誤

      Default outside of switch Default 出現(xiàn)在switch 語句之外

      Define directive needs an identifier 定義編譯預(yù)處理需要標識符

      Division by zero 用零作除數(shù)

      Do statement must have while Do-while 語句中缺少while 部分

      Enum syntax error 枚舉類型語法錯誤

      Enumeration constant syntax error 枚舉常數(shù)語法錯誤

      Error directive :xxx 錯誤的編譯預(yù)處理命令

      Error writing output file 寫輸出文件錯誤

      Expression syntax error 表達式語法錯誤

      Extra parameter in call 調(diào)用時出現(xiàn)多余錯誤

      File name too long 文件名太長

      Function call missing)函數(shù)調(diào)用缺少右括號

      Fuction definition out of place 函數(shù)定義位置錯誤

      Fuction should return a value 函數(shù)必需返回一個值

      Goto statement missing label Goto 語句沒有標號

      Hexadecimal or octal constant too large16 進制或8 進制常數(shù)太大

      Illegal character ``x`` 非法字符x Illegal initialization 非法的初始化

      Illegal octal digit 非法的8 進制數(shù)字

      Illegal pointer subtraction 非法的指針相減

      Illegal structure operation 非法的結(jié)構(gòu)體操作 Illegal use of floating point 非法的浮點運算

      Illegal use of pointer 指針使用非法

      Improper use of a typedefsymbol 類型定義符號使用不恰當

      In-line assembly not allowed 不允許使用行間匯編

      Incompatible storage class 存儲類別不相容

      Incompatible type conversion 不相容的類型轉(zhuǎn)換

      Incorrect number format 錯誤的數(shù)據(jù)格式

      Incorrect use of default Default 使用不當

      Invalid indirection 無效的間接運算

      Invalid pointer addition 指針相加無效

      Irreducible expression tree 無法執(zhí)行的表達式運算

      Lvalue required 需要邏輯值0 或非0 值

      Macro argument syntax error 宏參數(shù)語法錯誤

      Macro expansion too long 宏的擴展以后太長

      Mismatched number of parameters in definition 定義中參數(shù)個數(shù)不匹配

      Misplaced break 此處不應(yīng)出現(xiàn)break 語句

      Misplaced continue 此處不應(yīng)出現(xiàn)continue 語句

      Misplaced decimal point 此處不應(yīng)出現(xiàn)小數(shù)點

      Misplaced elif directive 此處不應(yīng)出現(xiàn)編譯預(yù)處理elif Misplaced else 此處不應(yīng)出現(xiàn)else

      Misplaced else directive 此處不應(yīng)出現(xiàn)編譯預(yù)處理else Misplaced endif directive 此處不應(yīng)出現(xiàn)編譯預(yù)處理endif Must be addressable 必須是可以編址的

      Must take address of memory location 必須存儲定位的地址

      No declaration for function ``xxx`` 沒有函數(shù)xxx 的說明

      No stack 缺少堆棧

      No type information 沒有類型信息

      Non-portable pointer assignment 不可移動的指針(地址常數(shù))賦值

      Non-portable pointer comparison 不可移動的指針(地址常數(shù))比較

      Non-portable pointer conversion 不可移動的指針(地址常數(shù))轉(zhuǎn)換

      Not a valid expression format type 不合法的表達式格式

      Not an allowed type 不允許使用的類型

      Numeric constant too large 數(shù)值常太大

      Out of memory 內(nèi)存不夠用

      Parameter ``xxx`` is never used 參數(shù)xxx 沒有用到

      Pointer required on left side of-> 符號->的左邊必須是指針

      Possible use of ``xxx`` before definition 在定義之前就使用了xxx(警告)

      Possibly incorrect assignment 賦值可能不正確

      Redeclaration of ``xxx`` 重復(fù)定義了xxx

      Redefinition of ``xxx`` is not identical xxx 的兩次定義不一致

      Register allocation failure 寄存器定址失敗

      Repeat count needs an lvalue 重復(fù)計數(shù)需要邏輯值

      Size of structure or array not known 結(jié)構(gòu)體或數(shù)給大小不確定

      Statement missing;語句后缺少“;” Structure or union syntax error 結(jié)構(gòu)體或聯(lián)合體語法錯誤

      Structure size too large 結(jié)構(gòu)體尺寸太大

      Sub scripting missing ] 下標缺少右方括號

      Superfluous & with function or array 函數(shù)或數(shù)組中有多余的“&” Suspicious pointer conversion 可疑的指針轉(zhuǎn)換

      Symbol limit exceeded 符號超限

      Too few parameters in call 函數(shù)調(diào)用時的實參少于函數(shù)的參數(shù)

      Too many default cases Default 太多(switch 語句中一個)Too many error or warning messages 錯誤或警告信息太多

      Too many type in declaration 說明中類型太多

      Too much auto memory in function 函數(shù)用到的局部存儲太多

      Too much global data defined in file 文件中全局數(shù)據(jù)太多

      Two consecutive dots 兩個連續(xù)的句點

      Type mismatch in parameter xxx 參數(shù)xxx 類型不匹配

      Type mismatch in redeclaration of ``xxx`` xxx 重定義的類型不匹配

      Unable to create output file ``xxx`` 無法建立輸出文件xxx Unable to open include file``xxx`` 無法打開被包含的文件xxx Unable to open input file ``xxx`` 無法打開輸入文件xxx Undefined label ``xxx`` 沒有定義的標號xxx Undefined structure ``xxx`` 沒有定義的結(jié)構(gòu)xxx Undefined symbol ``xxx`` 沒有定義的符號xxx

      Unexpected end of file in comment started on line xxx 從xxx 行開始的注解尚未結(jié)束文件不能結(jié)束

      Unexpected end of file in conditional started on line xxx 從xxx 開始的條件語句尚未結(jié)束文件不能結(jié)束

      Unknown assemble instruction 未知的匯編結(jié)構(gòu)

      Unknown option 未知的操作

      Unknown preprocessor directive: ``xxx`` 不認識的預(yù)處理命令xxx Unreachable code 無路可達的代碼

      Unterminated string or character constant 字符串缺少引號

      User break 用戶強行中斷了程序

      Void functions may not return a value Void 類型的函數(shù)不應(yīng)有返回值

      Wrong number of arguments 調(diào)用函數(shù)的參數(shù)數(shù)目錯

      ``xxx`` not an argument xxx 不是參數(shù)

      ``xxx`` not part of structure xxx 不是結(jié)構(gòu)體的一部分

      xxx statement missing(xxx 語句缺少左括號

      xxx statement missing)xxx 語句缺少右括號

      xxx statement missing;xxx 缺少分號

      xxx`` declared but never used 說明了xxx 但沒有使用

      xxx`` is assigned a value which is never used 給xxx 賦了值但未用過

      Zero length structure 結(jié)構(gòu)體的長度為零

      第二篇:Proteus和KEIL的單片機教學(xué)研究

      第01卷 第11期 讀 寫 算 Vol.01 No.11 2011年 11月 Read Write and Count December 2011

      基于Proteus和Keil的單片機教學(xué)研究

      摘 要:文章從單片機目前教學(xué)所存在的不足出發(fā),討論了基于Proteus和Keil的單片機教學(xué)方法:以教師為輔、學(xué)生為主,突出教學(xué)中學(xué)生的主體和中心地位,建立新型的師生關(guān)系;以任務(wù)驅(qū)動為手段,最大程度的調(diào)動學(xué)生的學(xué)習(xí)主觀能動性;以教材為輔,學(xué)生提高能力為主。該教學(xué)方法已經(jīng)過實踐的檢驗,可更有效的實現(xiàn)單片機的教學(xué)目標。關(guān)鍵詞:Proteus;Keil;單片機;任務(wù)驅(qū)動

      中圖分類號:XXXX.X 文獻標識碼:A 文章編號:1002-7661(2011)XX-XXX-XX

      單片機以體積小,性價比高等優(yōu)點在家電、工業(yè)控制、通信設(shè)備等各種領(lǐng)域得到了廣泛的應(yīng)用,因此越來越多的專業(yè)開設(shè)單片機的相關(guān)課程,但單片機這門技術(shù)更注重實踐學(xué)習(xí),就目前的教學(xué)來看,主要有以下幾個方面,學(xué)生需要記憶的內(nèi)容太多,如枯燥的匯編指令,這會大大降低學(xué)生的學(xué)習(xí)興趣;理論教學(xué)與實驗教學(xué)關(guān)聯(lián)程度不高,不能互相印證,存在一定程度的脫節(jié)現(xiàn)象。

      基于以上種種問題以及多年單片機的一線教學(xué)經(jīng)驗,我們認為將Proteus和Keil引入課堂教學(xué)和實驗教學(xué)能有效提高教學(xué)質(zhì)量,更大程度的引發(fā)學(xué)生的學(xué)習(xí)興趣,更有利于激發(fā)學(xué)生的主觀能動性,下面簡要介紹兩種軟件。

      Proteus 軟件是英國Labcenter electronics 公司出版的EDA 工具軟件,是目前世界上唯一將電路仿真軟件、PCB設(shè)計軟件和虛擬模型仿真軟件三合一的設(shè)計平臺,在編譯方面,它也支持IAR,KEIL和MPLAB等多種編譯器。是目前最好的單片機及外圍器件的工具。Keil 是一款關(guān)于5l系列MCU的開發(fā)工具,支持匯編、C語言及混合編程,能夠不接硬件電路直接進行用戶程序仿真與調(diào)試。我們可將二者的長處結(jié)合起來,利用Proteus設(shè)計單片機系統(tǒng)的原理圖,用Keil來完成C語言程序的編輯、編譯,而整個系統(tǒng)的調(diào)試需要兩個軟件間的聯(lián)合才能完成。單片機程序的執(zhí)行情況,可在Proteus中的電路原理圖上非常直觀的觀察到,而單片機某個寄存器的具體內(nèi)容可以通過Keil的變量觀察窗口觀察到。二者取長補短,互為補充可構(gòu)成一個完整的單片機系統(tǒng)。下面分別從課堂教學(xué)和實驗教學(xué)兩個方面來分析。

      一、從課堂教學(xué)角度分析

      授人以魚,不若授人以漁?,F(xiàn)在有個奇怪的現(xiàn)象,老師在課堂上灌輸?shù)脑蕉?,學(xué)生接受的知識反而越少,因此與其讓教師灌輸給學(xué)生太多的知識,不如讓教師引導(dǎo)學(xué)生自己去發(fā)現(xiàn)問題,認識問題,并一步步用之前學(xué)過的相關(guān)知識點去解決問題。在這個發(fā)現(xiàn)問題,認識問題,解決問題的過程中,既加深了對課本基礎(chǔ)知識的理解,又鍛煉了獨立分析問題,解決問題的能力,這種教師為輔助,學(xué)生為主體;教材為輔,提高能力為主的教學(xué)模式將極大的培養(yǎng)學(xué)生們的學(xué)習(xí)興趣。

      相對于文字,人們更喜歡直觀的圖像或動畫。因此在單片機課堂教學(xué)的時候,教師可以采用現(xiàn)場仿真演示的方法,給學(xué)

      生更形象生動的闡述說明。比如講解某條匯編指令,可以在Proteus或Keil中編寫該指令,并現(xiàn)場編譯執(zhí)行,然后觀察執(zhí)行該匯編指令后所導(dǎo)致的相關(guān)寄存器或地址單元中數(shù)據(jù)的變化情況,還可配合提問的方式與學(xué)生互動,引導(dǎo)學(xué)生自己去分析某條匯編指令的功能。這樣便可以將枯燥的匯編指令變的簡單好學(xué),從而不會讓學(xué)生感到枯燥乏味了。又比如在學(xué)習(xí)單片機例程時,可根據(jù)題目將班里的學(xué)生分組,每個組準備一道例程,并現(xiàn)場用Proteus和 Keil演示講解,教師可根據(jù)每個組的課堂表現(xiàn)計入平時成績。這種任務(wù)驅(qū)動教學(xué)方式有效的調(diào)動了學(xué)生們的主觀能動性。

      二、從實驗教學(xué)角度分析

      單片機應(yīng)用技術(shù)是一門注重實踐的技術(shù),因此實驗是單片機教學(xué)中不可分割的重要組成部分,以往的單片機實驗大多采用實驗箱的做法,即:指導(dǎo)教師布置幾個題目,學(xué)生在實驗箱上實現(xiàn)即可。這有幾個弊端:1)實驗箱上電路模塊固定,可選做的實驗題目較少,且題目陳舊老套,不能實時更新;2)實驗箱上的電子元器件更容易因長期實驗或?qū)W生使用不當造而損壞,不容易維護,增加實驗成本;3)購買單片機實驗箱價格不費,需要學(xué)校較大投資; 4)人力資源等現(xiàn)實原因,大多情況實驗時開放時間遠遠不夠?qū)W生們做實驗需要的時間。

      鑒于以上多個原因,在實驗教學(xué)環(huán)節(jié)我們可采用Proteus和Keil兩款軟件建立虛擬實驗室,而兩款軟件可免費從網(wǎng)上下載,因此大大降低實驗成本;由于是軟件仿真,所以在實驗題目的選取方面有較大空間,且可以根據(jù)較新元器件搭建實驗電路,靈活多變;在PC機相當普及的今天,學(xué)生可以隨時隨地的建立一個虛擬的單片機實驗室,極大的滿足了學(xué)生做實驗的需求。使學(xué)生不需硬件支持也能完成實驗內(nèi)容,能降低實驗成本,縮短實驗周期,延伸實驗內(nèi)涵。

      總之,將Proteus和Keil引入單片機教學(xué),采用教師為輔學(xué)生為主,任務(wù)驅(qū)動的教學(xué)理念,在節(jié)省成本的同時,極大的培養(yǎng)了學(xué)生們的學(xué)習(xí)興趣,有效提高了學(xué)生們的實踐能力。

      第三篇:總結(jié)錯誤

      錯誤分析:啟動tomcat錯誤

      異常:the port already use , jvm_bin

      錯誤原因: 端口被占用

      錯誤改正: 1.修改conf/server.xml文件 修改下列端口或關(guān)閉占用相應(yīng)端口的程序。

      connectionTimeout=“20000”redirectPort=“8443” />

      錯誤分析:cmd啟動tomcat錯誤

      異常:The CATALINE_HOME enviroment variable is not defined correctly,This enviroment variable is needed to run this program

      錯誤原因: 服務(wù)名與tomcat環(huán)境變量不一致(服務(wù)名與tomcat環(huán)境變量名應(yīng)一致)錯誤改正: 1.把TOMCAT_HOMR 改為 CATALINE_HOME

      錯誤分析: session工廠配置錯誤

      resolve reference to bean 'sessionFactory' while setting bean property'sessionFactory';

      classpath:conf/hibernate.cfg.xml

      class org.springframework.web.util.Log4jConfigListener java.lang.IllegalArgumentException: Invalid 'log4jConfigLocation' parameter:

      錯誤分析:連接池錯誤

      異常:Cannot create PoolableConnectionFactory(Unknown database 'text')

      錯誤分析:缺少spring參數(shù)錯誤

      異常: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource

      [/WEB-INF/applicationContext.xml] org.xml.sax.SAXParseException:XML

      錯誤分析:缺少Log4j 參數(shù)錯誤

      Exception sending context initialized event

      org.springframework.web.util.Log4jConfigListener to listener instance of class

      錯誤分析:Ztree異步加載錯誤

      異常:Uncaught ReferenceError: zTreeOnAsyncSuccess is not defined

      瀏覽器: zTree init 失敗

      錯誤原因:找不到 seting配置數(shù)據(jù)中的callback 中的方法 或filter中方法

      錯誤改正:刪除無用的配置數(shù)據(jù)

      錯誤分析:Tomcat啟動錯誤

      異常:Exception starting filter struts2Unable to load configuration.-[unknown location] 瀏覽器異常: zTree init 失敗

      錯誤原因:jar包有沖突, 應(yīng)該是XML解析包有沖突.檢查發(fā)布后的WEB-INF/lib有兩個XML解析包:xml-apis.jar和xerces-2.6.2.jar 這種錯誤真正原因不是JDK 6和Struts 2沖突, 而是MyEclipse Hibernate 類庫中多了兩個包: xml-apis.jar和xerces-2.6.2.jar,這兩個包的功能和JDK的沖突了。

      解決辦法: 1.刪除發(fā)布后目錄的 WEB-INF/lib/ 下的xerces-2.6.2.jar這個文件;2.或者使用JDK1.5來啟動Tomcat 6.錯誤分析:Windows端口不能識別

      信息: Port busy 5 java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind

      錯誤原因:Tomcat中的端口有不符合端口要求的,端口可能被改為默認5

      解決辦法: 修改端口號

      錯誤分析:Hibernate 配置錯誤

      異常:org.springframework.orm.hibernate3.HibernateSystemException: ids for this class must be manually assigned before calling save()org.springframework.orm.hibernate3.HibernateJdbcException:

      exception on Hibernate data access

      解決辦法:對應(yīng) id改為自動增長 JDBC如果id不為自動增長 id值不能為空

      錯誤分析:Hibernate 配置錯誤

      異常: Could not read

      org/leopard/model/file/File.hbm.xml

      Caused by:

      錯誤原因: hibernate映射文件配置格式錯誤 mappings from resource:

      解決辦法: 檢查對應(yīng)hibernate映射文件格式是否錯誤

      錯誤分析:文件上傳錯誤

      異常: : the request was rejected because its size(33647288)exceeds the configured maximum(2097152)

      錯誤原因:上傳文件大于最大文件大小

      解決辦法:

      解決辦法: 在執(zhí)行sql語句之前

      Session.clean()

      getHiberNate().clean;

      spring配置 AOP

      異常 no matching editors or conversion strategy found

      解決方案 加入 roxy-target-class=“true”

      java.lang.reflect.InvocationTargetException

      a different object with the same identifier value was already associated with the session: [org.leopard.model.user.User#1];nested exception is : a different object with the same identifier value was already associated with the session:

      [org.leopard.model.user.User#1]

      第四篇:STC12C5A60S2串口通信keil與proteus調(diào)試 自己總結(jié)

      STC12C5A60S2串口調(diào)試

      需要軟件:

      在keil里安裝。在debug里設(shè)置仿真器為:

      點擊MCU連接程序:

      RS232:

      虛擬終端:

      程序:

      #include “STC12C5A60S2.h” #include “intrins.h”

      typedef unsigned char BYTE;void UartInit(void)//9600bps@11.0592MHz { SCON = 0x50;//8位數(shù)據(jù),可變波特率

      AUXR |= 0x40;//定時器1時鐘為Fosc,即1T AUXR &= 0xFE;//串口1選擇定時器1為波特率發(fā)生器

      TMOD &= 0x0F;//設(shè)定定時器1為16位自動重裝方式

      TL1 = 0xE0;//設(shè)定定時初值

      TH1 = 0xFE;//設(shè)定定時初值

      ET1 = 0;//禁止定時器1中斷

      TR1 = 1;//啟動定時器1 }

      void SendByte(BYTE dat);void SendString(char *s);void main(){ UartInit();

      SendString(“STC12C5A60S2rnUart Test!rn”);

      while(1);} void Uart_Isr()interrupt 4 using 1

      {if(RI){ RI=0;} if(TI){ TI=0;} } void SendByte(BYTE dat){ SBUF=dat;} void SendString(char *s){ while(*s!='