會員登陸
帳號:

密碼:

記住我



忘記密碼?

現在註冊!
網站導航
最新下載
訪問統計 (自2012/5/3)


正在流覽:   1 名訪客





Pickit3 Connection Failed.
新會員
註冊日期:
3月18日 10:17:28
所屬群組:
註冊會員
文章: 9
等級: 1; EXP: 86
HP : 4 / 21
MP : 2 / 2
離線
版主好:

BUILD SUCCESSFUL (total time: 466ms)
Loading code from D:/XIDE/xide.X/dist/default/production/xide.X.production.hex...
Loading completed
Connecting to programmer...
The programmer could not be started: Could not connect to tool hardware: PICkit3PlatformTool, com.microchip.mplab.mdbcore.PICKit3Tool.PICkit3DbgToolManager

請問 如何在 MPLAB X IDE 連接 Pickit3?

感謝

附加檔案:



jpg  擷取1.JPG (58.47 KB)
76737_5e74a3bda0e5f.jpg 510X713 px

3月20日 19:06:42
轉換PDF檔 列印


Re: Pickit3 Connection Failed.
版主
註冊日期:
2004/04/30 10:53
來自 CAE, Microchip
所屬群組:
站務管理者
註冊會員
MICROCHIP
文章: 15011
等級: 73; EXP: 84
HP : 1092 / 1821
MP : 5003 / 84764
離線
請檢查一下專案的內容設定,先檢查一下 Hardware Tools 下是連結到 PK3 並且有 PK3 的序號: SN:BURxxxxxx 的選項。

點選 PK3 的序號看是否可以連接,如無法連接請到主選項的 Debug 裡,在最後第二項有硬體工具的自我測試項,先測試一下工具的好壞。

附加檔案:



jpg  擷取.JPG (87.35 KB)
16_5e782f958804b.jpg 1073X491 px

3月23日 11:40:05
轉換PDF檔 列印


Re: Pickit3 Connection Failed.
新會員
註冊日期:
3月18日 10:17:28
所屬群組:
註冊會員
文章: 9
等級: 1; EXP: 86
HP : 4 / 21
MP : 2 / 2
離線
Ryang 您好:

連接時出現以下訊息:
Programming/Verify complete
The target device is not ready for debugging. Please check your configuration bit settings and program the device before proceeding. The most common causes for this failure are oscillator and/or PGC/PGD settings.

好像振盪器不起振的關係
內部外部的 我都試過了

以下是我的 config bit 設定

放在 main.c 的標頭
沒再寫其他程式了。

謝謝您 , 請指教!


IC是 :PIC18F4520


/ CONFIG1H
#pragma config OSC =HS // Oscillator Selection bits (HS oscillator)
#pragma config FCMEN = OFF // Fail-Safe Clock Monitor Enable bit (Fail-Safe Clock Monitor disabled)
#pragma config IESO = OFF // Internal/External Oscillator Switchover bit (Oscillator Switchover mode disabled)

// CONFIG2L
#pragma config PWRT = OFF // Power-up Timer Enable bit (PWRT disabled)
#pragma config BOREN = SBORDIS // Brown-out Reset Enable bits (Brown-out Reset enabled in hardware only (SBOREN is disabled))
#pragma config BORV = 3 // Brown Out Reset Voltage bits (Minimum setting)

// CONFIG2H
#pragma config WDT = OFF // Watchdog Timer Enable bit (WDT enabled)
#pragma config WDTPS = 32768 // Watchdog Timer Postscale Select bits (1:32768)

// CONFIG3H
#pragma config CCP2MX = PORTC // CCP2 MUX bit (CCP2 input/output is multiplexed with RC1)
#pragma config PBADEN = ON // PORTB A/D Enable bit (PORTB<4:0> pins are configured as analog input channels on Reset)
#pragma config LPT1OSC = OFF // Low-Power Timer1 Oscillator Enable bit (Timer1 configured for higher power operation)
#pragma config MCLRE = ON // MCLR Pin Enable bit (MCLR pin enabled; RE3 input pin disabled)

// CONFIG4L
#pragma config STVREN = ON // Stack Full/Underflow Reset Enable bit (Stack full/underflow will cause Reset)
#pragma config LVP = ON // Single-Supply ICSP Enable bit (Single-Supply ICSP enabled)
#pragma config XINST = OFF // Extended Instruction Set Enable bit (Instruction set extension and Indexed Addressing mode disabled (Legacy mode))

// CONFIG5L
#pragma config CP0 = OFF // Code Protection bit (Block 0 (000800-001FFFh) not code-protected)
#pragma config CP1 = OFF // Code Protection bit (Block 1 (002000-003FFFh) not code-protected)
#pragma config CP2 = OFF // Code Protection bit (Block 2 (004000-005FFFh) not code-protected)
#pragma config CP3 = OFF // Code Protection bit (Block 3 (006000-007FFFh) not code-protected)

// CONFIG5H
#pragma config CPB = OFF // Boot Block Code Protection bit (Boot block (000000-0007FFh) not code-protected)
#pragma config CPD = OFF // Data EEPROM Code Protection bit (Data EEPROM not code-protected)

// CONFIG6L
#pragma config WRT0 = OFF // Write Protection bit (Block 0 (000800-001FFFh) not write-protected)
#pragma config WRT1 = OFF // Write Protection bit (Block 1 (002000-003FFFh) not write-protected)
#pragma config WRT2 = OFF // Write Protection bit (Block 2 (004000-005FFFh) not write-protected)
#pragma config WRT3 = OFF // Write Protection bit (Block 3 (006000-007FFFh) not write-protected)

// CONFIG6H
#pragma config WRTC = OFF // Configuration Register Write Protection bit (Configuration registers (300000-3000FFh) not write-protected)
#pragma config WRTB = OFF // Boot Block Write Protection bit (Boot block (000000-0007FFh) not write-protected)
#pragma config WRTD = OFF // Data EEPROM Write Protection bit (Data EEPROM not write-protected)

// CONFIG7L
#pragma config EBTR0 = OFF // Table Read Protection bit (Block 0 (000800-001FFFh) not protected from table reads executed in other blocks)
#pragma config EBTR1 = OFF // Table Read Protection bit (Block 1 (002000-003FFFh) not protected from table reads executed in other blocks)
#pragma config EBTR2 = OFF // Table Read Protection bit (Block 2 (004000-005FFFh) not protected from table reads executed in other blocks)
#pragma config EBTR3 = OFF // Table Read Protection bit (Block 3 (006000-007FFFh) not protected from table reads executed in other blocks)

// CONFIG7H
#pragma config EBTRB = OFF // Boot Block Table Read Protection bit (Boot block (000000-0007FFh) not protected from table reads executed in other blocks)

// #pragma config statements should precede project file includes.
// Use project enums instead of #define for ON and OFF.

#include <xc.h>

3月25日 19:38:42
轉換PDF檔 列印


Re: Pickit3 Connection Failed.
版主
註冊日期:
2004/04/30 10:53
來自 CAE, Microchip
所屬群組:
站務管理者
註冊會員
MICROCHIP
文章: 15011
等級: 73; EXP: 84
HP : 1092 / 1821
MP : 5003 / 84764
離線
通常燒錄成功膽無法進行除錯功能,大部分的問題是出在振盪器沒有起振,還有是硬體接線及 Config. Bit 設定錯誤所致。

你有外接 Crystal (HS Mode) 嗎? 有起振嗎?
建議將 HS Mode 改成 : #pragma config OSC = INTIO7 // Oscillator Selection bits (Internal oscillator block, CLKO

還有關並一下 LVP 的設定: #pragma config LVP = OFF

你可以參考一下 XC8 的教育訓練課程,裡面有 PIC18F4520 的 Lab,你可以用來試試看(實驗本用的是 APP001 v3)

3月26日 10:34:20
轉換PDF檔 列印






無法在此發表文章
可以在此觀看文章
無法回覆文章
無法編輯自己的文章
無法刪除自己的文章
無法發起投票調查
無法在此投票
無法上傳附加檔案
無法不經審核直接發表文章

[進階搜尋]


搜尋
Microchip連結
產品技術問題產品技術支援專線:0800-717718 台北02-25088600 新竹03-5778366 Ext. 8600 高雄07-2137830 MicrochipDIRECT 專線: 07-2137830
Powered by XOOPS © 2001-2012 The XOOPS Project