一乐电子

一乐电子百科

 找回密码
 请使用微信账号登录和注册会员

QQ登录

只需一步,快速开始

快捷登录

手机号码,快捷登录

搜索
楼主: fat
收起左侧

[其他综合] 请对ICD2有经验的兄弟来指点下

  [复制链接]
发表于 2010-3-16 20:40 | 显示全部楼层
为了哪个MEGA128,想从JTAG口连上去,到OURAVR找了个JTAG的电路,做的板子,然后就是连接失败,以为做的不可靠,后来买了个现成的,还是连不上,厚着脸皮问卖家,卖家给了一堆图片教程,才发现,程序保的是连接目标板失败。不知道您的这个是否类似。
发表于 2010-3-16 20:42 | 显示全部楼层
这个老要下载OS是否是要给目标板下载。
发表于 2010-3-16 21:53 | 显示全部楼层
下面是ICD2不连目标板的情况:

Auto-connect not enabled - Not connecting (Try enabling auto-connect on the ICD2 settings pages.)
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to target
ICDWarn0020: Invalid target device id (expected=0x30, read=0x0)
发表于 2010-3-16 22:03 | 显示全部楼层
设定不同的目标芯片时会下载OS,没有接目标板,如下:

ICDWarn0030: MPLAB ICD2 is about to download a new operating system.  If MPLAB IDE is just starting, it will appear to "hang" at the splash screen.  Please be patient.  MPLAB IDE will finish it's initialization after the OS is downloaded.  (Note:  You may wish to select to ignore this warning in the future.)
Downloading Operating System
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to target
ICDWarn0020: Invalid target device id (expected=0x121, read=0x0)
...Reading ICD Product ID
Running ICD Self Test
...Passed
...Download Operating System Succeeded
Setting Vdd source to target
ICDWarn0020: Invalid target device id (expected=0x121, read=0x0)
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 ready for next operation
发表于 2010-3-16 22:09 | 显示全部楼层
本帖最后由 phone 于 2010-3-16 22:11 编辑

下面这个是接上了目标板并有下载操作系统的情况:

Connecting to MPLAB ICD 2
...Connected
ICDWarn0030: MPLAB ICD2 is about to download a new operating system.  If MPLAB IDE is just starting, it will appear to "hang" at the splash screen.  Please be patient.  MPLAB IDE will finish it's initialization after the OS is downloaded.  (Note:  You may wish to select to ignore this warning in the future.)
Downloading Operating System
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to target
Target Device PIC16F876A found, revision = Rev 0x8
...Reading ICD Product ID
Running ICD Self Test
...Passed
...Download Operating System Succeeded
Setting Vdd source to target
Target Device PIC16F876A found, revision = Rev 0x8
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 ready for next operation
发表于 2010-3-16 22:58 | 显示全部楼层
为了哪个MEGA128,想从JTAG口连上去,到OURAVR找了个JTAG的电路,做的板子,然后就是连接失败,以为做的不可 ...
fujiachun 发表于 2010-3-16 20:40 https://www.yleee.com.cn/images/common/back.gif



    嘻嘻,老FU看来有俩JTAG了,等什么开始玩那双核板时借一个使使,那个有JTAG口,还没玩过JTAG的说.
发表于 2010-3-16 22:58 | 显示全部楼层
这个老要下载OS是否是要给目标板下载。
fujiachun 发表于 2010-3-16 20:42 https://www.yleee.com.cn/images/common/back.gif



    不是目标板,而是ICD2上的876.
 楼主| 发表于 2010-3-16 23:31 | 显示全部楼层
谢谢phone兄,终于知道正版的是什么提示了,非常感谢。

另:我按冯老师的建议把MPLAB8.46卸载掉,重新下载安装了MPLAB7.10,结果还是一样,download OS时failed

MPLAB7.1.JPG
发表于 2010-3-17 07:27 | 显示全部楼层
那看来只能仔细的检查一下电路了.印板是照着作的,对照原始原理图仔细检查一下连接,以及元件的型号规格以及安装了.
发表于 2010-3-17 10:04 | 显示全部楼层
楼主问题解决了没有,请楼主再看一下所使用的芯片是否为pic16f876,如果楼主使用的是pic16f876A那肯定会不行的,因为ICD2在下载操作系统时是使用IAP方式刷新的,pic16f876和pic16f876A的flash编程方式是不同的,pic16f876支持单字节刷写,而pic16f876A只支持块刷写每次刷写4个字节,如果用pic16f876的刷写方式去刷写pic16f876A必然会导至后刷写的把前面已刷过的内容冲掉,这样就会使刷写失败。

本版积分规则

QQ|一淘宝店|手机版|商店|电子DIY套件|一乐电子 ( 粤ICP备09076165号 ) 公安备案粤公网安备 44522102000183号

GMT+8, 2024-6-17 21:52 , Processed in 0.052443 second(s), 32 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表