Swap USB Drivers Between the MPLAB® 8 IDE and the MPLAB X IDE

Last modified by Microchip on 2024/06/24 06:30

Warning

Screenshots are outdated. The ICD2 is NOT supported by MPLAB® X IDE.

Contents

Selecting the New Drivers

MPLAB X TV Channel on YouTube

While it is possible to have both MPLAB 8 IDE and MPLAB X IDE installed on the same Windows® based system, they use different USB drivers to communicate with our tools. MPLAB X IDE uses Microsoft's generic WinUSB driver while MPLAB 8 IDE and earlier uses a set of proprietary drivers. As such, if you wish to use both versions of MPLAB on the same system (for example, to support legacy code in its original environment), you will have to switch USB drivers each time you move between MPLAB versions.

There are two methods you can use for switching drivers: a switcher utility program that is installed with MPLAB or manually using the Windows built-in driver maintenance process.

​Drivers are switched on a per serial number basis which means that a different driver may be associated with every tool connected to the system. For example, if you have two ICD3s, you must switch the driver for each of them if you wish to use them both in MPLAB X IDE. In other words, you must switch the driver for all tools in the family to use all of them in MPLAB X IDE. This was done so that you could have one ICD3 with the old driver connected to MPLAB 8 IDE and one ICD3 with the new driver connected to MPLAB X IDE and have the two IDEs running simultaneously. The same holds true for the other tools except for the PICKit 2 and 3 which use the standard Human Interface driver found on all systems.

Swapping Drivers with the Switcher Utility

Ensure that the tool of interest is already connected to your PC via a USB cable. If you run the switcher without the tool connected, the driver will not be switched.

After installing MPLAB X IDE, the switcher utility can typically be found on the desktop or in the Start menu under Programs > Microchip > MPLAB X IDE > MPLAB Driver Switcher. You can also launch the program directly by double-clicking on the icon where it resides:

  • 32-bit Windows: C:\Program Files\Microchip\MPLAB X IDE\Switcher\32bit\MPDDSwich32.exe
  • 64-bit Windows: C:\Program Files\Microchip\MPLAB X IDE\Switcher\64bit\MPDDSwich64.exe
DriverSwitcher.png
Click image to enlarge.

Select the tool whose driver you wish to switch under Tool Group and Action and the driver you wish to use under Group Driver Selection to be Applied. Do this for each tool you wish to switch. Then click on the Apply All button.

  • MPLAB 8 IDE will switch the driver to the MPLAB 8 IDE driver no matter which one is currently being used.
  • MPLAB X IDE will switch the driver to the MPLAB X IDE driver no matter which one is currently being used.
  • No Change will leave in place whichever driver is currently being used. No change will be made.

If you installed MPLAB X IDE in a non-default location, you may need to click on the Advanced » button and specify the locations of the *.inf files.

It may take a minute or more to switch the drivers. In the end, you should see "no error" in the text box for each driver you switched.
DriverSwitcher2.png
Click image to enlarge.

Swapping Drivers Manually

Open the device manager and select the MicrochipTools category.

  • Right-click on My Computer and select Properties from the pop-up menu OR run System from the control panel.
  • Select the Hardware tab.
  • Click on the Device Manager button.
  • Expand the MicrochipTools category by clicking on the + on its left.

Right-click on the entry under MicrochipTools that represents the tool whose driver you wish to change and select Update Driver… from the pop-up menu.

If you are switching from MPLAB 8 IDE to MPLAB X IDE, you will see Microchip <tool name>.
If you are switching from MPLAB X IDE to MPLAB 8 IDE, you will see Microchip WinUSB Device (regardless of which USB tool you are using).

MPLAB 8 IDE » MPLAB X IDE
DeviceManager(REALICE).png
Click image to enlarge.
MPLAB X IDE » MPLAB 8 IDE
UpdateDriver5(WinUSB).png
Click image to enlarge.

Can Windows connect to Windows Update to search for software?

  • No, not this time.

Hardware Update Wizard 1

UpdateDriver1.png
Click image to enlarge.

What do you want the wizard to do?

  • Install from a list or a specific location (Advanced)

Hardware Update Wizard 2

UpdateDriver2.png
Click image to enlarge.

Please choose your search and installation options.
Select the SECOND radio button.

  • Don't search. I will choose the driver to install.

If you choose the wrong radio button in this step, the driver switch will fail without any notification.

Hardware Update Wizard 3

UpdateDriver3.png
Click image to enlarge.

Select the device driver you want to install for this hardware.
Select the driver you want from the list:

  • From MPLAB 8 to MPLAB X: Microchip WinUSB Device
  • From MPLAB X to MPLAB 8: Microchip 'MPLAB REAL ICE'

If the desired driver doesn't appear in the list, click on the Have Disk… button and select one of the following *.inf files:

  • For switching from MPLAB 8 to MPLAB X:
    C:\Program Files\Microchip\MPLAB X IDE\Switcher\32Bit\winusb\x86\MCHPWinUSBDevice.inf
  • For switching from MPLAB X to MPLAB 8:
    C:\Program Files\Microchip\MPLAB IDE\REAL ICE\Drivers\RealICEBulk.inf

Hardware Update Wizard 4

UpdateDriver4.png
Click image to enlarge.

Once the desired driver is in the list, select it (if there are more than one) and click on the Next button.

MPLAB 8 » MPLAB X
UpdateDriver5(WinUSB).png
Click image to enlarge.
MPLAB X » MPLAB 8
UpdateDriver5(REALICE).png
Click image to enlarge.

The final window should now show the driver currently installed. Click the Finish button to complete the process.

MPLAB 8 » MPLAB X
UpdateDriver6(WinUSB).png
Click image to enlarge.
MPLAB X » MPLAB 8
UpdateDriver6(REALICE).png
Click image to enlarge.