<meter id="pryje"><nav id="pryje"><delect id="pryje"></delect></nav></meter>
          <label id="pryje"></label>

          新聞中心

          EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > MSP430單片機(jī)查錯(cuò)

          MSP430單片機(jī)查錯(cuò)

          作者: 時(shí)間:2016-11-13 來源:網(wǎng)絡(luò) 收藏
          1、設(shè)置IAR軟件Tab鍵縮進(jìn)字符個(gè)數(shù)

          方法:Tools-Options-Editor-Tab Size,按習(xí)慣改后面數(shù)字.

          本文引用地址:http://www.ex-cimer.com/article/201611/316495.htm

          2、Error[e46]: Undefined external "LcdInit" referred in main( E:MSP430

          UDPDebugObjmain.r43 )

          原因:工程中有多個(gè).c文件,但不在工程中.

          解決:把.c文件加到工程里。

          3、Error[e27]: Entry "ReadingData" in module DS1302 ( E:MSP430

          ModuleDS1302DebugObjDS1302.r43 ) redefined in module main

          原因:我把定義的數(shù)組unsigned char ReadingData[7];放在.h的文件中編譯出現(xiàn)

          這樣的錯(cuò)誤

          解決:把unsigned char ReadingData[7];放在.c文件中

          4、An error has occured.See the log file C...workspace_v5_1.metadata.log

          解決:安裝目錄CCS5.1CCS5.1.1.00031_win32baserepo下的vcredist_x86_2005

          5、Error[Pe127]: expected a statement E:MSP430ModuleTFTSD.c 95

          Error[Pe018]: expected a ")" E:MSP430ModuleTFTSD.c 132

          解決:仔細(xì)檢查下程序,看有沒有一些語法上的錯(cuò)誤。比如:

          #define SPI_DO_H P1OUT |= BIT0; //P1.0

          #define SPI_DO_L P1OUT &= ~BIT0;

          多加的“;”就會(huì)使程序出現(xiàn)上述錯(cuò)誤。

          6、The target setup(MSP430G2xx3) does not match the actual target tpe

          (MSP430G2xx2)

          解決:檢查目標(biāo)板上芯片型與CCS工程設(shè)置芯片型是否一致。大部分是匹配不一致的

          問題。

          7、Warning[Pa093]:implicit conversion from floating point to integer。

          解決:使用強(qiáng)制轉(zhuǎn)換語句,把float數(shù)據(jù)轉(zhuǎn)化成integer類型數(shù)據(jù)。這樣防止數(shù)據(jù)出錯(cuò)。



          關(guān)鍵詞: MSP430單片機(jī)查

          評(píng)論


          技術(shù)專區(qū)

          關(guān)閉
          看屁屁www成人影院,亚洲人妻成人图片,亚洲精品成人午夜在线,日韩在线 欧美成人 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();