• slider image 442
  • slider image 483
  • slider image 484
  • slider image 485
  • slider image 486
  • slider image 487
:::


Browsing this Thread:   1 Anonymous Users






Re: 燒錄後怪怪ㄉ!
#9
高級會員
高級會員


查看用戶資訊
版主太謝謝您了...
我嘗試檢查你建議的方法..
果然在電路板的震盪電路部份有個接點沒接好...
因為之前我有重焊接過...
沒注意到沒焊好!!!
再重新焊過...
錯誤的情形改善很多了!!
只剩一點點小問題我再自己查查看...

發表於: 2004/12/30 22:38
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 燒錄後怪怪ㄉ!
#8
版主
版主


查看用戶資訊
要download程式到 ICD2 之前,一定要確定程式已經 Baild All 且確定編譯成功,不然就會得到如下的錯誤:

ICDWarn0015: Program memory has changed since last program operation? Continue with Debug operation?


ICD0083: Target not in debug mode, unable to perform operation
是 ICD2 無法正確執行監督程式,檢查一下震盪的設定或電路吧!

發表於: 2004/12/30 13:39
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 燒錄後怪怪ㄉ!
#7
高級會員
高級會員


查看用戶資訊
版主你好...
我有試過你所說的方法...
果然變成無法執行了!
當我按下"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
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 燒錄後怪怪ㄉ!
#6
版主
版主


查看用戶資訊
建議先用 Debugger Mode 讓程式執行無誤後再用Programmer Mode 燒成 Stand Alone Mode 單機執行。

Programmer Mode 無法除錯,如何確定程式沒錯呢!

發表於: 2004/12/28 9:28
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 燒錄後怪怪ㄉ!
#5
高級會員
高級會員


查看用戶資訊
版主你說的兩種模式我大概了解...
一種是Debugger...
一種是Programmer...
Debugger模式燒錄完...
好像不能將ICD2拔掉...
我所要的是燒錄完後能把ICD2拔掉!
所以我用的是Programmer模式...
這模式我用很久ㄌ...
都沒啥問題!!!

發表於: 2004/12/27 21:50
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 燒錄後怪怪ㄉ!
#4
版主
版主


查看用戶資訊
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
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 燒錄後怪怪ㄉ!
#3
高級會員
高級會員


查看用戶資訊
版主你好...
我的意思是指我使用同一個程式...
之前燒錄,執行都沒問題...
今天重做就不行了!!
版主你說"有問題應該是程式上有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
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 燒錄後怪怪ㄉ!
#2
版主
版主


查看用戶資訊
從 ICD2 的回應文字來看,一切都正常無誤。有問題應該是程式上有bug所在。你的問題我不是看的很懂可否在詳述些。
另外,configuration word 在燒錄時其設定是否正確。

發表於: 2004/12/27 17:00
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


燒錄後怪怪ㄉ!
#1
高級會員
高級會員


查看用戶資訊
請問各位大大...
之前我燒錄第一個程式後...
執行動作都正常...
之後我改燒錄做第二個程式...
現在再回來做第一個程式,仍可燒錄...
但燒錄時出現下面的文字...
執行起來也跟之前做的結果不同...
下面的文字不知是不是問題的關鍵所在???
還有一點...
我改做第二個程式時有使用到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
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... ]

教育訓練中心

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