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


Browsing this Thread:   1 Anonymous Users






Re: 關於24FJ128GB106的問題
#6
版主
版主


查看用戶資訊
參照:

brian9030 寫道:
如果我把.END改成
/*
EOF
*/
那就不會有Warning: end of file not at end of a line; newline inserted的出現
可是至於找不到路徑要怎麼改進呢?
謝謝


1. PIC24 的組合語言相較 PIC16 而言是比較複雜的,看你寫的組語方式就知道還是停留在單一組語的基本架構下。須知PIC24 的組語是一定要使用 GLD 來做連結的,所採用的都是節區的觀念,而且你必須了解 PIC24 的記憶體架構。

2. 學 POIC24 的組語時要先將 MCU 的架構先了解,同時 ASM30 也是一蠻複雜的組語所以也要了解 ASM30 的使用方法,否則你來怎樣定節區都不曉得那怎樣使用 LINK30 來幫你配置記憶體的。

基於第一項& 第二項需求,建議看一下 dsPIC30F Architecture 的教育訓練教材。

http://www.microchip.com.tw/modules/w ... nglefile.php?cid=4&lid=39

3. 我會建議你用 C30 來寫你的程式不要用組語,除非你要自我挑戰...

發表於: 2010/1/26 13:04
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 關於24FJ128GB106的問題
#5
資深會員
資深會員


查看用戶資訊
C18的我會改 但是24的 要問RYANG大大了

發表於: 2010/1/26 11:12
My name is jan,Jan是棒的
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 關於24FJ128GB106的問題
#4
新會員
新會員


查看用戶資訊
如果我把.END改成
/*
EOF
*/
那就不會有Warning: end of file not at end of a line; newline inserted的出現
可是至於找不到路徑要怎麼改進呢?
謝謝

發表於: 2010/1/25 16:20
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 關於24FJ128GB106的問題
#3
資深會員
資深會員


查看用戶資訊
cannot open linker script file p24FJ128GB106.gld: No such file or directory
Link step failed.

就只有說找不到路徑,沒有錯誤的訊息
有錯誤他會顯示ERROR並且指出在第幾行

Warning: end of file not at end of a line; newline inserted
這個警告,因該是說結尾的END沒下好

發表於: 2010/1/25 15:42
My name is jan,Jan是棒的
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


關於24FJ128GB106的問題
#2
新會員
新會員


查看用戶資訊
我程式打完之後 PUTOUT出現這段字:
Clean: Deleting intermediary and output files.
Clean: Deleted file "D:\PIC TXET\no1\new.o".
Clean: Deleted file "D:\PIC TXET\no1\new.s.mcs".
Clean: Done.
Executing: "C:\Program Files\Microchip\MPLAB ASM30 Suite\bin\pic30-as.exe" "new.s" -o"new.o" -p=24FJ128GB106 --defsym=__DEBUG=1 -g
new.s: Assembler messages:
new.s:0: Warning: end of file not at end of a line; newline inserted
Executing: "C:\Program Files\Microchip\MPLAB ASM30 Suite\bin\pic30-ld.exe" "new.o" -Tp24FJ128GB106.gld --defsym=__MPLAB_BUILD=1 --defsym=__MPLAB_DEBUG=1 -o"D:\PIC TXET\new.s.cof" -Map="D:\PIC TXET\new.s.map" --report-mem
C:\Program Files\Microchip\MPLAB ASM30 Suite\bin\bin/pic30-coff-ld.exe: cannot open linker script file p24FJ128GB106.gld: No such file or directory
Link step failed.
出現
BUILD FAILED
這是我的程式:
.list p=p24fj128gb106 ;目錄控制
.include "p24fj128gb106.inc" ;存取設定之特殊暫存器
.org 0x00 ;將指令機器碼從0x00放起
mov 0xff, w0 ;將十六進制常數0x01載入暫存器W內
mov w0,TRISB ;將TRISB的第一隻接腳設定為輸入 (將W暫存器內容移至暫存器f中)
mov #0x00,w0 ;將十六進制常數0x01載入暫存器Wb內
mov w0,TRISC ;將TRISC的所有接腳定為輸出 (將W暫存器內容移至暫存器f中)
main: ;主要程式
btss PORTB,#0 ;檢查PORTB埠的第0支接腳是為側紅外線是否有接收到 (是否為1)
call dark
call bright
dark:
mov #0x00, w0 ;將0x00移到W0
mov w0,PORTC ;把W0移到f暫存器(PORTC=0x00)
return
bright:
mov #0xff,w0 ;將0xff移到W0
mov w0,PORTC ;把W0移到f暫存器(PORTC=0xff)
return
.end
請問是路徑的問題還是,是我的程式指令有問題?
謝謝

發表於: 2010/1/25 15:32
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... ]

教育訓練中心

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