搜索
bottom↓
回复: 45

解决 PICKIT3 无法连接错误

[复制链接]

出0入0汤圆

发表于 2013-1-22 23:34:20 | 显示全部楼层 |阅读模式
我在淘宝上买了一个PCB上带淘宝店名的原装进口PICKIT3。
今天使用就发现在MPLAB IDE 里无法连接。
用PICkit 3 Scripting软件可以正常下载,连接PIC12F508,说明其实没问题的。

店主声称发货前可以工作,我又有不舍得掏邮费,就想自己修下。
店主说要我刷新下OS,我试了,在MPLAB IDE里还是不行。
后来问了MC的官方客服,说要在PICkit 3 Scripting里返回MPLAB MODE。
结果还是没效果。

想想刷一下论坛里的固件看看吧。
就拿PICKIT2刷了PIC24。这里要说明,必须把和PIC24的MCLR脚的电阻拆掉,然后在VCC和MCLR脚间串一个上拉电容。刷新962K的那个固件。

然后还原,连接。这下可以正常在MPLAB IDE里识别到PICKIT3了。
但是还是没办法读取设备,SETTING里都是灰色的。

我就试了下PICkit 3 Scripting看看,提示需要下载OS,确认下载刷新OS。测试PIC12F508,正常。
切换到 MPLAB MODE ,进入 MPLAB IDE,提示要更新固件,然后刷新一堆东西。接着提示找到PIC12F508。测试可刷新擦除。

一切都正常了。

这是传说中的掉固件么?

阿莫论坛20周年了!感谢大家的支持与爱护!!

一只鸟敢站在脆弱的枝条上歇脚,它依仗的不是枝条不会断,而是自己有翅膀,会飞。

出0入0汤圆

发表于 2013-1-24 04:29:50 | 显示全部楼层
亲身体验的经验,顶一下!

总觉得PICkit3的电路设计过于啰嗦,有画蛇添足的感觉。过两天有机会弄个简化版的。

出0入0汤圆

发表于 2013-3-22 21:18:41 | 显示全部楼层
PICkit 3 Scripting这个脚本有什么用意呢?
看了下这个文档:Readme for the PICkit(TM) 3 Programmer Application with scripting support

内容如下:
Readme for the PICkit(TM) 3 Programmer Application with scripting support

Beta Release: v3.00beta
Device File:  v1.62.14

Updated: 19 April 2012

-------------------------------------------------------------------------------
Table of Contents
-------------------------------------------------------------------------------
1. Introduction
2. Installing with the PICkit 3 Programmer Application
3. Working with the PICkit 3 Programmer Application
4. Building the Firmware
5. Known Limitations
6. Supported Devices
-------------------------------------------------------------------------------
1. Introduction
-------------------------------------------------------------------------------
This release of software/firmware allows the PICkit 3 to be compatible with the
scripting framework that was originally developed for the PICkit 2. This allows
sharing device files and application support between PICkit 2 and PICkit 3.

The software adds other features that were only available on the PICkit 2 such
as the logic analyzer, logic output, and auto detection of devices. Future
support is also planned for UART and other features not available in this Beta
release.

Since PICkit 3 is supported under MPLAB(R) IDE with non-scripting firmware,
special firmware is needed to understand PICkit 2 scripts. A bootloader is used
to switch seamlessly between both operating systems.

-------------------------------------------------------------------------------
2. Installing with the PICkit 3 Programmer Application
-------------------------------------------------------------------------------
The PICkit 3 Programmer Application with scripting support is a modified version
of the PICkit 2 programmer application that was specially modified to work with
PICkit 3 scripting firmware.

To install the Application, unzip the contents of the zip file:
<PICkit3_scripting_app_v03.00beta.zip> into C:\Program Files\Microchip

The .NET framework version 4.00 is required. You can download it at:

http://www.microsoft.com/download/en/details.aspx?id=17718 (standalone)

or

http://www.microsoft.com/download/en/details.aspx?id=17851 (web version)

-------------------------------------------------------------------------------
3. Working with the PICkit 3 Programmer Application
-------------------------------------------------------------------------------
The GUI will recognize MPLAB IDE compatible firmware when started with a
PICkit 3 connected that is loaded with MPLAB IDE compatible firmware.
A message indicating that an OS update is needed will be displayed.
To change to PICkit 3 Programmer Application firmware, choose
<Tools/Download PICkit Operating System> and then point to the path where an OS
file and a bootloader file reside. This is typically in the same place where
the PICkit 3 scripting executable resides.

An OS file name format is <PK3OSxxxxxx.hex> where xxxxxx is the version number.
The bootloader hex file name format is <PK3BLxxxxxx.hex> where xxxxxx is the
version number. Once an OS is downloaded, the GUI will try to reestablish
communication.

Please be aware that this OS is not compatible with MPLAB IDE, so to be able to
talk to MPLAB IDE again, <Tools/Revert to MPLAB mode> will need to be selected.
This reverts the PICkit 3 to bootloader mode so that MPLAB IDE can update the
PICkit 3 with MPLAB IDE compatible firmware.

If an external programmer is used to program the firmware image, the bootloader
should also be programmed into the device to allow updating of firmware or
restoring MPLAB compatibility. A complete firmware image <PK3IMGxxxxxx.hex>
is bundled with firmware source and the application. It includes startup code,
the bootloader, and the main OS.

If the GUI is used, it will automatically program the bootloader to flash memory
and will remain resident until you switch to MPLAB IDE mode and update
the firmware.

-------------------------------------------------------------------------------
4. Building the Firmware
-------------------------------------------------------------------------------

Below are the steps to build a firmware image which can be used with the GUI.

===========================================================================
NOTE:        These steps are only necessary if the firmware is modified by the
        user. A pre-built firmware image <PK3IMGxxxxxx.hex> is bundled with
                this release for use with an externam programmer, and a pre-built
                OS image <PK3OSxxxxxx.hex> is bundled for use with the GUI.
                xxxxxx is the version number.
===========================================================================

===========================================================================
NOTE:   An MPLAB C30 compiler later than 3.30 is recommended.
===========================================================================

------------------------------------
Building a complete firmware image:
------------------------------------

These steps will produce a hex file that can be used for programming the
PICkit 3 with an external programmer or for restoring the scripting firmware if
the image gets corrupted.

1- Unzip the firmware package file PICkit3_scripting_fw_beta.zip
2- Open MPLAB IDE.
3- Go to <Configure/Settings/Projects> and make sure that "Use one-to-one
   project-workspace model is unchecked.
4- Open the workspace: <PICkit3.mcw> from the unzipped directory. You should see
   two projects loaded <branch.mcp> and <PICkit3OS.mcp>
5- Go to <Configure/Setting/Program Loading> and make sure "Clear program memory
   upon loading a program" is unchecked. This should be already saved in the
   workspace. It allows the output of both projects to reside in MPLAB memory
   side by side when building.
6- Build <branch.mcp> and <PICkit3OS.mcp> by right clicking on each project name
   in the project window and choosing "Build All".
7- After building, click on File/Import and point to the unzipped firmware
   directory. Select the file PK3BLxxxxxx.hex.
8- It is recommended verifying that the proper sections are loaded into memory,
   by opening View/Program Memory and checking that the different sections of
   code are loaded. There should be some data loaded (a goto instruction) at
   the Reset address 0. The OS is loaded starting at 0x800 and the bootloader
   at 0xF000. CTRL-G can be used to go jump to each of those addresses and
   verify that some data is loaded there.
9- Finally do a File/Export to export an image. Make sure Program Memory from
   0 to 0x2abf6 is selected as well as Configuration bits. This exported image
   can be used for programming with an external programmer.

------------------------------------
Building the OS only:
------------------------------------

These steps will produce an OS file that is suitable for downloading into the
PICkit 3 using the GUI.

1- Repeat steps <1-6>. Keep in mind that building <branch.mcp> is not necessary
   for this step.
2- A hex file PICkit3OS.hex will be produced under the following path:
   <firmware unzip directory>\PICkit3OS\obj
3- Copy this file into the same place where the GUI executable and device file
   reside.

-------------------------------------------------------------------------------
5. Known Limitations
-------------------------------------------------------------------------------
- This beta release does not include UART support. This will be added in a future
  release.
- Programmer-To-Go is not supported under this software. To use this feature,
  please use the MPLAB IDE.
- This beta release does not support automatic generation of an OSCCAL value.
- Aside from this README file, documentation for this release is identical to
  the documentation bundled with the PICkit 2 GUI. Most of that documentation
  applies to this release.

-------------------------------------------------------------------------------
6. Device Support
-------------------------------------------------------------------------------
This release contains device file 1.62.14. Please refer to the PICkit 2 README
file for a list of supported devices.

===========================================================================
NOTE:   The following devices are not supported yet in the PICkit 3 version:

                KEELOQ HCS devices
                MCP250xx CAN devices
                Serial EEPROM Devices
               
===========================================================================

-------------------------------------------------------------------------------
么怎么看明白???

出0入0汤圆

 楼主| 发表于 2013-3-22 23:46:11 | 显示全部楼层
blue007 发表于 2013-3-22 21:18
PICkit 3 Scripting这个脚本有什么用意呢?
看了下这个文档:Readme for the PICkit(TM) 3 Programmer Appli ...

PICkit 3 Scripting 这货就是个半成品,然后等别人来看代码后完善!

出0入0汤圆

发表于 2013-5-4 21:18:30 | 显示全部楼层
Self test completed
RS Version.......... 01.08.20
AP Version.......... 01.08.20
Downloading RS...
RS download complete
Downloading AP...

我的PICkit3在MPLABIDE下更新固件到Downloading AP...这一步就不往下进行了,一个进度条一直在那里从左往右延伸,一直也更新不完,怎么回事啊?

出0入0汤圆

 楼主| 发表于 2013-5-4 22:00:29 | 显示全部楼层
csliu911 发表于 2013-5-4 21:18
Self test completed
RS Version.......... 01.08.20
AP Version.......... 01.08.20

先下载PICkit 3 Scripting 切换一下,然后用MPLAB IDE更新更新固件就可以了。

PICkit 3 detected
Connecting to PICkit 3...
Running self test...
Self test completed
Firmware Suite Version...... 01.28.40
Firmware type......................PIC32MX
Downloading RS...
RS download complete
Downloading AP...
AP download complete
Running self test...
Self test completed
Firmware Suite Version...... 01.28.40
Firmware type......................PIC32MX
PICkit 3 Connected.

出0入0汤圆

发表于 2013-5-5 21:08:28 | 显示全部楼层
90999 发表于 2013-5-4 22:00
先下载PICkit 3 Scripting 切换一下,然后用MPLAB IDE更新更新固件就可以了。

PICkit 3 detected

90999你好,我也是在PICkit3下切换了,连接到MPLAB IDE的提示和你发的一样,但是在Downloading AP...这一步就不往下进行了,不知道你的kit3进行到这一步用了多长时间完成的?谢谢

出0入0汤圆

 楼主| 发表于 2013-5-5 21:13:57 | 显示全部楼层
csliu911 发表于 2013-5-5 21:08
90999你好,我也是在PICkit3下切换了,连接到MPLAB IDE的提示和你发的一样,但是在Downloading AP...这一 ...

2秒

先切换到独立模式,然后会提示下载新OS,估计也就一下下。然后你再切换回MPLAB模式。

打开MPLAB,MPLAB会提示你更新固件,一下就可以了。

出0入0汤圆

发表于 2013-5-6 09:43:50 | 显示全部楼层
什么独立模式,我的kit3在MPLAB下更新到Downloading AP...这一步后,等待一段时间一直不往下进行,我就把MPLAB关了,然后运行PICkit3 Scripting时提示需要更新系统,我也能更新。进行了这些操作后还要再怎么操作呢?
谢谢,MPLAB还有版本要求么,我用的是8.84.

出0入0汤圆

 楼主| 发表于 2013-5-6 10:43:08 | 显示全部楼层
我是8.89 ,PICkit3 Scripting 提示更新系统,然后更新完了你在菜单下找到 “返回MPLAB模式” ,然后回MPLAB下更新固件

出0入0汤圆

发表于 2013-12-23 18:30:22 | 显示全部楼层
按照你的方法,我的原装PICKIT3终于好了,太感谢了.我用了很多的方法都没有成功,这个方法成功了,谢谢.

出0入0汤圆

发表于 2014-1-17 21:40:19 | 显示全部楼层
能告诉一下怎么弄好的吗 我也遇到同样的问题

出0入0汤圆

发表于 2014-2-24 09:32:42 | 显示全部楼层
我也关注一下。手上的三个PICkit3都无法联机了! 我的是淘定上买的。

出0入0汤圆

发表于 2014-2-24 11:10:24 | 显示全部楼层
这个帖子要顶一下!

出0入0汤圆

发表于 2014-2-24 15:20:17 | 显示全部楼层
标记一下,哪天说不定也会遇到。
不过程序下载还是专用编程器可靠。

出0入0汤圆

发表于 2014-2-25 11:12:48 | 显示全部楼层
962K的那个固件 在哪里?

出0入0汤圆

 楼主| 发表于 2014-2-25 15:22:35 | 显示全部楼层
attach://172487.rar

952KB 固件

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x

出0入0汤圆

 楼主| 发表于 2014-2-25 15:24:55 | 显示全部楼层
thisway 发表于 2014-2-25 11:12
962K的那个固件 在哪里?

952KB PICKIT3 FW 这里

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x

出0入0汤圆

发表于 2014-2-26 10:58:57 | 显示全部楼层
90999 发表于 2014-2-25 15:24
952KB PICKIT3 FW 这里

十分感谢!!  只有一个.hex 文件,怎么应用呢?操作步骤是什么?

出0入0汤圆

 楼主| 发表于 2014-2-26 12:24:48 | 显示全部楼层
thisway 发表于 2014-2-26 10:58
十分感谢!!  只有一个.hex 文件,怎么应用呢?操作步骤是什么?

自己论坛搜索 PICKIT3

出0入0汤圆

发表于 2014-2-28 11:50:22 | 显示全部楼层
灰常感谢

出0入0汤圆

发表于 2014-2-28 13:55:10 | 显示全部楼层
我还是没有搞好我的PICKIT3.  
PICkit3的问题是: 读回的ID:0000.  连接不上目标板。

出0入0汤圆

 楼主| 发表于 2014-2-28 14:03:19 | 显示全部楼层
thisway 发表于 2014-2-28 13:55
我还是没有搞好我的PICKIT3.  
PICkit3的问题是: 读回的ID:0000.  连接不上目标板。{: ...

你的供电正常么,是不是有其他元件烧毁了?

出0入0汤圆

发表于 2014-2-28 14:51:48 | 显示全部楼层
90999 发表于 2014-2-28 14:03
你的供电正常么,是不是有其他元件烧毁了?

供电正常, 几块板子都是这样,几个PICkit3都这样。  用PICkit2可以正常下载。但不能给板子加电。 加了电压,PICkit2也连不上。

出0入0汤圆

发表于 2014-2-28 14:52:39 | 显示全部楼层
VCC与MLR脚间用的是 电阻上拉的。 听有人说换成电容?有这么回事吗?

出0入0汤圆

 楼主| 发表于 2014-2-28 21:05:40 | 显示全部楼层
thisway 发表于 2014-2-28 14:52
VCC与MLR脚间用的是 电阻上拉的。 听有人说换成电容?有这么回事吗?

没,我没听说过这回事。

出0入0汤圆

发表于 2014-2-28 22:05:15 | 显示全部楼层
有时间我详细搞一下,为什么PICkit3 读不到ID.   QQ:82446264  希望各位朋友能加我,请教您们也方便。

出0入0汤圆

发表于 2014-4-7 20:11:46 | 显示全部楼层
请问 PICkit 3 Scripting是什么?

出0入0汤圆

 楼主| 发表于 2014-7-12 08:16:57 | 显示全部楼层
xxt 发表于 2014-4-7 20:11
请问 PICkit 3 Scripting是什么?

今天遇到使用PK3下载代码又不正常的情况。
附上解决办法

需要三个软件:MPLAB 8.92 或者 MPLAB X v2.10 (有装的不用升级), PICkit 3 Stand Alone Programmer App v1.0 , PICkit 3 Programmer App and Scripting Tool v3.10

下载连接: http://www.microchip.com/pagehan ... ev-tools-parts.html

我不用MPLAB的,所以每次下载都要刷一下PK3,尤其是最新的款式芯片。归根解底就是他的独立下载软件 PICkit 3 Stand Alone Programmer App依赖MPLAB(X),或者PICkit 3 Programmer App and Scripting Tool 芯片数据偷懒没更新。

PICkit 3 Programmer App and Scripting Tool  是可以独立下载芯片数据的,但是芯片库不全, PICkit 3 Stand Alone Programmer App 需要MPLAB刷机,再刷机才可用。

首先必须使用 PICkit 3 Programmer App and Scripting Tool   和  MPLAB 8.92  来验证 是否可以工作。

打开 PICkit 3 Programmer App and Scripting Tool ,显示在MPLAB MODE的话,就可以到MPLAB 里刷固件, 也可以在TOOL下互相切换到 PICkit 3 Programmer App and Scripting Tool  .

但是你如果需要使用PICkit 3 Stand Alone Programmer App v1.0 ,那么你需要先进入MPLAB MODE ,刷固件,再运行PICkit 3 Stand Alone Programmer App v1.0  再刷机,才可以使用。

他们三者的关系是 PICkit 3 Stand Alone Programmer App v1.0 <----( Stand Alone Programmer / MPLAB X MODE ) ----> MPLAB <-----( MPLAB MODE / Scripting Tool ) ------> PICkit 3 Programmer App and Scripting Tool

其中 PICkit 3 Programmer App and Scripting Tool  和 PICkit 3 Stand Alone Programmer App v1.0 是不能互相切换的。

另外再说一下MPLAB里的下载,先选择编程器项目中PICKIT3,然后再配置里选择设备,一般来说不同类型的设备需要重新下载固件的,刷个机才能用。

PICKIT3,玩的就是刷机。 每次使用PK3,我都不太记得上次是在哪个模式下了,所以不刷机根本不能用,刷上瘾了完全停不下来。

至于掉固件,只要你正常使用PICKIT3,刷机时候不装B,不拔电,那么几乎不会掉,一掉的话,请准备PICKIT2来修复。





出0入0汤圆

发表于 2014-8-20 09:41:01 | 显示全部楼层
支持一个先................

出0入0汤圆

发表于 2014-9-26 20:42:00 来自手机 | 显示全部楼层
谢谢分享。         

出0入0汤圆

发表于 2014-10-3 11:57:03 | 显示全部楼层

出0入0汤圆

发表于 2014-10-3 14:22:23 | 显示全部楼层
用过PICKIT3还是可以的.ICD2比较容易掉固件.

出0入0汤圆

发表于 2014-10-13 22:00:58 | 显示全部楼层
90999 发表于 2014-7-12 08:16
今天遇到使用PK3下载代码又不正常的情况。
附上解决办法

MPLAB历史版本下载链接超赞啊,找了好久都没有找到下载地方,顶一个。

出0入0汤圆

发表于 2014-10-13 22:07:19 | 显示全部楼层
thisway 发表于 2014-2-28 13:55
我还是没有搞好我的PICKIT3.  
PICkit3的问题是: 读回的ID:0000.  连接不上目标板。{: ...

请问这个问题解决了吗?

出60入0汤圆

发表于 2014-11-6 12:57:52 | 显示全部楼层
Pickit3 连接错误

出0入0汤圆

发表于 2014-11-6 13:27:59 | 显示全部楼层
原厂Pickit3用了好几年,貌似没出过问题的飘过...

出0入0汤圆

发表于 2015-1-15 23:01:22 | 显示全部楼层
我的PICKIT3也是连接问题

出0入4汤圆

发表于 2015-2-3 15:53:02 | 显示全部楼层
没遇见过此问题 = =

出0入26汤圆

发表于 2015-5-20 11:11:45 | 显示全部楼层
我的PICKit3也不太稳定,正在研究,PICkit 3 Scripting软件是不是那个独立烧录软件啊!哪里有下载啊?我官网都找不到。

出0入0汤圆

发表于 2015-11-29 17:50:39 | 显示全部楼层
当PICKIT3都不能被识别怎么处理呢?

出40入0汤圆

发表于 2015-11-29 20:21:25 | 显示全部楼层
原厂的很稳定啊,没出现过楼主出现的问题。

出0入0汤圆

 楼主| 发表于 2015-11-29 21:51:00 | 显示全部楼层
dianzidianzi 发表于 2015-11-29 17:50
当PICKIT3都不能被识别怎么处理呢?

独立下载器 和 MPLAB 都试下,不行就上PICKIT2重刷固件

出0入0汤圆

发表于 2015-12-1 10:37:11 | 显示全部楼层
手头上有2个PICKIT3 在MPLAB下 正常连接上,能读芯片,却不能烧录芯片,很不解。。。。

出0入0汤圆

 楼主| 发表于 2015-12-2 01:13:03 | 显示全部楼层
yoursnemo 发表于 2015-12-1 10:37
手头上有2个PICKIT3 在MPLAB下 正常连接上,能读芯片,却不能烧录芯片,很不解。。。。 ...

做逻辑分析仪试下,如果能采样到信号,那么就是供电问题。

出0入0汤圆

发表于 2015-12-2 11:49:15 | 显示全部楼层
90999 发表于 2015-12-2 01:13
做逻辑分析仪试下,如果能采样到信号,那么就是供电问题。

OK~~~~谢谢~提供这个良策!!!
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-6-14 03:56

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

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