Re: 關於PIC12F683的Debug使用問題
|
||||
---|---|---|---|---|
資深會員
|
電路是自己做的嗎? 電路出問題的機會比較大,訊息的意思是燒錄後資料比對失敗,表示在燒錄時因電路不穩或雜訊...等問題造成燒錄資料錯誤.
範例程式:
org 0h
發表於: 2009/7/31 8:54
|
|||
|
Re: 關於PIC12F683的Debug使用問題
|
||||
---|---|---|---|---|
新會員
|
參照:
感謝兩位的回答 上次檢查後送修 回來後 這次按下燒錄後變成出現 Verify failed (MemType = Program, Address = 0x1, Expected Val = 0x3FFF, Val Read = 0x2851) 在Program Mem的位址0x1中沒有寫入任何指令 按下Build All後,在View->Program Memory中 位址0x1的資料為0x3FFF,但是按下燒錄後讀取出來卻變為0x2851...越用頭越痛了 板子的電源由電源供應器提供(5V的電壓) 不知道是否為程式的問題,是否有範例程式可以測試呢?
發表於: 2009/7/30 18:20
|
|||
|
Re: 關於PIC12F683的Debug使用問題
|
||||
---|---|---|---|---|
版主
|
"Verify failed (MemType = DebugVector, Address = 0x2004, Expected Val = 0x2F00, Val Read = 0x2B00)"
實際要燒錄的值為 0x2F00 但燒錄後的值卻為 0x2B00,以 Flash "1" 可以被燒成"0"的特性上來看,有可能在 Erase All 的動作時就沒又確實將 F683 清成 Blanking。 檢查一下 Target Board 的電源是否 5V。 單獨作一下Blanking 的動作後檢查F683 是否可以被情為空白,如不行揪將此Header 送修。
發表於: 2009/7/16 10:12
|
|||
|
Re: 關於PIC12F683的Debug使用問題
|
||||
---|---|---|---|---|
資深會員
|
Setting Vdd source to target
必須接實驗板,實驗板必須有電源... [註]沒用過12F683 Header Board 瞎猜的 >"<
發表於: 2009/7/16 9:03
|
|||
|
關於PIC12F683的Debug使用問題
|
||||
---|---|---|---|---|
新會員
|
請問一下
關於使用PIC12F683進入Debug的問題 目前已購入Header Board(AC162058) 並接上ICD2,當按下Connect會出現下列訊息 確定有找到PIC12F683這個Device =========================================================== Connecting to MPLAB ICD 2 ... Connected Setting Vdd source to target Target Device PIC12F683 found, revision = Rev 0x0 ...Reading ICD Product ID Running ICD Self Test ...Passed MPLAB ICD 2 Ready =========================================================== 接著並將程式完成Build後,未出現任何錯誤 然後按下Program後,會出現下列訊息 ------------------------------------------------------------------------------------------------------------------ Programming Target... ...Validating configuration fields ...Erasing Part ...Programming Program Memory (0x0 - 0x7) ...Loading DebugExecutive ...Programming DebugExecutive ...Programming Debug Vector Verifying... ...Program Memory ...Debug Executive ...Debug Vector ICD0161: Verify failed (MemType = DebugVector, Address = 0x2004, Expected Val = 0x2F00, Val Read = 0x2B00) ICD0275: Programming failed. MPLAB ICD 2 Ready ------------------------------------------------------------------------------------------------------------------ 此時程式使用空間不到5 Byte Watch Dog Off Code Protect Off MAPLAB 版本7.60 請問要怎麼樣才能使用呢?
發表於: 2009/7/15 18:40
|
|||
|