Microchip WinUSB Driver Not Working with MPLAB X Under Windows 8

Author
RogerThat!
Starting Member
  • Total Posts : 43
  • Reward points : 0
  • Joined: 2012/06/04 08:10:02
  • Location: 0
  • Status: offline
2012/06/08 06:36:35 (permalink)
0

Microchip WinUSB Driver Not Working with MPLAB X Under Windows 8

Hello,
 
We've seen a problem with the Microchip WinUSB device driver and ICD3, REAL ICE and PIC32 starter kits under Windows 8 Release Preview.
 
We're developing applications for Windows 8 and intend to use MPLAB X 1.20 for our embedded work as well.  We prefer not to dual boot or swap drives. We know this is not a supported platform, but the release is coming soon and supporting the OS will be inevitable.
 
Good news is that MPLAB X 1.20, XC 1.0 compilers and Java 1.6U32 seem to run OK under Win8 x64!  Bad news is the Microchip WinUSB driver appears incompatible.
 
First, to install the driver, we disabled the Win8 requirement for signed device drivers (not preferable, but OK for now). After that, the fault light on the ICD3 stopped flashing and it was visible to the Win8 device manager. Unfortunately, MPLAB X sees it as inactive and won't communicate with it. After building a project, the MPLAB X says it is unable to load the file onto the target device.
 
Any suggestions other than dual-booting?  Is there a pre-release Microchip WinUSB driver available for Win8?
 
In one of the MPLAB X video tutorials, it says Microchip is now using an open source WinUSB driver. Is the source code available? We'd be glad to try and port the code.  Some other USB devices using 3rd party signed Win7 drivers install and work OK under Win8. So, we know it can be done.
 
Regards, Chris
#1

6 Replies Related Threads

    XGenerator
    Administrator
    • Total Posts : 345
    • Reward points : 0
    • Joined: 2009/10/12 12:11:03
    • Location: 0
    • Status: offline
    Re:Microchip WinUSB Driver Not Working with MPLAB X Under Windows 8 2012/06/08 15:52:47 (permalink)
    0
    We do use the standard windows USB driver. In the hope that new OS's would work without much port. I will get someone to contact you directly to discuss this.
    Thanks
    #2
    RogerThat!
    Starting Member
    • Total Posts : 43
    • Reward points : 0
    • Joined: 2012/06/04 08:10:02
    • Location: 0
    • Status: offline
    Re:Microchip WinUSB Driver Not Working with MPLAB X Under Windows 8 2012/06/09 08:14:31 (permalink)
    0
    Thanks for the reply.
     
    FYI - Microchip IPE 1.20 beta does not detect the ICD 3 or PIC32 starter kit either.
     
    When running the IPE, under the "Select Device and Tool" group, the Tool field does not have any devices listed. Also, in the "Source:" field, it states: "Please connect tool before loading a hex file".
     
    I look forward to being of any assistance in getting this resolved!
     
    Regards, Chris
    #3
    RogerThat!
    Starting Member
    • Total Posts : 43
    • Reward points : 0
    • Joined: 2012/06/04 08:10:02
    • Location: 0
    • Status: offline
    Re:Microchip WinUSB Driver Not Working with MPLAB X Under Windows 8 2012/06/12 11:43:27 (permalink)
    0
    Hi, I have not yet been contacted about this issue. So, I tried a different platform and wanted to present everyone with the results.
     
    Using the same premium PC as was used with the Windows 8 test, we performed a full and clean installation of Fedora 17 x64 and then installed 32 bit support afterwards. Then, available updates were applied, including the latest kernel. We checked the basic operation of the operating system, including USB communications and everything worked as expected.
     
    The following software was then installed in this order:
    1. Oracle's Java JRE 1.6u32 32-bit
    2. Microchip MPLAB X 1.20
    3. Microchip XC8 and XC32 compilers
     
    First, we configured the above Java version as the system's default Java.  Then, we launched MPLAB X and performed a couple of 8 bit and 32 bit clean test builds. The projects appeared to complete successfully.  Looks like the compiler command line arguments and compilers work OK.
     
    Then, we attached an ICD3 to the system and tried to detect the emulator using both MPLAB X and IPE. Both programs failed to see the device.  We ran lsmod and verified that the driver was loaded and probed with lsusb and the OS reported back information about the ICD3, including its device ID, manufacturer and serial number.
     
    To ensure that this was not the result of a faulty ICD3, we also tried a PIC32 Ethernet Starter Kit. Again, the OS correctly identifies the starter kit, but as with the ICD3, it remains undetected by MPLAB X or IPE. We could also try a REAL ICE, but for now we'll assume the same results as the other devices.
     
    As a sanity check, we booted WinXP x86 on the PC and installed the same suite of software described above. The ICD3 and PIC32 starter kit were both detected. Therefore, proving that the hardware was OK.
     
    At this point, we conclude that the problem is inherent in MPLAB X and IPE. This problem occurs regardless of the operating system and device drivers.  This issue cannot be brushed off as simply being a problem with an unsupported OS (i.e. Windows 8).
     
    As a side note, there are a couple of other problems with IPE 1.20 beta:
     
    (1) It mostly fails to start on Win7 x64 or Linux x64. It may start once, but not again until a reboot, if at all.  We've run it via a command line and can supply the results if your wish. 
     
    (2) Given that an ICD3 or other similar device is not detected... Select the menu: "View > Power Settings" and you get a dialog box with no values that cannot be closed and then neither can the parent application. You have to kill the process through other means.
     
    Here's hoping that this fundamental communications problem can be addressed ASAP!  Let me know if we can be of further assistance.
     
    Regards, Chris
    #4
    Guest
    Super Member
    • Total Posts : 80499
    • Reward points : 0
    • Joined: 2003/01/01 00:00:00
    • Location: 0
    • Status: online
    Re:Microchip WinUSB Driver Not Working with MPLAB X Under Windows 8 2012/06/14 06:29:58 (permalink)
    0
    I am having the same problem here with the Real Ice.  I also have Windows 8 Release preview installed.  Has there been a solution for the driver problem? 
    #5
    Guest
    Super Member
    • Total Posts : 80499
    • Reward points : 0
    • Joined: 2003/01/01 00:00:00
    • Location: 0
    • Status: online
    Re:Microchip WinUSB Driver Not Working with MPLAB X Under Windows 8 2012/06/14 06:44:09 (permalink)
    0
    Never mind, I disabled the signed drivers and the Real Ice now works for me.
    #6
    Guest
    Super Member
    • Total Posts : 80499
    • Reward points : 0
    • Joined: 2003/01/01 00:00:00
    • Location: 0
    • Status: online
    Re:Microchip WinUSB Driver Not Working with MPLAB X Under Windows 8 2012/06/15 10:18:54 (permalink)
    0
    Just posting an update to this thread...
     
    Under Windows 8, we updated to the latest Java release: JRE 1.6u33. We bypassed driver signature enforcement and installed the Microchip WinUSB driver. Then, we configured MPLAB X 1.20a to point to the new version of Java.
     
    We attached a REAL ICE debugger and the device was available under both MPLAB X and IPE.  We then tried an ICD 3 and this was visible as well. We were able to build the project and program the target device. This is good news. The tests were brief, but the first time or so after the debugger was connected, MPLAB X failed to load the target. So we either had to disconnect and reconnect the debugger or restart MPLABX. This seemed to clear up on subsequent attempts, but to be sure, we need to spend more time on this.
     
    Note that this required using the Microchip WinUSB driver. When we tried it with the standard Windows 8 WinUSB driver, the OS detects the debuggers but they are not available to either MPLAB X or IPE.
     
    Now for Linux... After that we booted the machine with Fedora Linux 17, installed the latest Java release 1.6u33 and configured MPLAB X to point to that version of Java. We also configured Fedora to use that version as the default.  Unfortunately, there was no change in operation. Although, the device driver for the debugger is loaded and the operating system appears to see the device, neither MPLAB X or IPE see any REAL ICE or ICD 3 we connect to the machine.
     
    In conclusion, we're not sure why this is now working under Windows 8, but not Fedora. If there is a custom Microchip linux device driver for the debuggers, it is not specified in the installation instructions. At some point we'll try this on Ubuntu 12 and see how it goes.
     
    Regards...
    #7
    Jump to:
    © 2017 APG vNext Commercial Version 4.5