• slider image 514
  • slider image 516
  • slider image 517
  • slider image 518
  • slider image 519
:::


Browsing this Thread:   1 Anonymous Users






Re: picc-18 PRO v9.61 编译报错,ERROR 491
#2
版主
版主


查看用戶資訊
錯誤在於 你欲將 0x106 (超果 0x100) 的 RAM Size 硬塞到 BANK4 裡導致錯誤。
可以在便亮宣告前加入 BANKn (n 為指定的BANK) 即可將變量指到想要的 BANK 裡。

發表於: 2009/3/16 15:31
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


picc-18 PRO v9.61 编译报错,ERROR 491
#1
新會員
新會員


查看用戶資訊
上次问过的帖子太弱,希望这个问题能有点技术含量呵呵

错误如下:
Error [491] ; . can't find 0x106 words for psect "param4" in segment "BANK4"

我是边加功能边调试的,加功能前的编译结果:
Data space:
RAM used 0h ( 0) of F54h bytes ( 0.0%)
BIGRAM used 0h ( 0) of F54h bytes ( 0.0%)
BANK0 used 0h ( 0) of 100h bytes ( 0.0%)
BANK1 used 0h ( 0) of 100h bytes ( 0.0%)
BANK2 used 0h ( 0) of 100h bytes ( 0.0%)
BANK3 used 0h ( 0) of 100h bytes ( 0.0%)
BANK4 used FFh ( 255) of 100h bytes ( 99.6%)
BANK5 used 0h ( 0) of 100h bytes ( 0.0%)
BANK6 used 0h ( 0) of 100h bytes ( 0.0%)
BANK7 used 0h ( 0) of 100h bytes ( 0.0%)
BANK8 used 0h ( 0) of 100h bytes ( 0.0%)
BANK9 used 0h ( 0) of 100h bytes ( 0.0%)
BANK10 used 0h ( 0) of 100h bytes ( 0.0%)
BANK11 used 0h ( 0) of 100h bytes ( 0.0%)
BANK12 used 0h ( 0) of 100h bytes ( 0.0%)
BANK13 used 0h ( 0) of 100h bytes ( 0.0%)
BANK14 used 0h ( 0) of F4h bytes ( 0.0%)
BANK15 used 0h ( 0) of 61h bytes ( 0.0%)
COMRAM used 15h ( 21) of 60h bytes ( 21.9%)
NVRAM used 0h ( 0) of 60h bytes ( 0.0%)

按USER MANUAL的解释,可能为总RAM空间不足或我的psect过大需程序调整,由上可见实际使用RAM空间很小,可排除前一种可能;BIGRAM空间可以存储大于100h的psect,而我的psect绝不会超过BIGRAM空间,可排除第二种可能。

HI-TECH官网和大陆论坛也找过,除上述两种可能性外,提出加BANK指定的方法,但这仅适用于PICC16之类,PICC-18 PRO对RAM空间自动分配,无需用户指定BANK区,排除。

应该是我哪里理解有问题,LINKER未自动为我分配至BIGRAM,指教!

發表於: 2009/3/14 15:51
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部







You can view topic.
不可以 發起新主題
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[進階搜尋]


:::

Microchip連結

https://www.facebook.com/microchiptechnologytaiwan/
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=13
https://mu.microchip.com/page/tmu
http://elearning.microchip.com.tw/modules/tad_link/index.php?cate_sn=1
https://page.microchip.com/APAC-PrefCenters-TW.html
http://www.microchip.com/
http://www.microchip.com/treelink
http://www.microchipdirect.com/
http://www.microchip.com.cn/newcommunity/index.php?m=Video&a=index&id=103
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=2
http://www.microchip.com.tw/Data_CD/eLearning/index.html
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
https://www.youtube.com/user/MicrochipTechnology
[ more... ]

教育訓練中心

!開發工具購買
辦法說明 [業界客戶] [教育單位]
----------------------------------
!校園樣品申請
辦法說明 [教師資格] [學生資格]
----------------------------------