• slider image 442
  • slider image 483
  • slider image 484
  • slider image 485
  • slider image 486
  • slider image 487
:::


Browsing this Thread:   1 Anonymous Users






Re: 求助ICD2無法正確debugger(列上程式及錯誤訊息)
#10
高級會員
高級會員


查看用戶資訊
了解~~感恩

發表於: 2009/3/19 11:00
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 求助ICD2無法正確debugger(列上程式及錯誤訊息)
#9
版主
版主


查看用戶資訊
APP001 版子上的 J1CO1 ~3 的 Jumper 是 Close 1 & 2 是在一般除錯及燒錄模式下所使用的。如果Close 2&3 的話是只要用右側的萬用燒錄器去燒錄其他的 PIC。這時 ICD2 就與左邊的電路無關。

所以在使用 APP001 除錯與燒錄左邊的電路時,Jumper 需永遠 Close 在 1 & 2。

發表於: 2009/3/19 10:24
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 求助ICD2無法正確debugger(列上程式及錯誤訊息)
#8
新會員
新會員


查看用戶資訊
先確認一下 MPLAB IDE中Debugger裡頭有沒勾ICD2,再來確認一下Configure欄位裡頭Device有沒選對。

發表於: 2009/3/18 20:57
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 求助ICD2無法正確debugger(列上程式及錯誤訊息)
#7
高級會員
高級會員


查看用戶資訊
版大請教一下,我用練習九都沒問題,原來是configure設定問題,但我在ap001版close 1&2(選擇debug mode)卻可以同時跑debug及programmer,但切換為close2&3都不行跑,這樣正常嗎???(跳線切的用意??)

發表於: 2009/3/18 10:55
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 求助ICD2無法正確debugger(列上程式及錯誤訊息)
#6
版主
版主


查看用戶資訊
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
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 求助ICD2無法正確debugger(列上程式及錯誤訊息)
#5
高級會員
高級會員


查看用戶資訊
大大感恩~小弟將AP001已close1&2(選為debug mode),但卻不能debug 可porgrammer;close2&3卻都不行,所以現在只能porgrammer只直看結果0.0~~不過還是粉感恩您!

發表於: 2009/3/17 9:00
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 求助ICD2無法正確debugger(列上程式及錯誤訊息)
#4
資深會員
資深會員


查看用戶資訊
ICDWarn0020: Invalid target device id (expected=0x90, read=0x0)
表示沒有讀到mcu資料,你有沒有APP001一類的開發板可以測試?
如果實驗板能Work而你的電路不行,那你要檢查你的ICSP介面的線路有沒有接錯。

發表於: 2009/3/13 18:41
不要問我哪裡來,我只是個流浪天涯的工程師
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 求助ICD2無法正確debugger(列上程式及錯誤訊息)
#3
高級會員
高級會員


查看用戶資訊
嗯~是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
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 求助ICD2無法正確debugger(列上程式及錯誤訊息)
#2
資深會員
資深會員


查看用戶資訊
從訊息看來問題不是程式。編譯時有設為Debug而不是Release嗎?

發表於: 2009/3/13 16:18
不要問我哪裡來,我只是個流浪天涯的工程師
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


求助ICD2無法正確debugger(列上程式及錯誤訊息)
#1
高級會員
高級會員


查看用戶資訊
大大您好,小弟剛拿到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
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... ]

教育訓練中心

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