• 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: PIC18F8720為什麼我燒錄會無法使用
#4
中級會員
中級會員


查看用戶資訊
我剛剛發現一種解決方案

只要這樣子設定

再燒進去IC裡面

就可以Run了



可是, 變成每次一compiler

都要這樣子存檔...多了一堆步驟

不知道Malab有沒有方法設定自動簡化的步驟呢

Attach file:



jpg  (0.00 KB)


jpg  (0.00 KB)


jpg  (0.00 KB)


發表於: 2009/1/22 13:42
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC18F8720為什麼我燒錄會無法使用
#3
中級會員
中級會員


查看用戶資訊
感謝....它不能跑的原因我大概知道了...

不過還有一點問題...

他這個sample的專案, 我找了很久, 都沒有上述兩段程式~

還有這個sample是用C語言寫的, 上面的部份是組合語言

不知道C語言要怎麼改才能執行呢?


順代問一下, 所謂 bootloader 它是用來做什麼的, 這種東西

害我還不能Run 單晶片, 感覺是多餘的吧?

發表於: 2009/1/22 13:36
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC18F8720為什麼我燒錄會無法使用
#2
管理員
管理員


查看用戶資訊
你好,

因為 Demo 程的進入點為0x200 , 所以直接Assembler 以後是無法獨立運做的. 必需要藉由 bootloader 把控制權交至 0x200 才可以運作.

這也就是為何你使用了 F8720demoPLUSBoot.hex 才能工作的原因. 當然 , 如果你不要有 bootloader 才可以跳到 0x200, 可以 :
(1) 將 RESET_VECTOR CODE 0x200 改成 RESET_VECTOR CODE 0x000
(2) 或是將 ;DEBUG_RST CODE 0x0000 和 ; bra 0x200 前面的分號取消就 OK 啦 :)


;******************************************************************************
;
Dummy Reset vector debugger needs 0x0000 code
;DEBUG_RST        CODE    0x0000
;        bra        0x200


;******************************************************************************
;
Reset vector
This code will start executing when a reset occurs.
RESET_VECTOR    CODE    0x0200

        call    CheckBoot        
Check if RESET under boot conditions
        
goto    Main            Go to start of main code

發表於: 2009/1/22 10:40
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


PIC18F8720為什麼我燒錄會無法使用
#1
中級會員
中級會員


查看用戶資訊
我這邊有這塊
http://www.microchip.com/stellent/idc ... Id=1406&dDocName=cn010058

上面是 PIC18F8720的板子
型號是 F8720DEMO+BOOTV2

但是

我安裝好Sample之後..正打算要燒錄

發現裡面竟然有3個 .hex檔

8720Demo.hex

F8720Demo_V2.hex

F8720DemoPLUSBoot_V2.hex

我載入前面兩個檔案時都有這樣的訊息
"There were fuses stored in the file
然後燒進去了, 也不能正常下去Run...

然而燒最後一個檔時, 就完全正常了....
不知道這些檔的格式有什麼差別....

最重要的一點是, 我進入附送的Malab專案

compiler之後..輸出 8720Demo.hex...竟然是無法正常動作的那個.hex

燒進去時..也發生一樣的問題

所以到現在還沒親自Run過自己寫的程式


不知道是設定上哪邊出問題了嗎

發表於: 2009/1/21 19:16
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... ]

教育訓練中心

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