Re: ICD2無法debug
|
||||
---|---|---|---|---|
版主
|
不客氣,能盡一份力量幫客戶解決問題是我們 CAE 的責任,問題解決你高興我也跟著快樂。
發表於: 2008/1/10 16:15
|
|||
|
Re: ICD2無法debug
|
||||
---|---|---|---|---|
新會員
|
感謝版主詳細及耐心的答覆,我果然是沒仔細再看
Config中的設定一直沒選到正確的燒錄與除錯腳位 ,現在問題已經解決了. 正確的對應為JP15 & JP16 -> 選的是EMUD1/EMUC1 然後Primary oscillator-> 選擇HS mode 感謝感謝!
發表於: 2008/1/10 15:18
|
|||
|
Re: ICD2無法debug
|
||||
---|---|---|---|---|
新會員
|
感謝版主的回應,你提到外接crystal我想請問是指這塊板子原來就已經接上的8Mhz 的Xstal嗎?
再請問由接線圖(app026_3_v300_manual)上看來CPU一共有三組ICSP的PGC、PGD可供連接,現在我將jump放在中間那組(JP15,16),看manual的說明提到DEBUG需要燒錄時指定其中一組.有沒有可能是因為沒有指定的關係嗎?若需要指定該如何做呢? 不好意思喔!感謝!
發表於: 2008/1/10 13:04
|
|||
|
Re: ICD2無法debug
|
||||
---|---|---|---|---|
版主
|
我有使用 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
|
|||
|
Re: ICD2無法debug
|
||||
---|---|---|---|---|
版主
|
JTAG 一定要 Disable
發表於: 2008/1/10 11:21
|
|||
|
ICD2無法debug
|
||||
---|---|---|---|---|
新會員
|
各位前輩,看過先前也有人問過類似問題我也是在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
|
|||
|