• slider image 442
  • slider image 483
  • slider image 484
  • slider image 485
  • slider image 486
  • slider image 487
:::


Browsing this Thread:   1 Anonymous Users






Re: 關於錯誤訊息的解釋
#6
版主
版主


查看用戶資訊
我也覺得很奇怪,你用MPLINK來產生HEX檔,但你的程式卻是用絕對定址的語法(ORG),這樣是配不起來的。
請把Project下的 LKR 檔案刪掉吧!

發表於: 2006/5/30 9:56
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 關於錯誤訊息的解釋
#5
中級會員
中級會員


查看用戶資訊
不好意思 我對中斷不是很了解
是否能在解釋多一點
謝謝喔............對ㄌ 這是我一開始的程式 這樣可以嗎

org 0x00
nop
goto Main
org 0x04
goto IntServ


IntServ
movwf w_temp
swapf STATUS_temp,w
movwf STATUS_temp
btfsc PIR1,TMR1IF
call Timer1
swapf STATUS_temp,w
movwf STATUS
swapf w_temp,f
swapf w_temp,w
retfie

Timer1
banksel PIR1
bcf PIR1,TMR1IF
decf scaler,f
clrf TMR1L
movlw 0xFF
movwf TMR1H
movlw 0x9B
movwf TMR1L
return

發表於: 2006/5/29 21:45
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 關於錯誤訊息的解釋
#4
版主
版主


查看用戶資訊
START=0x0000 END=0xFF PROTECTED 這樣長度還是不夠,它要求0x218的長度呢!

建議再中斷進入點放一個 goto ISR , 然後單獨寫一個 ISR 中斷服務程式並單獨給它一個 Section name

發表於: 2006/5/29 17:15
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 關於錯誤訊息的解釋
#3
中級會員
中級會員


查看用戶資訊
我有把LKR檔改為
CODEPAGE NAME=vectors START=0x0000 END=0xFF PROTECTED
CODEPAGE NAME=page0 START=0x218 END=0x07FF
CODEPAGE NAME=page1 START=0x800 END=0xEFF

可是還是不行 是不是位址錯誤ㄌㄋ
謝謝

發表於: 2006/5/29 16:16
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 關於錯誤訊息的解釋
#2
版主
版主


查看用戶資訊
這問題已經出現很多次了,參考底下的回答:

http://www.microchip.com.tw/modules/n ... php?topic_id=1500&forum=1

發表於: 2006/5/29 16:10
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


關於錯誤訊息的解釋
#1
中級會員
中級會員


查看用戶資訊
大家好
我使用PIC16F873A的晶片,除錯時出現下列訊號
MPLINK 3.80, Linker
Copyright (c) 2004 Microchip Technology Inc.
Error - section '.org_1' can not fit the absolute section. Section '.org_1' start=0x00000004, length=0x00000218
Errors : 1

BUILD FAILED: Mon May 29 15:41:28 2006

請問要如何解決......謝謝

發表於: 2006/5/29 15:53
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... ]

教育訓練中心

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