Re: 關於記憶體搬移...有什麼情況會這樣呢!?
|
||||
---|---|---|---|---|
高級會員
|
抱歉~這幾天都在忙別的事情...
您說的Disable 我了解~ 我是選擇disable 沒錯... 至於您說把Release 改成debug. 試了一下,Debug 會把記憶體位址往後推,會閃過0x828 跟 0x829...所以.... 想請問 0x828 跟 0x829 這記憶體位址是否不能使用?
發表於: 2008/4/14 15:48
|
|||
|
Re: 關於記憶體搬移...有什麼情況會這樣呢!?
|
||||
---|---|---|---|---|
版主
|
不是勾選,而是選擇 Disable。
另外在 MPLAB IDE 的選項裏有一個 Released/Debug 的選項,要選擇 Debug 後再 Build All
發表於: 2008/4/10 10:02
|
|||
|
Re: 關於記憶體搬移...有什麼情況會這樣呢!?
|
||||
---|---|---|---|---|
高級會員
|
您說的最佳化,剛剛去看了一下,並沒有勾選阿...
sourceAddr.v(3)=0; 這行執行的結果, 不是應該把 sourceAddr.v(3) 放 0嗎? 所以我用watch 看 v(2) 跟 v(3) 都沒辦法被修改. 目前我是改gld, Ram 從834 位址 開始使用 避掉這個問題..
發表於: 2008/4/10 9:15
|
|||
|
Re: 關於記憶體搬移...有什麼情況會這樣呢!?
|
||||
---|---|---|---|---|
版主
|
看不出來問題所在。尤其是sourceAddr.v(3)=0; 這一行的結果??
試著將 最佳化的功能關掉後再執行看看。 Project--> Project Ottions --> Projects --> MPLAB C30 --> Categories 下 選擇將 Optimixation DIsable
發表於: 2008/4/9 11:40
|
|||
|
關於記憶體搬移...有什麼情況會這樣呢!?
|
||||
---|---|---|---|---|
高級會員
|
明明已經把 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
|
|||
|