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

論壇索引


Board index » All Posts




Re: MPLAB GP0 debug
新會員
新會員


我是用這種程式simulation方法:
舉個例子原來程式是:

movlw GPIO
btfsc GPIO, 0x01
goto t1
goto t2

可以改成
movlw GPIO
movwf temp1 ;這樣就可以手動temp1的值.
btfsc temp1, 0x01
goto t1
goto t2


發表於: 2005/3/21 15:17
頂部


Re: APP001 REV2用ICD2燒錄程式後如何獨立執行,不用ICD2?
初級會員
初級會員


找到問題了!
原來JICD1~3不須調整,還是放在1&2 (MCU DEBUGE)位置
MPLAB設定Programmer(Programmer-->Select Programmer-->MPLAB ICD2)
說明書也沒寫清楚,害我忙了半天!

發表於: 2005/3/21 14:59
頂部


Re: APP001 REV2用ICD2燒錄程式後如何獨立執行,不用ICD2?
初級會員
初級會員


以下是我在program mode下要燒陸產生的錯誤.
程式是WAP002的範例程式ANS6中的WAP002.mcp
板子是app001 ,Jumper JICD1~3也都放在2&3 (PROGRAMER),MPLAB 也設定在PROGRAMER

build all都ok,program時卻不成功,請問是什麼原因?

Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to target
ICDWarn0020: Invalid target device id (expected=0x21, read=0x0)
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to target
ICDWarn0020: Invalid target device id (expected=0x21, read=0x0)
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready
Erasing Target Device...
ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation
...Erase Succeeded
MPLAB ICD 2 Ready
Programming Target...
ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation
ICDWarn0035: Debug mode must be disabled. Disable debug mode or cancel?
...Validating configuration fields
...Erasing Part
...Programming Program Memory (0x0 - 0x1C6F)
...Programming User IDs
Verifying...
ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation
...Program Memory
ICD0161: Verify failed (MemType = Program, Address = 0x0, Expected Val = 0xEFBF, Val Read = 0x0)
ICD0275: Programming failed.
MPLAB ICD 2 Ready

發表於: 2005/3/21 14:15
頂部


Re: MPLAB GP0 debug
資深會員
資深會員


參照:

diroex 寫道:
我是在mplab7底下使用ccs compiler pic12c508
.....
所以我去看看CCS本身的DEBUG有沒好簡易點
結果,CCS說我的DEBUG沒辦法連結ICD
難道CCS必需靠外部的硬體才可以DEBUG?

不知道什麼是ICD


ICD = In Circuit Debugger

CCS 的 debug 功能要搭配 CCS 的硬體 ICD 才行喔
http://www.ccsinfo.com/icds.shtml
CCS 的 ICD 比 Microchip 的 ICD2 便宜多了,
但是好像沒有 stimulus 的功能,請仔細看看網站的說明

喔,如果你有舊的 ICD1 ... CCS 可以讓他升級喔 ...
If you own an MPLAB® ICD1 you can load it with CCS-ICD firmware to get PIC18 debugging and ICSP functionality, but this functionality is only provided through CCS's software and not Microchip's software. However this is a great way to upgrade your existing ICD1's for use with PIC18s.

發表於: 2005/3/21 10:37
頂部


Re: APP001 REV2用ICD2燒錄程式後如何獨立執行,不用ICD2?
版主
版主


ICD2 燒錄程式有兩種模式 :
1. Dubugger 模式,這時燒錄出來的 PIC 只能在除錯模式下執行,無法單獨跑程式。
2. Programmer 模式下,這時用 ICD2 燒好的程式只要將 ICD2 的接頭拔下, PIC 就可以自行跑程式。

以上方式適用 MPLAB IDE v6.50 以上的版本,如是舊版的 IDE 就必須在 Configuretion 的設定下關閉 Background Dubugger Mode 才可以單獨執行程式。

發表於: 2005/3/21 9:35
頂部


Re: APP001 REV2用ICD2燒錄程式後如何獨立執行,不用ICD2?
資深會員
資深會員


選擇Program是下載至pic
選擇Debuger是下載至ICD2

發表於: 2005/3/21 9:03
頂部


Re: MPLAB GP0 debug
中級會員
中級會員


我是在mplab7底下使用ccs compiler pic12c508
我在 Stimulus Controller設定好I/O一些腳的輸入PLUSE HIGH 時間,及一些按鍵INPUT設定
但程式在RUN時,這些PLUSE並沒有改變I/O
是不是我也得在SCL設定?
我只知道我有一個50Hz AC信號,2 INPUT/1 OUTPUT要設定
目前SCL我還一頭霧水
不知道要設定那些東西~"~
只好再找時間研究.....

所以我去看看CCS本身的DEBUG有沒好簡易點
結果,CCS說我的DEBUG沒辦法連結ICD
難道CCS必需靠外部的硬體才可以DEBUG?

不知道什麼是ICD
我再查一下DATA,原來12C508並沒有ICD DEBUG
?口?
是不是我只是沒把SCL設定好?

發表於: 2005/3/21 4:27
頂部


Re: APP001 REV2用ICD2燒錄程式後如何獨立執行,不用ICD2?
高級會員
高級會員


應該是要選擇Program這個選項
而不是選擇Debuger這個選項
檢查看看

發表於: 2005/3/20 17:12
人生最長久的擁有是珍惜 但是大都在失去後才發現
頂部


APP001 REV2用ICD2燒錄程式後如何獨立執行,不用ICD2?
初級會員
初級會員


如果將程式用ICD2 DownLOAD到APP001的CPU上
拔掉ICD2的接頭,APP001應該要調那一個JUMPER或接線?
可以讓APP001獨立執行,不用ICD2來啟動?
其他如APP005及APP009又該如何調整?
謝謝!

發表於: 2005/3/20 15:09
頂部


Re: C18和PICC18誰比較好用呢?
資深會員
資深會員


參照:

chienchun 寫道:
人外有人,天外有天囉....
只有努力不懈,勤能補拙囉...

PIC_SERVER的板子...買得到嗎?
還是只有貴校的實驗課才看得到呢?
謝謝!


To chienchun:

由於沒有專人負責技術支援,因此目前並沒有對外銷售,
主要是用在支援研究計劃以及一些產學合作案的需求。

Microchip 的 PICDEM.net http://ww1.microchip.com/downloads/en/DeviceDoc/51240b.pdf
用的是 AN833 這免費的 TCP/IP stack,
http://forum.microchip.com/tt.asp?forumid=173 (PICDEM.net 原廠討論區)

如果您不喜歡 AN833 ,我會建議您先試試下面這幾種,技術支援較完整的單晶片 TCP/IP 產品,他們也都提供完整的原始碼:

http://www.iosoft.co.uk (用 PIC 單晶片)
http://www.edtp.com (支援 PIC 和 ATMEL)
http://www.rabbitsemiconductor.com/products/rcm3700/ (用 Rabit 3000)
http://sinpro.myweb.hinet.net/products10.htm (rcm3700 的台灣代理)
http://www.sinp.com.tw
http://www.dainau.com/phpBB2/viewforum.php?f=62
http://www.wiznet.co.kr/wiznet/product_assp.html (W3100A 韓國原廠)
http://www.jlink.com.tw/c_products_wiznet.htm (W3100A 的台灣代理)
http://www.maxim-ic.com/TINIplatform.cfm (超可愛的東東)
http://www.laogu.com/MY/rtl8019.htm (大陸貨)
http://www.laogu.com/MY/rtl8029.htm (大陸貨)

看完這些資料之後,您若是還想玩 pic_SERVER,願意花美金425大洋去買CCS的C-compiler,願意幫我們負責對外的技術支援,那 ... 就傳訊給我吧,謝謝啦。

Best wishes


離題越來越遠啦,本來不是在談 C18和PICC18的嗎

發表於: 2005/3/20 14:43
頂部



« 1 ... 7185 7186 7187 (7188) 7189 7190 7191 ... 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... ]

教育訓練中心

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