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


Browsing this Thread:   1 Anonymous Users






Re: 中斷副程式寫太多,compiler錯誤,怎麼辦?
#10
版主
版主


查看用戶資訊
要修改 LKR 檔就須了解 LKR 檔的內容與意義。請參考RTC教材裡的 MAPSM 及 W401 C18 的課程內容,利用右上角搜尋一下。

發表於: 2008/8/20 8:49
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 中斷副程式寫太多,compiler錯誤,怎麼辦?
#9
初級會員
初級會員


查看用戶資訊
Ryang 引言:
linker出現錯誤
: section '.tmpdata' can not fit the section. Section '.tmpdata' length=0x00000008

這是 LINKER 安排成是位址時發生長度的錯誤,只要修改一下 LKR 檔裡的程式節區位址長度就可以了。

請問版大 :
我的中斷程式是寫在 0x0008 , 要怎麼修改LKR 檔裡的程式節區位址長度呢 ??????????????????????????????

發表於: 2008/8/19 23:21
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 中斷副程式寫太多,compiler錯誤,怎麼辦?
#8
資深會員
資深會員


查看用戶資訊
參照:

Ryang 寫道:
參照:

PSIR 寫道:
我記得 MCC18 和 Hi-Tech PICC 在中斷函數裡面是無法呼叫函數的,我目前只有用過 KEIL C 沒有這種限制,如果要在中斷函數呼叫函數的話,最好是設一個旗號,離開 ISR 後到主程式去呼叫函數。


C18 是可以在中斷裡呼叫函數的。請在確認一下你的程式。


C30是可以呼叫函數 我5個中斷都有呼叫1-2個函數

C18之前寫也可以阿

發表於: 2008/8/19 14:08
==== ^^ ^^ ====
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 中斷副程式寫太多,compiler錯誤,怎麼辦?
#7
版主
版主


查看用戶資訊
參照:
linker出現錯誤
: section '.tmpdata' can not fit the section. Section '.tmpdata' length=0x00000008

這是 LINKER 安排成是位址時發生長度的錯誤,只要修改一下 LKR 檔裡的程式節區位址長度就可以了。

發表於: 2008/8/19 13:48
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 中斷副程式寫太多,compiler錯誤,怎麼辦?
#6
版主
版主


查看用戶資訊
參照:

PSIR 寫道:
我記得 MCC18 和 Hi-Tech PICC 在中斷函數裡面是無法呼叫函數的,我目前只有用過 KEIL C 沒有這種限制,如果要在中斷函數呼叫函數的話,最好是設一個旗號,離開 ISR 後到主程式去呼叫函數。


C18 是可以在中斷裡呼叫函數的。請在確認一下你的程式。

發表於: 2008/8/19 13:44
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 中斷副程式寫太多,compiler錯誤,怎麼辦?
#5
資深會員
資深會員


查看用戶資訊
其實中段處理一些工作是可以
但是要算一下時間不要太長

我目前案子就有軟硬體中斷 QEI ADC T0 INT0 CN0 5個同時使用 但是都簡短判斷 運算

發表於: 2008/8/19 12:00
==== ^^ ^^ ====
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 中斷副程式寫太多,compiler錯誤,怎麼辦?
#4
資深會員
資深會員


查看用戶資訊
我記得 MCC18 和 Hi-Tech PICC 在中斷函數裡面是無法呼叫函數的,我目前只有用過 KEIL C 沒有這種限制,如果要在中斷函數呼叫函數的話,最好是設一個旗號,離開 ISR 後到主程式去呼叫函數。

發表於: 2008/8/19 10:27
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 中斷副程式寫太多,compiler錯誤,怎麼辦?
#3
初級會員
初級會員


查看用戶資訊
請問master 大
queue、message 機制 的使用方法是???????
有範例可以參考嗎 ???

發表於: 2008/8/19 0:23
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 中斷副程式寫太多,compiler錯誤,怎麼辦?
#2
資深會員
資深會員


查看用戶資訊
中斷不是讓你拿來這樣用的...

中斷副程式越短越好,透過queue、message、或是flag等機制讓工作在主程式中執行。

發表於: 2008/8/19 0:12
不要問我哪裡來,我只是個流浪天涯的工程師
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


中斷副程式寫太多,compiler錯誤,怎麼辦?
#1
初級會員
初級會員


查看用戶資訊
各位大大 :
我是用MPLAB v7.5 + MCC18 + PIC18F4520 , 在寫time0 時間中斷副程式的時後 , 因為程式龐大 , linker出現錯誤
: section '.tmpdata' can not fit the section. Section '.tmpdata' length=0x00000008
如果把程式減少就可compiler成功 , 又或是把程式包在一個函式 ex. void prog() , 然後在 時間中斷副程式 呼叫它
prog() , 這樣compiler也會過.
不知有什麼解決方法呢? 因為把程式包在外面好像有問題呀!

發表於: 2008/8/18 22:02
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... ]

教育訓練中心

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