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

論壇索引


Board index » All Posts




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


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

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

發表於: 2004/12/28 9:28
頂部


c語言內使用組合語言的問題?
初級會員
初級會員


我使用hitech-c,在c中宣告的位元變數是否可以與組合共用:
bit abc;
.
.
.
#asm
bsf _abc
.
.
.
#endasm

這樣compiler時會出現錯誤訊息。~~還是不是這樣用??

發表於: 2004/12/28 8:19
頂部


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: 2005年第一季的教育訓練課程已經排定,歡迎參加
資深會員
資深會員


台中可不可以換場地阿

雖然中午的火鍋很好吃
可是設備不足 地下室空氣又悶
上起課來很..................那個

發表於: 2004/12/27 17:19
頂部


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


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

發表於: 2004/12/27 17:00
頂部


Re: MPLAB與win xp sp2之相容問題~~~
初級會員
初級會員


我有在winxp sp2 作業系統上安裝MPLAB7,可以正常燒錄
至於其他的問題,還在嘗試中。

發表於: 2004/12/27 16:56
頂部


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


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


Re: 2005年第一季的教育訓練課程已經排定,歡迎參加
高級會員
高級會員


支持...USB 2.0 課程

另外..高雄的Workshop 可不可以開CAN 的課程阿 ?

發表於: 2004/12/27 15:41
頂部



« 1 ... 7295 7296 7297 (7298) 7299 7300 7301 ... 7522 »



:::

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... ]

教育訓練中心

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