• 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: 關於記憶體搬移...有什麼情況會這樣呢!?
#6
中級會員
中級會員


查看用戶資訊
這個... 並不是不可以使用這些記憶體.

主要的原因就只是版主所提到的 Release 與 Debug 模式的問題.

當使用 ICD2 來進行 Debug 時, 實際上是會占用到內部 RAM 的一小部分來協助 Debug 的運作的.
此時若未改變為 Debug 模式並重新 Build All 的話,
便會出現 Debug 所占用的 RAM 與使用者程式使用到的 RAM發生重疊的現象,
以致 Debug 時出現跟正常程式結果值不一樣的情形.

選擇為 Debug 模式且重新 Build All 時, 會將使用者程式可使用的 RAM 區域稍微調整(通常是往後),
這樣 Debug 所使用的 RAM 就不會與使用者使用的區域重疊了.

所以, 使用 ICD2 來進行 Debug 時要記得改為 Debug 模式並重新 Build All,
這樣才不會有使用者變數內容遭 Debug 操作影響的情形.
當要正式應用時改回成 Release 模式並重新 Build All 以除去 Debug 模式所會占用的資源。

發表於: 2008/4/14 17:30
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 關於記憶體搬移...有什麼情況會這樣呢!?
#5
高級會員
高級會員


查看用戶資訊
抱歉~這幾天都在忙別的事情...
您說的Disable 我了解~ 我是選擇disable 沒錯...
至於您說把Release 改成debug.
試了一下,Debug 會把記憶體位址往後推,會閃過0x828 跟 0x829...所以....
想請問 0x828 跟 0x829 這記憶體位址是否不能使用?

發表於: 2008/4/14 15:48
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 關於記憶體搬移...有什麼情況會這樣呢!?
#4
版主
版主


查看用戶資訊
不是勾選,而是選擇 Disable。

另外在 MPLAB IDE 的選項裏有一個 Released/Debug 的選項,要選擇 Debug 後再 Build All

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


Re: 關於記憶體搬移...有什麼情況會這樣呢!?
#3
高級會員
高級會員


查看用戶資訊
您說的最佳化,剛剛去看了一下,並沒有勾選阿...
sourceAddr.v(3)=0; 這行執行的結果, 不是應該把
sourceAddr.v(3) 放 0嗎? 所以我用watch 看
v(2) 跟 v(3) 都沒辦法被修改.
目前我是改gld, Ram 從834 位址 開始使用 避掉這個問題..

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


Re: 關於記憶體搬移...有什麼情況會這樣呢!?
#2
版主
版主


查看用戶資訊
看不出來問題所在。尤其是sourceAddr.v(3)=0; 這一行的結果??
試著將 最佳化的功能關掉後再執行看看。
Project--> Project Ottions --> Projects --> MPLAB C30 --> Categories 下 選擇將 Optimixation DIsable

發表於: 2008/4/9 11:40
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


關於記憶體搬移...有什麼情況會這樣呢!?
#1
高級會員
高級會員


查看用戶資訊
明明已經把 buffer[2] buffer[3] buffer[4] 丟到
sourceAddr.v[0] ,sourceAddr.v[1] ,sourceAddr.v[2]
sourceAddr.v[3] 放 0 為什麼 我用Watch 看
只有 sourceAddr.v[0] ,sourceAddr.v[1] 有被更改,而
v[2] 跟v[3] 沒有辦法被更改...code 是Pic24 的bootLoader
縮圖

發表於: 2008/4/8 10:09
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... ]

教育訓練中心

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