星期五, 11月 18, 2005

PIC compile : Can't Find xx words for pset text13 in segment CODE

。增加幾行後,Build出現Error :
Error[000]   : Can't find 0xB words (0xB withtotal) for psect text13 in segment CODE
Error[000] : Can't find 0x7 words (0x7 withtotal) for psect text15 in segment CODE
可以看pmemory還有200個word沒用

增加的Code是
for(i=0;i<11;i++)>=6)
Use2=1;
把data的type由int改為char後OK。
改為用function也OK。
實際上是真的沒了,因為 http://www.microchipc.com/HiTechCtutorial/的說明:
7.Note the 'Compile for MPLAB-ICD' option switch below. This reserves 256 program words at the top of memory and various ram bytes, to make the .hex file compatible with the MPLAB-ICD emulator. The 'Compile for MPLAB-ICD' option is not needed with the ICEPIC 2000 emulator.
所以真的是沒有rom了。confirm : 把Compile for MPLAB ICE去掉,果然可以compile過。
實驗了一下,即使是使用ICD2作燒錄,也要勾選"Compile for MPLAB ICE"選項。並不是作debug才要勾。

沒有留言:

網誌存檔