Re: 使用18f8722編譯時出現Error: can not fit the section
|
||||
---|---|---|---|---|
高級會員
|
太感謝了!! 我馬上來試試看!! Thanks!!!
發表於: 2009/8/29 21:01
|
|||
|
Re: 使用18f8722編譯時出現Error: can not fit the section
|
||||
---|---|---|---|---|
中級會員
|
我之前也有遇到過,你要不要在宣告變數的前面加static
如: static unsigned char abc[128]; 試試看吧
發表於: 2009/8/28 16:32
|
|||
|
Re: 使用18f8722編譯時出現Error: can not fit the section
|
||||
---|---|---|---|---|
高級會員
|
你好:
我有爬過文和在網路上搜尋相關的資料, 也有試過改變ram的空間, 但是後面的length都不會變少,可不可以麻煩你幫我編譯看看,拜託拜託,我還蠻急的!! 謝謝!! Attach file: Link only for registered users
發表於: 2009/8/28 8:07
|
|||
|
Re: 使用18f8722編譯時出現Error: can not fit the section
|
||||
---|---|---|---|---|
版主
|
idata 是屬於 RAM 的部份,該節區超過 0x100 單一BANK 的最大範圍,要解決此問題須將相連的RAM BANK 何擯使用,可以參考一下 W401 第四章後面的Large RAM Array 的使用方式。
之前也有很多網友也爬文過,找一下就會有的。
發表於: 2009/8/27 13:31
|
|||
|
使用18f8722編譯時出現Error: can not fit the section
|
||||
---|---|---|---|---|
高級會員
|
各位前輩:
小弟使用18f8722和128x64 lcd, 編譯時遇到一個問題: Error - section '.idata_TensMeter.o' can not fit the section. Section '.idata_TensMeter.o' length=0x0000011d Errors : 1 小弟在程式內用了很多: const rom unsigned char Font_Calibrate[] = {42,2, 0x00,0x00,0x00,0x04,0x05,0x3F,0x05,0x08,0x09,0x0E... 這些東西來放一些字或圖型. 另外也用了: void (*Set_Proc[])(void) = { Set_Pr00, Set_Pr01, Set_Pr02... 很多以上這種寫法.. 我本來以為是RAM用太多, 所以刪一些掉後, 但是後面的length沒有變少, 所以應該是 const rom用太多造成的. 我刪了一些 const rom 後, length 有變少. 請問我要如何增加 const rom 的空間呢? (我的資料量應該沒有用超過rom size) (我查了C compiler getting started, 裡面有講到, 但是裡面講的是ram, 而不是const rom的關係) 麻煩各位前輩解答, 謝謝
發表於: 2009/8/26 23:19
|
|||
|