Re: 關於 APP001 的問題....
|
||||
---|---|---|---|---|
版主
|
在檢查一下 configuration 的 Oscillator 設定是否為 HS Mode
, 其它的都設為 Disable
發表於: 2005/4/1 18:13
|
|||
|
Re: 關於 APP001 的問題....
|
||||
---|---|---|---|---|
版主
|
*** ICD0083: Target not in debug mode, unable to perform operation
這個訊息顯示出 ICD2 無法進行除錯的工作,這是因為你用了Porgrammer Mode 的關係。 到主目錄下選 Debugger --> MPLAB ICD2 就可以了。 1. 用 Programmer Mode 燒IC : ICD2 無法對PIC除錯,但此時 PIC 可以單獨執行(Stand-Alone Mode) 2. 要用ICD2 除錯,一定要用 Debugger Mode 去燒錄 PIC
發表於: 2005/4/1 14:17
|
|||
|
Re: 關於 APP001 的問題....
|
||||
---|---|---|---|---|
初級會員
|
感謝版主大大的說明:
1.如果 DEMO 程式被洗掉,應不會有任何的關係,因為我們會重新裝上 新的專案程式 2.但是對於 "Timer 0 設定錯誤無法讓Timer0計數造成永久迴圈" 旳問題就比較奇怪了, 因為我並沒有修改原始程式,只是依 User's Guide 將該專案檔建立起來,並把相關檔案 加進來,應不致於會發生錯誤吧,還是在環境的設定上有問題? 以下概括的說明設定的環境: ==================================== 選擇 Configure>Configuration Bits Oscillator — EC-OS2 as RA6 • OSC Switch Enable — Disabled • Power Up Timer — Enabled • Brown Out Detect — Disabled • Watchdog Timer — Disabled • CCP2 Mux — RC1 • Low Voltage Programming — Disabled **(註1.) • Background Debug — Enabled (為什麼沒有這個選項設定) • Stack Overflow Reset — Disabled • disable all others setting... **(註1.) 我在 Configure>Configuration Bits 的設定項目中看不到這個選項,不知是否要在其他地方加以設定.. 另外我選擇以 Program->Program 選項運作時在 MPLAB ICD 2 的顯示視窗時則出現以下訊息: ********************************************* Programming Target... ...Erasing Part ...Loading DebugExecutive ...Programming DebugExecutive ...Programming Debug Vector ...Programming RSBUG Verifying... ...Debug Executive ...Debug Vector ...Verify Succeeded Programming Configuration Bits .. Config Memory Verifying configuration memory... ...Verify Succeeded Connecting to debug executive *** ICD0083: Target not in debug mode, unable to perform operation MPLAB ICD 2 Ready ********************************************* 其中的 *** ICD0083: Target not in debug mode, unable to perform operation, 是否是因為 Background Debug 未 Enable 的關係,若是則應該在何處設定呢?還是 Oscillator 的選項是錯誤的.... 附帶說明使用的系統: WinMe OS MPLAB IDE V6.60(公司原版) Demo Board: EVM:APP001 REV.2 20041014 ChipSet: PIC18F452 Communication Type : USB Oscillator : 16000 KSS 8ET 謝謝!!
發表於: 2005/4/1 9:53
|
|||
|
Re: 關於 APP001 的問題....
|
||||
---|---|---|---|---|
版主
|
1. 原先的 Demo 程式被洗掉了
2. Timer 0 設定錯誤無法讓Timer0計數造成永久迴圈,請檢查程式。
發表於: 2005/3/31 18:38
|
|||
|
關於 APP001 的問題....
|
||||
---|---|---|---|---|
初級會員
|
各位先進大家好:
請問為何在 DEMO BOARD (APP001) 上電後,無法在LCD上秀出板子的版本(即無任何畫面,應該會有開機畫面顯示溫度,版本..),並且LED燈亦不會再閃動,但是我在PC 上執行 MPLAB IDE 的範例專案程式 TUT452 卻可以編譯,且 Debugger->Connect 亦 ok(已確定 MPLAB ICD2 已透過 USB 連接至 PC, 且 6pin 連接插座亦連接上 APP001),但是執行的時候會一直在下列程式段空轉 Main ICD0157 btfss INTCON,TMR0IF ;Wait for Timer0 to timeout goto Main 不知為何會如此,麻煩各位給我一些意見或說明,謝謝!!!
發表於: 2005/3/31 18:25
|
|||
|