IAR 常見錯誤

**Error[e27]: Entry "ReadingData" in module DS1302 ( E:\MSP430
   \Module\DS1302\Debug\Obj\DS1302.r43 ) redefined in module main
   原因:我把定義的數組unsigned char ReadingData[7];放在.h的文件中編譯出現這樣的錯誤

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

Error[e104]: Failed to fit all segments into specified ranges. Problem discovered in segment CODE. Unable to place 211 block(s) (0x3240  byte(s) total) in 0x2e52 byte(s) of memory. The problem occurred while processing the segment placement command "-P(CODE)CODE=C2F0-FF7F",  where at the moment of placement the available memory ranges were "CODE:d12e-ff7f" 

表示內存空間不足了,需要換芯片或者 程序優化縮小程序大小。


http://blog.sina.com.cn/s/blog_537d61430101cb3p.html




發佈了7 篇原創文章 · 獲贊 49 · 訪問量 20萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章