File Name: 51417b.pdf
File Size: 363.81 KB
File Type: Application/pdf
Last Modified: 19 years
Status: Available
Last checked: 6 days ago!
This Document Has Been Certified by a Professional
100% customizable
Language: English
We recommend downloading this file onto your computer
DEVELOPMENT SYSTEMS Uninstalling Incorrect USB Device DriversRECOMMENDED UNINSTALL METHODS When using Microchip development tools, trouble may be experienced as a result of incorrect device drivers being installed
If the Windows® OS installs its default USB device drivers for a Microchip development tool, the tool will not function properly, if at all. To uninstall the Windows drivers and install the necessary Microchip drivers, follow the instructions listed in this document
It is recommended that the simple uninstall is attempted first. If this does not work, proceed to the complex uninstall
• Simple Uninstall Method – Delete from Device Manager • Complex Uninstall Method – Edit Registry • Installation Issues – Solving problems when installing the drivers Note: If you have installed the drivers and been able to communicate without errors initially, but then have experienced communication problems, reinstalling the drivers may not solve your problems. Please refer to the MPLAB® ICD 2 on-line help for possible software solutions before attempting to uninstall/reinstall the drivers
SIMPLE UNINSTALL METHOD Attempt this method first. If it does not work, proceed to the complex uninstall
First remove the reference to the USB device from the Device Manager. Then install the correct Microchip USB device drivers
Removing the Incorrect USB Drivers At this time, the PC system should be booted up and idle. Also, the development tool should be plugged into a PC USB port
1. Right-click (right mouse button) on the My Computer icon on the PC desktop
Select Properties to bring up the System Properties dialog
2. Open the Device Manager
• For Windows 98/ME: Click on the Device Manager tab
• For Windows 2000/XP: Click on the Hardware tab and then click on the Device Manager button to open the Device Manager window
3. Click on the “+” to expand either Other Devices or USB Ports and find a “?” with a yellow “!” or red “X” through it. It should say “USB Device” or something similar
Note: If unsure which device under Other Devices is the tool being used, unplug the tool and see which one disappears. Then plug the tool back in to see it reappear
4. Click once on this device to select it, and then right-click on this device and select Uninstall from the drop-down menu. Click OK to the warning
Note: DO NOT unplug the tool from the USB port at this time. Leave it plugged in
2003 Microchip Technology Inc. DS51417B-page 1 Development Systems Installing the Correct USB Drivers 1. Go to Start on the menu bar and select Settings, and then the Control Panel
2. In the Control Panel, double-click on Add/Remove Hardware
3. On the Welcome screen, click Next. Then click on the Add button and again click Next
4. At this point (after the system does some searching), it should say that it found new hardware, i.e., the Add New Hardware wizard should appear
5. Click Next on the Add New Hardware wizard. Then select the “Search” option and again click Next
6. Uncheck all the boxes and then check only the one that says “Specify a location”
Click Next
7. The opportunity will then be given to Browse. For the standard MPLAB IDE install, find the following directory and click OK: C:\Program Files\MPLAB IDE\Driversnn\USBtool where nn = Windows version (ex: XP) and tool = development tool (ex: ICD2.) 8. Click Open. The wizard should say that it found a driver. Click Next
9. Click Finish on the next screen. The wizard should say that it found the Firmware Loader or Firmware Client, depending on which was missing
10. Once this is done, a prompt may ask for an indication where the appropriate .SYS file (ToolNameWinVersion.Sys) is located. Browse to the directory in step 7, which contains that file. Then click Next or OK and follow any other instructions until Finished
11. Now, look in the Device Manager under USB and the “Microchip Toolname Firmware Client” should be listed
DS51417B-page 2 2003 Microchip Technology Inc
Uninstalling Incorrect USB Device DriversCOMPLEX UNINSTALL METHOD If the simple uninstall method did not fix the communications problem, the PC register will have to be edited
First, the registry file needs to be backed up, then the Windows default USB drivers need to be uninstalled so that the correct Microchip tool USB drivers may be installed
Backing Up the Registry To back up the registry, administrative login privileges are necessary (Windows 2000/XP) so that REGEDIT (or REGEDT32) can be run
1. From the PC desktop, select Start>Run and enter REGEDIT
2. In REGEDIT, select File>Export (or Registry>Export Registry File) to open the Export Register File dialog
3. Find a location for the registry file. Then enter a File name. Ensure that “All” is selected in the export settings. Click Save
2003 Microchip Technology Inc. DS51417B-page 3 Development Systems Removing the Incorrect USB Drivers 1. Unplug the tool from the USB port
2. In REGEDIT (or REGEDT32), go to HKEY_LOCAL_MACHINE>SYSTEM> CONTORLSET001>ENUM>USB. Highlight the following key, depending on the tool being used: • VID_04D8&PID_8000 – MPLAB ICD 2 • VID_04D8&PID_9000 – MPLAB ICE 4000 3. For Windows 2000/XP, the permissions will need to be changed before the key can be deleted
a) Right-click on the key and select Permissions (or select Security>Permissions.)DS51417B-page 4 2003 Microchip Technology Inc
Uninstalling Incorrect USB Device Drivers b) In Permissions for the key, ensure that “Everyone” is selected to Full Control
c) Ensure that the “Allow inheritable permissions from parent to propagate to this object” is checked. This check box may be on the Advanced Security Settings dialog (click the Advanced button) or may be on the main Permissions dialog
d) Click OK to set the new permissions
2003 Microchip Technology Inc. DS51417B-page 5 Development Systems 4. Delete the highlighted key
5. Highlight the following key, depending on the tool being used: • VID_04D8&PID_8001 – MPLAB ICD 2 • VID_04D8&PID_9001 – MPLAB ICE 4000 6. For Windows 2000/XP, repeat (3)
7. Delete the highlighted key
8. Select the keys from step 2 and step 5 from directories Controlsetnnn and CurrentControlset, i.e., repeat steps 2-7 for Controlsetnnn and CurrentControlset. (Where nnn is a number)
Under Win98, these keys may be located under different folders. All instances of these keys must be removed from the registry
9. Exit REGEDIT and open Windows Explorer
DS51417B-page 6 2003 Microchip Technology Inc
Uninstalling Incorrect USB Device Drivers 10. Go to Windows\INF (or Winnt\INF.) Use the File Search to search this directory, and all subsequent subdirectories, for all .INF files that contain reference to the following: • The keys specified in step 2 and step 5 Delete these files
Note: Keep track of the INF file names that are deleted, because the corresponding files with PNF extensions will have to be deleted as well. For example, if OEM26.INF is deleted, OEM26.PNF will also need to be deleted, if it exists. PNF files are not text files and cannot be searched like INF files
Go to Windows\system32\drivers (or Winnt\system32\drivers) and delete the ToolNameWinVersion*.Sys files, where ToolName = abbreviated name of the tool and WinVersion = abbreviated name of Windows version. Under Windows XP, WinVersion = 2k
Example: For MPLAB ICD 2 on a Windows 2000 system: • icd2w2k.sys • icd2w2kL.sys 11. Reboot the system
2003 Microchip Technology Inc. DS51417B-page 7 Development Systems Installing the Correct USB Drivers Before plugging in the tool to a USB port, check/do the following: 1. Install the latest MPLAB IDE so that the latest device drivers and INF file are in the MPLAB IDE drivers subdirectory
2. Install the latest service packs for the OS
3. Ensure that the administrator mode is active, with all rights and privileges turned on for the system and registry (Windows 2000/XP.) 4. Disconnect from any networks
Plug the tool being used into a USB port. This port should be one of the following: • The primary USB port on the system
• An add-in card, which acts like a motherboard USB port • A powered hub The Add New Hardware wizard should come up, the INF file should be accessible and the loader and client drivers should come up OK
INSTALLATION ISSUES Windows 2000 Users A patch on the Microsoft windows update site may help if you are experiencing a problem with loading the MPLAB ICD 2 USB drivers. The patch is applicable to those who have updated to Windows 2000 SP4. Here is the comment from Microsoft: "Some driver installation programs don’t work on Windows 2000 (W2K) after you install either Critical Update QFE 813044 or W2K Server SP4. The installation does not succeed and you receive an incorrect error that no drivers are available for the device." The patch can be found at: http://www.microsoft.com/downloads/details.aspx?displaylang= en&familyid=7C896E82-4B50-44C8-A634-3227C0E71293DS51417B-page 8 2003 Microchip Technology Inc
Note the following details of the code protection feature on Microchip devices:• Microchip products meet the specification contained in their particular Microchip Data Sheet
• Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the intended manner and under normal conditions
• There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip's Data Sheets. Most likely, the person doing so is engaged in theft of intellectual property
• Microchip is willing to work with the customer who is concerned about the integrity of their code
• Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not mean that we are guaranteeing the product as “unbreakable.”Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of ourproducts. Attempts to break microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such actsallow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act
Information contained in this publication regarding device Trademarksapplications and the like is intended through suggestion only The Microchip name and logo, the Microchip logo, Accuron,and may be superseded by updates. It is your responsibility to dsPIC, KEELOQ, MPLAB, PIC, PICmicro, PICSTART,ensure that your application meets with your specifications. PRO MATE and PowerSmart are registered trademarks ofNo representation or warranty is given and no liability is Microchip Technology Incorporated in the U.S.A. and otherassumed by Microchip Technology Incorporated with respect countries
to the accuracy or use of such information, or infringement ofpatents or other intellectual property rights arising from such AmpLab, FilterLab, microID, MXDEV, MXLAB, PICMASTER,use or otherwise. Use of Microchip’s products as critical SEEVAL and The Embedded Control Solutions Company arecomponents in life support systems is not authorized except registered trademarks of Microchip Technology Incorporatedwith express written approval by Microchip. No licenses are in the U.S.A
conveyed, implicitly or otherwise, under any intellectual Application Maestro, dsPICDEM, dsPICDEM.net, ECAN,property rights. ECONOMONITOR, FanSense, FlexROM, fuzzyLAB, In-Circuit Serial Programming, ICSP, ICEPIC, microPort, Migratable Memory, MPASM, MPLIB, MPLINK, MPSIM, PICkit, PICDEM, PICDEM.net, PowerCal, PowerInfo, PowerMate, PowerTool, rfLAB, rfPIC, Select Mode, SmartSensor, SmartShunt, SmartTel and Total Endurance are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries
Serialized Quick Turn Programming (SQTP) is a service mark of Microchip Technology Incorporated in the U.S.A
All other trademarks mentioned herein are property of their respective companies
© 2003, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved
Printed on recycled paper
Microchip received QS-9000 quality system certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona in July 1999 and Mountain View, California in March 2002
The Company’s quality system processes and procedures are QS-9000 compliant for its PICmicro® 8-bit MCUs, KEELOQ® code hopping devices, Serial EEPROMs, microperipherals, non-volatile memory and analog products. In addition, Microchip’s quality system for the design and manufacture of development systems is ISO 9001 certified
2003 Microchip Technology Inc. DS51417B-page 9 WORLDWIDE SALES AND SERVICEAMERICAS ASIA/PACIFIC Korea 168-1, Youngbo Bldg. 3 FloorCorporate Office Australia Samsung-Dong, Kangnam-Ku2355 West Chandler Blvd. Suite 22, 41 Rawson Street Seoul, Korea 135-882Chandler, AZ 85224-6199 Epping 2121, NSW Tel: 82-2-554-7200 Fax: 82-2-558-5932 orTel: 480-792-7200 Australia 82-2-558-5934Fax: 480-792-7277 Tel: 61-2-9868-6733Technical Support: 480-792-7627 Fax: 61-2-9868-6755 SingaporeWeb Address: http://www.microchip.com 200 Middle Road China - Beijing #07-02 Prime CentreAtlanta Unit 706B Singapore, 1889803780 Mansell Road, Suite 130 Wan Tai Bei Hai Bldg
Tel: 65-6334-8870 Fax: 65-6334-8850Alpharetta, GA 30022 No. 6 Chaoyangmen Bei Str
Beijing, 100027, China TaiwanTel: 770-640-0034 Tel: 86-10-85282100 Kaohsiung BranchFax: 770-640-0307 Fax: 86-10-85282104 30F - 1 No. 8Boston Min Chuan 2nd Road China - Chengdu2 Lan Drive, Suite 120 Kaohsiung 806, TaiwanWestford, MA 01886 Rm. 2401-2402, 24th Floor, Tel: 886-7-536-4818Tel: 978-692-3848 Ming Xing Financial Tower Fax: 886-7-536-4803Fax: 978-692-3821 No. 88 TIDU Street Chengdu 610016, China TaiwanChicago Tel: 86-28-86766200 Taiwan Branch333 Pierce Road, Suite 180 Fax: 86-28-86766599 11F-3, No. 207Itasca, IL 60143 Tung Hua North Road China - Fuzhou Taipei, 105, TaiwanTel: 630-285-0071 Unit 28F, World Trade Plaza Tel: 886-2-2717-7175 Fax: 886-2-2545-0139Fax: 630-285-0075 No. 71 Wusi RoadDallas Fuzhou 350001, China EUROPE4570 Westgrove Drive, Suite 160 Tel: 86-591-7503506 AustriaAddison, TX 75001 Fax: 86-591-7503521Tel: 972-818-7423 Durisolstrasse 2 China - Hong Kong SAR A-4600 WelsFax: 972-818-2924 Unit 901-6, Tower 2, Metroplaza AustriaDetroit 223 Hing Fong Road Tel: 43-7242-2244-399Tri-Atria Office Building Kwai Fong, N.T., Hong Kong Fax: 43-7242-2244-39332255 Northwestern Highway, Suite 190 Tel: 852-2401-1200 DenmarkFarmington Hills, MI 48334 Fax: 852-2401-3431 Regus Business CentreTel: 248-538-2250 China - Shanghai Lautrup hoj 1-3Fax: 248-538-2260 Room 701, Bldg. B Ballerup DK-2750 DenmarkKokomo Far East International Plaza Tel: 45-4420-9895 Fax: 45-4420-99102767 S. Albright Road No. 317 Xian Xia Road FranceKokomo, IN 46902 Shanghai, 200051 Parc d’Activite du Moulin de MassyTel: 765-864-8360 Tel: 86-21-6275-5700 43 Rue du Saule TrapuFax: 765-864-8387 Fax: 86-21-6275-5060 Batiment A - ler Etage China - Shenzhen 91300 Massy, FranceLos Angeles Rm. 1812, 18/F, Building A, United Plaza Tel: 33-1-69-53-63-2018201 Von Karman, Suite 1090 No. 5022 Binhe Road, Futian District Fax: 33-1-69-30-90-79Irvine, CA 92612 Shenzhen 518033, ChinaTel: 949-263-1888 Germany Tel: 86-755-82901380 Steinheilstrasse 10Fax: 949-263-1338 Fax: 86-755-8295-1393 D-85737 Ismaning, GermanyPhoenix China - Shunde Tel: 49-89-627-144-02355 West Chandler Blvd. Room 401, Hongjian Building Fax: 49-89-627-144-44Chandler, AZ 85224-6199 No. 2 Fengxiangnan Road, Ronggui Town ItalyTel: 480-792-7966 Shunde City, Guangdong 528303, China Via Quasimodo, 12Fax: 480-792-4338 Tel: 86-765-8395507 Fax: 86-765-8395571 20025 Legnano (MI)San Jose China - Qingdao Milan, Italy1300 Terra Bella Avenue Rm. B505A, Fullhope Plaza, Tel: 39-0331-742611Mountain View, CA 94043 No. 12 Hong Kong Central Rd. Fax: 39-0331-466781Tel: 650-215-1444 Qingdao 266071, China Netherlands Tel: 86-532-5027355 Fax: 86-532-5027205 P. A. De Biesbosch 14Toronto6285 Northam Drive, Suite 108 India NL-5152 SC Drunen, Netherlands Divyasree Chambers Tel: 31-416-690399Mississauga, Ontario L4V 1X5, Canada 1 Floor, Wing A (A3/A4) Fax: 31-416-690340Tel: 905-673-0699Fax: 905-673-6509 No. 11, O’Shaugnessey Road United Kingdom Bangalore, 560 025, India 505 Eskdale Road Tel: 91-80-2290061 Fax: 91-80-2290062 Winnersh Triangle Japan Wokingham Benex S-1 6F Berkshire, England RG41 5TU 3-18-20, Shinyokohama Tel: 44-118-921-5869 Kohoku-Ku, Yokohama-shi Fax: 44-118-921-5820 Kanagawa, 222-0033, Japan Tel: 81-45-471- 6166 Fax: 81-45-471-6122 11/24/03DS51417B-page 10 2003 Microchip Technology Inc
(Windows 2000/XP) so that REGEDIT (or REGEDT32) can be run. 1. From the PC desktop, select Start>Run and enter REGEDIT. 2. In REGEDIT, select File>Export (or Registry>Export …
First remove the reference to the USB device from the Device Manager. Then install the correct Microchip USB device drivers. Removing the Incorrect USB Drivers At this time, the PC system should be booted up and idle. Also, the development tool should be plugged into a PC USB port. 1.
Uninstalling Incorrect USB Device Drivers Author Microchip Technology Inc. Subject Development Tools Keywords Dev Systems, USB Device Drivers, USB Drivers Created Date 12/4/2003 10:17:58 AM
RECOMMENDED UNINSTALL METHODS When using Microchip development tools, trouble may be experienced as a result of incorrect device drivers being installed. If the Windows®OS installs its default USB device drivers for a Microchip development tool, the tool will not function properly, if at all.
Installing the Correct USB Drivers 1. Go to Start on the menu bar and select Settings, and then the Control Panel. 2. In the Control Panel, double-click on Add/Remove Hardware. 3. On the Welcome screen, click Next. Then click on the Add button and again click Next. 4.