• 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: MPLAB ICD2看不到變數值
#5
初級會員
初級會員


查看用戶資訊
謝謝版主支援
使用新的MCU就是要和有經驗的人討論,才會快速上手。

發表於: 2007/12/28 10:18
數位地球人
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: MPLAB ICD2看不到變數值
#4
版主
版主


查看用戶資訊
zedd,

解決 Reserved Memory 的問題是在 MPLAB IDE 下有個 "Release & Debug" 的下拉視窗 : 如果要用 ICD2 or Real ICE Degubbing 的話,該選項就要選擇 "Debug" 後重新 Build All 再燒錄,這樣 Linker 才可以將除錯要用到的資源保留下來這樣才不會跟你的程式衝突(共用RAM的問題)。如果要讓 Target Board 單獨執行的話就可以勾選 "Release" 的選項。

Out of Scope : 是要觀察 Local Variable 時,卻不在此 Local Variable 所宣告的函數內。因為 Local Variable 有可能是用堆疊區的 RAM 來做的,當離開此函數後堆疊指標(FSR1 & FSR2) 也跟個改變所以就無法得知 Local Variable 的位址,所以就會秀 Out of Scope,只要將斷點設在函數內就可以看到Local Variable 的值了。

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


Re: MPLAB ICD2看不到變數值
#3
資深會員
資深會員


查看用戶資訊
就一般情況,dspic 應該一樣吧:

Reserved Memory - ICD Debug 需要佔用某些特定 memory 位址,請避開。 位址可查 MPLAB 的 Help

Out of scope - breakpoint 請停在該 scope 程式範圍中, 再來看


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


Re: MPLAB ICD2看不到變數值
#2
初級會員
初級會員


查看用戶資訊
麻煩版主或各位高手能解惑
在watch看不到區域及全域變數的問題是:
1. 我的設定或方法不對
2. ICD2的能力有限? 那Real ICE呢?
3. MPLAB的問題? 就算是使用Real ICE也沒輒

謝謝~

發表於: 2007/12/27 9:47
數位地球人
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


MPLAB ICD2看不到變數值
#1
初級會員
初級會員


查看用戶資訊
各位好
我是新手,使用MPLAB ICD2,搭配dsPIC30F4011的開發板子,現在寫了一個很簡單的小程式,測試中斷及Timer,結果如預期一般工作。
問題是,在程式中設了一個全域變數,放在Timer的中斷副程式,做為旗標。另外在主程式放了一個區域變數,計算中斷副程式發生的次數。

我用watch看,MPLAB可以把這兩個變數抓出來,但是它的值卻無法看的到。
全域變數的值會顯示:Reserved Memory
區域變數的值會顯示:Out of Scope

請問一下,有辦法把這兩個變數的值正確顯示嗎?

發表於: 2007/12/26 11:49
數位地球人
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... ]

教育訓練中心

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