Re: 燒錄後怪怪ㄉ!
|
||||
---|---|---|---|---|
高級會員
|
版主太謝謝您了...
我嘗試檢查你建議的方法.. 果然在電路板的震盪電路部份有個接點沒接好... 因為之前我有重焊接過... 沒注意到沒焊好!!! 再重新焊過... 錯誤的情形改善很多了!! 只剩一點點小問題我再自己查查看...
發表於: 2004/12/30 22:38
|
|||
|
Re: 燒錄後怪怪ㄉ!
|
||||
---|---|---|---|---|
高級會員
|
版主你好...
我有試過你所說的方法... 果然變成無法執行了! 當我按下"Step Into"單歨執行後出現一個對話框... ICDWarn0015: Program memory has changed since last program operation?Continue with Debug operation? 選擇ok!出現下面文字... Auto-connect not enabled - Not connecting (Try enabling auto-connect on the ICD2 settings pages.) MPLAB ICD 2 Ready Connecting to MPLAB ICD 2 ...Connected Setting Vdd source to target Target Device PIC18F252 found, revision = Rev 0x5 ...Reading ICD Product ID Running ICD Self Test ...Passed MPLAB ICD 2 Ready Resetting Target MPLAB ICD 2 Ready ICDWarn0015: Program memory has changed since last program operation? Continue with Debug operation? Stepping Target ICD0083: Target not in debug mode, unable to perform operation MPLAB ICD 2 Ready 之後每按一次"Step Into"都重複出現... ICD0083: Target not in debug mode, unable to perform operation MPLAB ICD 2 Ready Stepping Target 請問這是代表哪邊出現錯誤... 努力尋找中!!!
發表於: 2004/12/29 11:04
|
|||
|
Re: 燒錄後怪怪ㄉ!
|
||||
---|---|---|---|---|
版主
|
建議先用 Debugger Mode 讓程式執行無誤後再用Programmer Mode 燒成 Stand Alone Mode 單機執行。
Programmer Mode 無法除錯,如何確定程式沒錯呢!
發表於: 2004/12/28 9:28
|
|||
|
Re: 燒錄後怪怪ㄉ!
|
||||
---|---|---|---|---|
高級會員
|
版主你說的兩種模式我大概了解...
一種是Debugger... 一種是Programmer... Debugger模式燒錄完... 好像不能將ICD2拔掉... 我所要的是燒錄完後能把ICD2拔掉! 所以我用的是Programmer模式... 這模式我用很久ㄌ... 都沒啥問題!!!
發表於: 2004/12/27 21:50
|
|||
|
Re: 燒錄後怪怪ㄉ!
|
||||
---|---|---|---|---|
版主
|
ICD2 有兩種燒錄方式; 看起來你是用到 Programer 的選項燒成 Stand Alone Mode, 切回Debugger Mode再燒錄吧!
你應該會得到下列的 Loading DebugExecutive 的項目的。 MPLAB ICD 2 Ready Programming Target... ...Erasing Part ...Programming Programming Executive ...Verifying Programming Executive ...Programming Program Memory (0x0 - 0x1FF) Verifying... ...Program Memory ...Verify Succeeded ...Loading DebugExecutive ...Programming DebugExecutive ...Debug Executive ...Programming Debug Vector ...Debug Vector ...Programming Configuration Bits .. Config Memory Verifying configuration memory... Connecting to debug executive ...Programming succeeded MPLAB ICD 2 Ready
發表於: 2004/12/27 17:58
|
|||
|
Re: 燒錄後怪怪ㄉ!
|
||||
---|---|---|---|---|
高級會員
|
版主你好...
我的意思是指我使用同一個程式... 之前燒錄,執行都沒問題... 今天重做就不行了!! 版主你說"有問題應該是程式上有bug所在"?? 雖然我不是很懂這句話的意思... 但我是使用同一個程式... 程式上應該不會有問題(我沒改過)! 只是現在在燒錄時... 多了這些文字... 我記得之前燒錄好像沒這些文字出現.. 所以我對這些文字感到有些疑惑?! 既然版主說這些文字沒什ㄇ問題... 那問題可能是出在別的地方吧!! 努力尋找中.... 另外有關Configure Bits... 我不知道版主想知道哪些設定.. 我列幾個比較重要的! Oscillator...HS Osc. Switch Enable....Disabled Power Up Timer....Disabled Brown Out Detect....Disabled Watchdog Postscaler....Disabled-Controlled by SWDTEN bit Low Voltage Program....Disabled
發表於: 2004/12/27 17:34
|
|||
|
Re: 燒錄後怪怪ㄉ!
|
||||
---|---|---|---|---|
版主
|
從 ICD2 的回應文字來看,一切都正常無誤。有問題應該是程式上有bug所在。你的問題我不是看的很懂可否在詳述些。
另外,configuration word 在燒錄時其設定是否正確。
發表於: 2004/12/27 17:00
|
|||
|
燒錄後怪怪ㄉ!
|
||||
---|---|---|---|---|
高級會員
|
請問各位大大...
之前我燒錄第一個程式後... 執行動作都正常... 之後我改燒錄做第二個程式... 現在再回來做第一個程式,仍可燒錄... 但燒錄時出現下面的文字... 執行起來也跟之前做的結果不同... 下面的文字不知是不是問題的關鍵所在??? 還有一點... 我改做第二個程式時有使用到clrf PORTB,clrf PORTC.. 我都令它們為輸出!! 是否有關~~~ 麻煩幫小弟解答迷惑!!謝謝... Programming Target... ...Erasing Part ...Programming Program Memory (0x0 - 0x4F) Verifying... ...Program Memory ...Verify Succeeded Programming Configuration Bits .. Config Memory Verifying configuration memory... ...Verify Succeeded ...Programming succeeded MPLAB ICD 2 Ready
發表於: 2004/12/27 16:33
|
|||
|