Re: 求助ICD2無法正確debugger(列上程式及錯誤訊息)
|
||||
---|---|---|---|---|
高級會員
|
了解~~感恩
發表於: 2009/3/19 11:00
|
|||
|
Re: 求助ICD2無法正確debugger(列上程式及錯誤訊息)
|
||||
---|---|---|---|---|
新會員
|
先確認一下 MPLAB IDE中Debugger裡頭有沒勾ICD2,再來確認一下Configure欄位裡頭Device有沒選對。
發表於: 2009/3/18 20:57
|
|||
|
Re: 求助ICD2無法正確debugger(列上程式及錯誤訊息)
|
||||
---|---|---|---|---|
高級會員
|
版大請教一下,我用練習九都沒問題,原來是configure設定問題,但我在ap001版close 1&2(選擇debug mode)卻可以同時跑debug及programmer,但切換為close2&3都不行跑,這樣正常嗎???(跳線切的用意??)
發表於: 2009/3/18 10:55
|
|||
|
Re: 求助ICD2無法正確debugger(列上程式及錯誤訊息)
|
||||
---|---|---|---|---|
版主
|
Program Mode 可以,Debug Mode 不行,這種情形多半是設定上的錯誤。請檢查一下 Configuration 的振盪設定,或套用一下 W100 教育訓練後面的ICD2 練習九。
http://www.microchip.com.tw/modules/w ... inglefile.php?cid=3&lid=4
發表於: 2009/3/17 9:57
|
|||
|
Re: 求助ICD2無法正確debugger(列上程式及錯誤訊息)
|
||||
---|---|---|---|---|
高級會員
|
大大感恩~小弟將AP001已close1&2(選為debug mode),但卻不能debug 可porgrammer;close2&3卻都不行,所以現在只能porgrammer只直看結果0.0~~不過還是粉感恩您!
發表於: 2009/3/17 9:00
|
|||
|
Re: 求助ICD2無法正確debugger(列上程式及錯誤訊息)
|
||||
---|---|---|---|---|
資深會員
|
ICDWarn0020: Invalid target device id (expected=0x90, read=0x0)
表示沒有讀到mcu資料,你有沒有APP001一類的開發板可以測試? 如果實驗板能Work而你的電路不行,那你要檢查你的ICSP介面的線路有沒有接錯。
發表於: 2009/3/13 18:41
|
|||
不要問我哪裡來,我只是個流浪天涯的工程師
|
||||
|
Re: 求助ICD2無法正確debugger(列上程式及錯誤訊息)
|
||||
---|---|---|---|---|
高級會員
|
嗯~是debug~按下Reset and Connect to ICD查不到ic資料,出現下列訊息~
Connecting to MPLAB ICD 2 ...Connected Setting Vdd source to MPLAB ICD 2 ICDWarn0020: Invalid target device id (expected=0x90, read=0x0) ...Reading ICD Product ID Running ICD Self Test ...Passed MPLAB ICD 2 ready for next operation
發表於: 2009/3/13 17:06
|
|||
|
Re: 求助ICD2無法正確debugger(列上程式及錯誤訊息)
|
||||
---|---|---|---|---|
資深會員
|
從訊息看來問題不是程式。編譯時有設為Debug而不是Release嗎?
發表於: 2009/3/13 16:18
|
|||
不要問我哪裡來,我只是個流浪天涯的工程師
|
||||
|
求助ICD2無法正確debugger(列上程式及錯誤訊息)
|
||||
---|---|---|---|---|
高級會員
|
大大您好,小弟剛拿到16f877a,想簡單測試一下連接ICD2
程式 list p=16f877a #include<p16f877a.inc> A equ 0x20; NUM equ 0x30; org 0x00; nop Start: movlw NUM addlw .2 movwf A banksel TRISC clrf TRISC banksel PORTC movwf PORTC end 但為何debugger fail錯誤指向程式中的nop(已查IC資料接法皆正確,Build也成功) MPLAB ICD 2 ready for next operation ICDWarn0015: Program memory has changed since last program operation? Continue with Debug operation? ICD0200: Operation Aborted (Warning 15). ICD0069: Debug: Unable to run target MPLAB ICD 2 ready for next operation 當然也試一下Programmer,感覺成功,但卻沒有任何反應 MPLAB ICD 2 ready for next operation Programming Target... ...Validating configuration fields ...Erasing Part ...Programming Program Memory (0x0 - 0xF) Verifying... ...Program Memory ...Verify Succeeded Programming Configuration Bits .. Config Memory Verifying configuration memory... ...Verify Succeeded ...Programming succeeded 13-Mar-2009, 16:04:45 MPLAB ICD 2 ready for next operation why??
發表於: 2009/3/13 10:51
Edited by gamecg on 2009年03月13日 11:18:17
Edited by gamecg on 2009年03月13日 13:55:05 Edited by gamecg on 2009年03月13日 15:24:28 Edited by gamecg on 2009年03月13日 16:10:24 |
|||
|