• slider image 514
  • slider image 516
  • slider image 517
  • slider image 518
  • slider image 519
:::


Browsing this Thread:   2 Anonymous Users






Re: ICD2與APP001 REV.2的問題?
#4
新會員
新會員


查看用戶資訊
感謝前輩的指導!
我有依照您的方式再試幾次但是還有些問題!
情況如下:
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 14:53
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: ICD2與APP001 REV.2的問題?
#3
新會員
新會員


查看用戶資訊
感謝前輩的指導!
我有依照您的方式再試幾次但是還有些問題!
情況如下:
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
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: ICD2與APP001 REV.2的問題?
#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
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


ICD2與APP001 REV.2的問題?
#1
新會員
新會員


查看用戶資訊
煩請各位前輩幫幫我這菜鳥解惑一下!!
我目前使用的是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
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... ]

教育訓練中心

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