Re: ICD2與APP001 REV.2的問題?
|
||||
---|---|---|---|---|
新會員
|
感謝前輩的指導!
我有依照您的方式再試幾次但是還有些問題! 情況如下: 1.想確定的是,是不是JICD1, JICD2 & JICD3 如果要做debug一定要接在 1&2是也有包含可以燒入至實驗版附屬的PIC18F4520也是要調到1&2嗎? 2.如果是上面的問題是正確的,那我操作和執行在MPLAB都顯示正確情形如下: Connecting to MPLAB ICD 2 ...Connected Setting Vdd source to target Target Device PIC18F4520 found, revision = Rev 0x6 ...Reading ICD Product ID Running ICD Self Test ...Passed MPLAB ICD 2 Ready Erasing Target Device... ...Erase Succeeded MPLAB ICD 2 Ready Programming Target... ...Validating configuration fields ...Erasing Part ...Programming Program Memory (0x0 - 0x3F) Verifying... ...Program Memory ...Verify Succeeded Programming Configuration Bits .. Config Memory Verifying configuration memory... ...Verify Succeeded ...Programming succeeded 12-Jan-2008, 11:55:10 MPLAB ICD 2 Ready 但是實驗板子上的動作不管燒入或清除都依然沒變,還是亮前面六個LED燈。 3.以Debug來說也有問題耶!!我有將JICD1, JICD2 & JICD3 接在 1&2 出現情形如下: Connecting to MPLAB ICD 2 ...Connected Setting Vdd source to target Target Device PIC18F4520 found, revision = Rev 0x6 ...Reading ICD Product ID Running ICD Self Test ...Passed MPLAB ICD 2 Ready ICD0083: Debug: Unable to enter debug mode. Please double click this message for more information. ICDWarn0015: Program memory has changed since last program operation? Continue with Debug operation? Running Target ICD0083: Debug: Unable to enter debug mode. Please double click this message for more information. ICD0069: Debug: Unable to run target MPLAB ICD 2 Ready 煩請前輩再為我解惑!感激不盡!!
發表於: 2008/1/12 12:06
|
|||
|
Re: ICD2與APP001 REV.2的問題?
|
||||
---|---|---|---|---|
版主
|
1.ICD2 的 Self Test 都Pass,那ICD2應該沒問題吧!
Ans: 是的。 2.Configure下的select device選PIC18F4520應該也沒問題,但Configuration Bits下的Oscillator我選XT及Watchdog Timer選Disable不知是否正確? Ans: 因為APP001上面的 Crystal 是16MHz,所以要選 HS Mode。使用 ICD2除錯 Watch-Dog Timer 一定要 Disable。 3.我有參考先前去上PIC18的課程所發的光碟資料,裡面說明JICD1, JICD2 & JICD3"3 個都在 1-2 (靠左) 是為Debugger,若都在 2-3 (靠右) 則為 Programmer"不知是否正確? Ans: JICD1, JICD2 & JICD3 如果要做debug一定要接在 1&2 ,2&3 是用右邊的萬用燒錄器時使用。 Ans 4 : 因為 ICD2 在第三項時已經顯示連線失敗,所以程式會燒錄錯且無法執行。
發表於: 2008/1/11 11:15
|
|||
|
ICD2與APP001 REV.2的問題?
|
||||
---|---|---|---|---|
新會員
|
煩請各位前輩幫幫我這菜鳥解惑一下!!
我目前使用的是APP001 REV.2這塊實驗版,附屬的MCU是"PIC18F4520" 情形如下: 1.ICD2 的 Self Test 都Pass,那ICD2應該沒問題吧! 2.Configure下的select device選PIC18F4520應該也沒問題,但Configuration Bits下的Oscillator我選XT及Watchdog Timer選Disable不知是否正確? 3.我有參考先前去上PIC18的課程所發的光碟資料,裡面說明JICD1, JICD2 & JICD3"3 個都在 1-2 (靠左) 是為Debugger,若都在 2-3 (靠右) 則為 Programmer"不知是否正確? 但我實際用的話3個靠右的話ICD2才會Ready才可進行Programming, 如果要使用Debugger模式我把三個靠左的話出現: Connecting to MPLAB ICD 2 ...Connected Setting Vdd source to MPLAB ICD 2 ICDWarn0020: Invalid target device id (expected=0x84, read=0x0) ...Reading ICD Product ID Running ICD Self Test ... Failed Self Test. See ICD2 Settings (status tab) for details. MPLAB ICD 2 Ready 三個靠左的話出現: Connecting to MPLAB ICD 2 ...Connected Setting Vdd source to MPLAB ICD 2 ICDWarn0020: Invalid target device id (expected=0x84, read=0x0) ...Reading ICD Product ID Running ICD Self Test ...Passed MPLAB ICD 2 Ready 搞不清楚這種狀況到底哪裡有問題? 4.最怪的是我參考先前上課的ANS範例,例如我將範例ex1加入到專案Source Files並我有把範例裡的"LIST P=18F452 和 #include <P18F452.INC>"都做修改成 "LIST P=18F4520 和 #include <P18F4520.INC>"並將檔案Assemble,又將專案裡的Linker Scripts加入18f4520.lkr,好了之後Build All顯示正常無錯,之後執行Program target device也都成功,但實驗版的動作和程式完全不一樣,並且我改用範例的其他程式來試,實驗版好像當掉ㄧ樣,Erase沒有用實驗版的動作和原本一樣,Program的話顯示成功,但實驗版的動作和原本的還是ㄧ樣(都亮前面D1~D6六顆LED),實在是搞不清楚到底有沒有將程式給燒到MCU裡? 是不是要拔除實驗版的ㄧ些東西才動作正常,還是我還有其他操作錯誤?
發表於: 2008/1/10 20:03
|
|||
|