• 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: ICD2無法debug
#7
版主
版主


查看用戶資訊
不客氣,能盡一份力量幫客戶解決問題是我們 CAE 的責任,問題解決你高興我也跟著快樂。

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


Re: ICD2無法debug
#6
新會員
新會員


查看用戶資訊
感謝版主詳細及耐心的答覆,我果然是沒仔細再看
Config中的設定一直沒選到正確的燒錄與除錯腳位
,現在問題已經解決了.
正確的對應為JP15 & JP16 -> 選的是EMUD1/EMUC1
然後Primary oscillator-> 選擇HS mode
感謝感謝!

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


Re: ICD2無法debug
#5
版主
版主


查看用戶資訊
是的,使用 On-Board 上的 8MHz Crystal,須選用 HS Mode。

在 _CONFIG1(JTAGEN_OFF & GCP_OFF & GWRP_OFF & ICS_PGx2 & FWDTEN_OFF) 的設定項裡已經選擇使用 EMUD2/EMUC2 (ICS_PGx2 )為燒錄與除錯的腳位,APP026 上面有三個 Jumper 可供選擇。JP15 & JP16 應是第二組 EMUD2/C2 種之看一下 PIC24 的 Pin Assigment 後用電錶量一下繳未就確定了。

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


Re: ICD2無法debug
#4
新會員
新會員


查看用戶資訊
感謝版主的回應,你提到外接crystal我想請問是指這塊板子原來就已經接上的8Mhz 的Xstal嗎?

再請問由接線圖(app026_3_v300_manual)上看來CPU一共有三組ICSP的PGC、PGD可供連接,現在我將jump放在中間那組(JP15,16),看manual的說明提到DEBUG需要燒錄時指定其中一組.有沒有可能是因為沒有指定的關係嗎?若需要指定該如何做呢?
不好意思喔!感謝!

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


Re: ICD2無法debug
#3
版主
版主


查看用戶資訊
我有使用 APP026 也是 PIC24FJ128GA006 (64-pin),我的 Configuration 是這樣設的,我使用外接Crystal 選 HS * 4 PLL,可以參考 p24fj128ga006.h 的後面有關 Config Macro 的說明與定義。

_CONFIG2(IESO_OFF & FNOSC_PRIPLL & FCKSM_CSDCMD & OSCIOFNC_OFF & POSCMOD_HS)
// HS mode with x4 PLL,
_CONFIG1(JTAGEN_OFF & GCP_OFF & GWRP_OFF & ICS_PGx2 & FWDTEN_OFF)

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


Re: ICD2無法debug
#2
版主
版主


查看用戶資訊
JTAG 一定要 Disable

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


ICD2無法debug
#1
新會員
新會員


查看用戶資訊
各位前輩,看過先前也有人問過類似問題我也是在Build之前都是沒問題的.但在debugger\run後就出現
以下訊息

Resetting Target MPLAB ICD 2 Ready Programming Target...
...Validating configuration fields
...Erasing Part
...Programming Program Memory (0x0 - 0x2FF)
Verifying...
...Program Memory
...Verify Succeeded
...Loading DebugExecutive
...Programming DebugExecutive
...Debug Executive
...Programming Debug Vector
...Debug Vector
...Programming Configuration Bits
.. Config Memory Verifying configuration memory... Connecting to debug executive
ICD0083: Debug: Unable to enter debug mode. Please double click this message for more information.
MPLAB ICD 2 Ready

我也懷疑過configure bits中設定的問題,是不是有可能設定錯誤?或是我的程序有誤?
請問我要在哪可以查到我該如何設定?(我的板子是App026-3 CPU是PIC24FJ128GA006)
希望有碰過類似問題的前輩能賜教,感謝!

目前我的configure bits設定是:
Primary Oscillator select
->XT Oscillator Enabled
Primary Oscillator output Function
->OSCO pin has clock out function
Clock Switching and Monitor
->Sw Disabled, Mon Disabled
Osicllator Select
->Fast RC Oscillator with Postscaler
Internal External Switch over Mode
->Enabled
Watchdog Timer Enable
->Disable
以下除了JTAG為Enable外其他都Disable


發表於: 2008/1/9 23:55
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... ]

教育訓練中心

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