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


Browsing this Thread:   2 Anonymous Users






Re: 有關serial bootloader的問題
#4
中級會員
中級會員


查看用戶資訊
用debug模式run時會成功, 獨立執行卻會發生錯誤.
給你一個參考的想法!!!!!

我覺得可能是 configuration bits 設定的關係!
使用 debug 模式時, code 保護的相關設定皆會被 disable,
但是要獨立執行時, 是可以選擇使它 enable 來燒錄的.

如果有此類型的應用, 但燒錄時 configuration bits 的
code protect , table write , table read 有選擇為 enable來保護程式,
那就會造成程式中對flash program memory讀寫發生錯誤,
可以將 table write, table read 選擇為 disable,
只使用 code protect 保護程式無法被讀出。
這樣對 flash program memory 的讀寫就不致發生錯誤了。

建議你可以檢查一下你的configuration bits 設定.
以上供你參考...

Good Luck !

發表於: 2007/10/16 9:22
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 有關serial bootloader的問題
#3
新會員
新會員


查看用戶資訊
直接 RUN 是使用 ICD2在 ProGramming Mode 下燒錄PIC後拔掉cable後去跑程式,這樣在P1618QP.EXE下執行命令都會fail,但在 Debug Mode 下燒錄 PIC,在P1618QP.EXE下執行命令則會成功。感謝大大的幫忙!

發表於: 2007/10/15 9:47
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 有關serial bootloader的問題
#2
版主
版主


查看用戶資訊
你所謂的直接 RUN 是用ICD2 在 Debug Mode 下燒錄 PIC,還是使用 ICD2在 ProGramming Mode 下燒錄PIC?

發表於: 2007/10/12 18:22
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


有關serial bootloader的問題
#1
新會員
新會員


查看用戶資訊
大家好:
在AN851內有關於serial bootloader的範例程式,小弟將此範例整合進我的程式內用P1618QP.exe去RUN,發現用ICD2 debugger去跑時一切正常,但是將CODE flash進PIC後去跑就一直fail,請問是何原因?用ICD2或是直接flash去RUN要注意不同的事嗎?我用的是PIC18F4520

發表於: 2007/10/9 20:21
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... ]

教育訓練中心

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