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

論壇索引


Board index » All Posts




Re: Build Failed ...有人知道這是什麼錯誤嗎..
中級會員
中級會員


版大你好

我已經寄了,感謝你。

發表於: 2005/1/19 16:14
頂部


Re: ICD2调试问题
初級會員
初級會員


如下是开机后,下载时的信息:
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to target
Target Device PIC16F877 found, revision = b4,b5,b6
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready
Programming Target...
...Erasing Part
...Programming Program Memory (0x0 - 0x7FF)
...Loading DebugExecutive
...Programming DebugExecutive
...Programming Debug Vector
...Programming User IDs
Verifying...
...Program Memory
...User ID Memory
...Debug Executive
...Debug Vector
...Verify Succeeded
Programming Configuration Bits
.. Config Memory
Verifying configuration memory...
...Verify Succeeded
Connecting to debug executive
ICD0082: Failed MPLAB ICD 2 operation
ICD0024: Failed to write to Com Port ($7F00
?) (MPLABCOM = 0x6) (USBCOM = 0x1) (0x0)
ICD0082: Failed MPLAB ICD 2 operation
ICD0082: Failed MPLAB ICD 2 operation
ICD0082: Failed MPLAB ICD 2 operation
ICD0082: Failed MPLAB ICD 2 operation
ICD0275: Programming failed.
MPLAB ICD 2 Ready

發表於: 2005/1/19 15:46
頂部


ICD2调试问题
初級會員
初級會員


有2个一样的电路板,其中一块连接后
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to target
Target Device PIC16F877 found, revision = b4,b5,b6
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready

build ALL后等几十秒后就如下了:
===============================
Resetting Target
ICD0082: Failed MPLAB ICD 2 operation
...Failed to reset target
MPLAB ICD 2 Ready
ICD0082: Failed MPLAB ICD 2 operation
ICD0082: Failed MPLAB ICD 2 operation
ICD0082: Failed MPLAB ICD 2 operation
================================
如果不使用build ALL命令,象往常一样
运行时,就会停不下,暂停不好使。。。。。。。。。
看来,连接成功了,但有什么问题呢?
现在排除ICD2和芯片问题,但,也没有什么了,扳子前些天还正常工作呢,只不过把ICD2水晶头座焊在板子上.....
但另一个扳子就没有问题。


前辈帮忙!
斑竹救命!!


發表於: 2005/1/19 15:24
頂部


cc5x台灣代理商
資深會員
資深會員


請問cc5x在台灣,可以跟誰買,謝謝

發表於: 2005/1/19 14:52
頂部


Re: Build Failed ...有人知道這是什麼錯誤嗎..
版主
版主


整個 project zip 後傳到 richard.yang@microchip.com 我幫你看一看哪裡出錯。

發表於: 2005/1/19 14:00
頂部


Re: PIC程式語法 新手疑惑?
版主
版主


http://www.microchip.com.tw/material.htm

下載MPASM &MPLINK講義看看就知道了。

發表於: 2005/1/19 13:54
頂部


Re: 请问间接寻址(FSR)功能在PICC中怎么实现??
版主
版主


一般而言我們是不會去做這種清除動作的,因為你會將其它的變量的初始值清掉,這樣程式就有可能會執行錯誤。

如果要要清除也是可以的,但你需將一些不能被改變的變量放在BANK1-3裡。

unsigned char bank1 i; // put i into the BANK1
bank0 unsigned char *bank1 ramptr; //在bank1宣告一個指向bank0的指標

ramptr=0x20; //設定RAM的起始位址

while(ramptr<0x80)
{ *ramptr=0; ramptr++; }

發表於: 2005/1/19 13:50
頂部


Re: PIC程式語法 新手疑惑?
初級會員
初級會員


簡單的來說:你的label 後面沒有打上冒號的話,你就一定要接著打上指令,但是如果有冒號的話,就可以空著。因為程式在Compiler的時候不會知道那是什麼,所以藉由一個冒號去區分他是標記或是指令!
還有沒記錯的話......冒號後可以接指令也可以不接指令
;
;
有關旗號的影影你可以看DATA SHEET中的集令集,他都有寫在那個指令會影響什麼旗號..

發表於: 2005/1/19 13:28
頂部


Re: PIC程式語法 新手疑惑?
初級會員
初級會員


謝謝板主的回應

不過~~還是有些許不懂耶
你說的label三種方式
那三種所傳達的意義都是一樣嗎
隨我高興 要用哪一種就用哪一種
是這樣嗎??

另外
z旗號 不是要經運算後是否為0才有影響嗎?
我只是移動資料而已
例如將0xff移動到某暫存器這樣會影響z旗標??
這點不是很清楚= ='''
能否說明 qq

發表於: 2005/1/19 12:03
頂部


Re: 關於燒錄的問題
版主
版主


當program target device之後,可以不用透過icd2就可以動作嗎?

Ans: 在 MPLAB IDE 底下用 Programmer mode(一般在除錯時是用Debugger mode)就可以燒成獨立元件而執行

program target device就是把程式燒到pic裡面嗎?

Ans: 是的,即使除錯也要將程式燒到IC裡。

還是要再買燒錄的硬體裝置才可以燒錄,如果這樣,當燒錄好,接上pic的電源,和震盪器之後,還有什麼要接才可以正常動作呢?

Ans: ICD2 本身就是除錯器+燒錄器的功能。
燒好了還要接你的應用電路。

至於參考資料可到右邊的教育訓練下載一些workshop的資料或來上課。

發表於: 2005/1/19 12:02
頂部



« 1 ... 7267 7268 7269 (7270) 7271 7272 7273 ... 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... ]

教育訓練中心

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