• 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: PIC18F4520 flash write
#6
初級會員
初級會員


查看用戶資訊
感謝各位的回覆
有進一步的問題在請教各位
Thanks!!

發表於: 2009/3/31 0:01
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC18F4520 flash write
#5
版主
版主


查看用戶資訊
不建議這樣使用記憶體,PIC18F4620 最前面的 2KBytes( 0x0000~0x07FF) 是規劃給Bootloader 用的區域。一般的程式建議是從 0x0800 以後開始擺放,且也要考慮到 Hi/Low Interrup Vector 的轉移。

發表於: 2009/3/26 13:52
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC18F4520 flash write
#4
資深會員
資深會員


查看用戶資訊
你這種做法,只要一燒掛就掛了

一般的bootloader 都會將reset , interrupt vector 這些位置和 bootloader 放在一起。

自己要燒的程式才另外放到別的地方。

否則你如何確保每次 reset 都能有bootloader 可以用?

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


Re: PIC18F4520 flash write
#3
初級會員
初級會員


查看用戶資訊
Sorry 沒有說清楚
當開始erase all 0x0000~0x6FFF前
已經 先 disable interrupt and using polling mode來收rs-232的資料了
thanks

發表於: 2009/3/26 0:55
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC18F4520 flash write
#2
資深會員
資深會員


查看用戶資訊
interrupt vector

發表於: 2009/3/23 10:38
The Answer to Life, the Universe, and Everything.
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


PIC18F4520 flash write
#1
初級會員
初級會員


查看用戶資訊
Hi all:
PIC18F4520
我嘗試著做bootloader(自寫AP&PIC)
規劃如下:
rewrite area 0x0000~0x6FFF, 變動的程式及PICloader
reserved area 0x7000~0x7FFF,有rs232收發程式及table write
AP 命令如下
法一:
1. erase 32bytes
2. table write 8 bytes 四次
Repeat till whole 0x0000~0x6FFF
結果==>>成功\r

法二:
1. Erase 0x00~0x6FFF(AP下命令, PIC自行做)
2. PIC回OK
3. AP send 要write的第一組資料(8 bytes)
4. PIC no response.
結果==>>失敗

請高手賜教

發表於: 2009/3/23 0:44
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... ]

教育訓練中心

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