I am working on a new product that uses a PIC32 processor and HID. Each time I program the chip, I disconnect the USB from the PC then reconnect after programming. The board uses a PIC32MX534, and is not a starter kit or development device. Everything seems to work fine and I am deeply into the firmware, I do have successful USB communication using Microchip's USB framework; I am working on communicating with an external flash memory chip and an audio DAC.
After just a few disconnects and reconnects, the PC thinks the USB is still connected when I unplug it. My PC program sees the device as connected because windows has the driver open and device manager thinks the board is there even though it is disconnected. I cannot do anything to close the PC HID driver, including driver uninstall. The driver uninstall just locks up and I have to restart the computer. (The computer functions normally except the driver won't close). I am running XP and programming in VC. net. I am working on both programs (VC.net and PIC32) at the same time so I am running the VC program from within the development environment. Stopping the program does not seem to help.
This really slows development down and any suggestions would be greatly appreciated.