Re: 請教PIC16F630編譯錯誤問題?
|
||||
---|---|---|---|---|
版主
|
最主要的是像 PICkit2 & 3 , ICD2 & 3 , Real ICE 等工具都會佔用伊小塊的記憶體作為除錯之用,佔用的情形是越小顆越明顯,所以有時會找科較大記憶容量的 PIC 來解決此問題。
發表於: 2009/4/10 10:26
|
|||
|
Re: 請教PIC16F630編譯錯誤問題?
|
||||
---|---|---|---|---|
新會員
|
是的我是用ICD2來Debug
原來是ICD2的LKR檔有這訊息 又多了解到一些要點了 感謝版主與各位板大幫忙~謝謝
發表於: 2009/4/9 14:58
|
|||
|
Re: 請教PIC16F630編譯錯誤問題?
|
||||
---|---|---|---|---|
新會員
|
參照:
恩~這設定沒有問題 所以這就蠻奇怪的不知那邊出了問題
發表於: 2009/4/9 10:11
|
|||
|
Re: 請教PIC16F630編譯錯誤問題?
|
||||
---|---|---|---|---|
資深會員
|
Select Device有選對型號嗎?
發表於: 2009/4/9 9:43
|
|||
|
Re: 請教PIC16F630編譯錯誤問題?
|
||||
---|---|---|---|---|
新會員
|
另外發現依各問題感到奇怪
我於MPLAB 的 Program Memory視窗裡看到 我程式若超出 2FFh 便會出現此錯誤訊息 可是datasheet裡指出程序儲存區是可到 000h~3FFh 雖然現在程式寫並不長可正常編譯 但這狀況實在令小弟搞不懂阿=.=?
發表於: 2009/4/9 9:21
|
|||
|
Re: 請教PIC16F630編譯錯誤問題?
|
||||
---|---|---|---|---|
版主
|
絕對定只要使用 ORG 定位,不需使用到 LKR 描述檔。
參考一下 Microchip 所提供的範例:
list p=16f630 ; list directive to define processor
發表於: 2009/4/8 15:17
|
|||
|
Re: 請教PIC16F630編譯錯誤問題?
|
||||
---|---|---|---|---|
新會員
|
感謝Ryang板大熱心回覆
小弟參照教材重新設定依然出現相同狀況 而改使用Absolute code方式也是如此 剛編輯完回覆看到了板大於樓下回應了 小弟之後將所有副程式砍了卻編譯成功了 副程式一塊一塊加回後發現 程式尾端填滿的 GOTO INITIAL超出程序儲存範圍 此狀況與ERROR訊息已有些差異實在是令人納悶 另外小細節的忽略真的讓我這新手卡關卡很大 最後感謝各位板大的支援~謝謝!^^
發表於: 2009/4/8 15:09
Edited by icebee on 2009年04月08日 16:23:19
Edited by icebee on 2009年04月08日 16:27:15 Edited by icebee on 2009年04月08日 16:29:57 |
|||
|
Re: 請教PIC16F630編譯錯誤問題?
|
||||
---|---|---|---|---|
版主
|
程式位址從 0x0000 開始連續擺放,但 Link 在此位置只能放 32 個,所以要重新修改 Code 節區的設定。
參考一下 Microchip 所提供的範例如下,相關檔案位置 : C:\Program Files\Microchip\MPASM Suite\Template\Object 也可以看一下 RTC 教材 MPASM 那裡有詳細的說明: http://www.microchip.com.tw/modules/w ... nglefile.php?cid=4&lid=32
list p=16F630 ; list directive to define processor
發表於: 2009/4/8 10:30
|
|||
|
請教PIC16F630編譯錯誤問題?
|
||||
---|---|---|---|---|
新會員
|
大家好,小弟想請教一下,
我在build 16f630時,會出現錯誤如下
MPLINK 4.30.01, Linker
但小弟於程式開頭未使用ORG 0X00 不過還按照此訊息我先去爬文找到Ryang板主提出的方法參照:
小弟依此修改後還是依樣狀況,另於網路上相關的解決方法,比如刪去LKR檔....等等但修改後編譯依舊無法解決此問題, 不知是否有改錯的地方或那裏遺漏掉 在這請各問板大們幫忙指點~謝謝!
發表於: 2009/4/8 10:22
|
|||
|