• AVR Freaks

HID DATA has stopped working - ERROR-

Page: 12 > Showing page 1 of 2
Author
romancanas
New Member
  • Total Posts : 17
  • Reward points : 0
  • Joined: 2007/07/14 13:22:54
  • Location: USA
  • Status: offline
2009/05/01 18:28:25 (permalink)
0

HID DATA has stopped working - ERROR-

Hello,
I would like to know if anyone has had this experience with a Pickit 2 programmer and knows how to fix it:

Every time I plug the pickit 2 to the USB port a message shows up in the computer's screen:

"HID DATA has stopped working"

It is very annoying.

My machine is a windows vista ultimate  64-bits.

Any help would be appreciatte,

Thanks,


#1

22 Replies Related Threads

    FunnyNYPD
    Super Member
    • Total Posts : 1553
    • Reward points : 0
    • Joined: 2007/09/28 20:06:59
    • Location: USA & Canada
    • Status: offline
    RE: HID DATA has stopped working - ERROR- 2009/05/01 20:57:53 (permalink)
    0
    Is 64 bit VISTA supported by Microchip old HID stack?
    #2
    romancanas
    New Member
    • Total Posts : 17
    • Reward points : 0
    • Joined: 2007/07/14 13:22:54
    • Location: USA
    • Status: offline
    RE: HID DATA has stopped working - ERROR- 2009/05/01 21:30:01 (permalink)
    0
    Microchip says on its web site: PICkit 2 v2.61 supports the Windows Vista 64-bit OS.
    #3
    xiaofan
    Super Member
    • Total Posts : 6247
    • Reward points : 0
    • Joined: 2005/04/14 07:05:25
    • Location: Singapore
    • Status: offline
    RE: HID DATA has stopped working - ERROR- 2009/05/02 03:22:29 (permalink)
    0
    Google seems to point to HP machine.
    http://www.annoyances.org/exec/forum/winvista/1229733832

    Are you using an HP machine with the "HP Quick Launch Buttons" enabled?

      USB_Links and libusb
    #4
    FunnyNYPD
    Super Member
    • Total Posts : 1553
    • Reward points : 0
    • Joined: 2007/09/28 20:06:59
    • Location: USA & Canada
    • Status: offline
    RE: HID DATA has stopped working - ERROR- 2009/05/02 06:43:45 (permalink)
    0
    So the new HID stack does support the VIsta 64 os.
    #5
    xiaofan
    Super Member
    • Total Posts : 6247
    • Reward points : 0
    • Joined: 2005/04/14 07:05:25
    • Location: Singapore
    • Status: offline
    RE: HID DATA has stopped working - ERROR- 2009/05/02 06:59:20 (permalink)
    0
    ORIGINAL: FunnyNYPD
    So the new HID stack does support the VIsta 64 os.


    I do not know what you mean. The HID firmware stack of PICKit 2 is based on the old V1.x USB firmware framework. It will work on any OS as long as the host software is okay. The PC application did not support Vista 64 last time. Now it supports Vista 64 (with limited testing). MPLAB did not support Vista 64 last time, now it supports Vista 64.

    I think you confuse the firmware with the PC host software. If the PICkit 2 firmware is written using the new stack, it will work as well.

      USB_Links and libusb
    #6
    FunnyNYPD
    Super Member
    • Total Posts : 1553
    • Reward points : 0
    • Joined: 2007/09/28 20:06:59
    • Location: USA & Canada
    • Status: offline
    RE: HID DATA has stopped working - ERROR- 2009/05/02 07:09:17 (permalink)
    0
    Microchip USB software stack doesn't support all os until the recent releases. So, the old PICkit 2 HID bootloader firmware may be an issue. Not sure about the USB application firmware version.

    I have tried re-generate the PICkit 2 bootloader from the source code published in V2.55, but no success.
    Something is hiding, and the USB stack for PICkit 2 may be slightly different than the USB stack HID codes.
    #7
    xiaofan
    Super Member
    • Total Posts : 6247
    • Reward points : 0
    • Joined: 2005/04/14 07:05:25
    • Location: Singapore
    • Status: offline
    RE: HID DATA has stopped working - ERROR- 2009/05/02 07:23:21 (permalink)
    0
    There is a missmatch in the bootloader firmware source between iocfg.h and boot_main.c. It is very easy to fix it.

    In the file io_cfg.h, add one line and you should be able to compile the bootloader firmware.

    #define PROG_SWITCH_pin PORTBbits.RB5
    /* add the following line to fix the compiling issue
    #define PROG_SWITCH PORTBbits.RB5


    The USB stack in PICKit 2 is based on V1.x firmware stack, but later due to code size issues, some of the things are cut down. They are basically the same.

    As for V1.x firmware, initially the custom driver does not support Vista 64, later in V1.3, Vista 64 support is added.

    The firmware is OS agnostic as long as it is compliant to USB standard (Vista is more compliant to USB standard than XP, so some non-compliant device which works in XP will not work in Vista) in this regard, , but the driver needs to be updated to support the Vista 64 OS. Vista 64 also requires the driver to be signed.

      USB_Links and libusb
    #8
    FunnyNYPD
    Super Member
    • Total Posts : 1553
    • Reward points : 0
    • Joined: 2007/09/28 20:06:59
    • Location: USA & Canada
    • Status: offline
    RE: HID DATA has stopped working - ERROR- 2009/05/02 07:44:55 (permalink)
    0
    Those bugs are easy to fix, and I can get a hex after source code are compiled, however, the hex (generated from the source code) works differently than the real PICKit 2 HID bootloader.
    #9
    xiaofan
    Super Member
    • Total Posts : 6247
    • Reward points : 0
    • Joined: 2005/04/14 07:05:25
    • Location: Singapore
    • Status: offline
    RE: HID DATA has stopped working - ERROR- 2009/05/02 08:02:12 (permalink)
    0

    ORIGINAL: FunnyNYPD
    Those bugs are easy to fix, and I can get a hex after source code are compiled, however, the hex (generated from the source code) works differently than the real PICKit 2 HID bootloader.


    That is actually possible. This bootloader has not been updated for years and it may indeed depend on the old compiler version due to potential timing problems or optimization differences.

    Still this has nothing to do with what the OP's question.

      USB_Links and libusb
    #10
    FunnyNYPD
    Super Member
    • Total Posts : 1553
    • Reward points : 0
    • Joined: 2007/09/28 20:06:59
    • Location: USA & Canada
    • Status: offline
    RE: HID DATA has stopped working - ERROR- 2009/05/02 10:25:33 (permalink)
    0
    Do you know the compilor version which can make it work?
    #11
    xiaofan
    Super Member
    • Total Posts : 6247
    • Reward points : 0
    • Joined: 2005/04/14 07:05:25
    • Location: Singapore
    • Status: offline
    RE: HID DATA has stopped working - ERROR- 2009/05/02 17:16:16 (permalink)
    0
    Try V2.4. But what is the problem when you use the new version of C18 compiler?

    Even for the main application, it is built with no-optimization. You may want to try with optimization and see if the firmware still works. It should be interesting.

      USB_Links and libusb
    #12
    FunnyNYPD
    Super Member
    • Total Posts : 1553
    • Reward points : 0
    • Joined: 2007/09/28 20:06:59
    • Location: USA & Canada
    • Status: offline
    RE: HID DATA has stopped working - ERROR- 2009/05/03 03:08:54 (permalink)
    0
    I have verified that the main application works fine under C18 V3.30, even with the optimization turned on. I have tested this on all of our BB0703+F customer-firmware builds (512K byte, 1M byte, and 4M byte SPI Flash memory for Programmer-to-Go) . Our source code modification is back compatible with the I2C EEPROM (256K byte max), so one firmware will support all I2C (128K, 256K bytes) and SPI (512K ~ 4M bytes) memories. All source code has been sent to Walter, and he had successfully added the C# code into the v2.61 PC application before he left Microchip. I don't know how long it will take to have the 18F2550 firmware code integreated into the new firmware releases. There is also a possibility to expand the PTG function to support 11LC, 94LC, 24LC, 25LC type of EEPROM memories. But I am not sure if Microchip or other parties are interested.

    It is just the bootloader firmware doesn't work the way it should.
    After a Success build with V3.30. V3.20, V3.16, the bootloader firmware can be detected and flash the red LED, but that's it. No code can be downloaded just like the real PICKit 2 firmware (with the PC application software).
    #13
    xiaofan
    Super Member
    • Total Posts : 6247
    • Reward points : 0
    • Joined: 2005/04/14 07:05:25
    • Location: Singapore
    • Status: offline
    RE: HID DATA has stopped working - ERROR- 2009/05/03 03:13:26 (permalink)
    0
    Good to hear that the main application still works fine with optimization. I suggested Walter to do this last time since the PICkit 2's 18F2550 is kind of tight now with so many features.

    As for the bootloader, have you tried V2.4? It can still be downloaded here.
    http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en023073

      USB_Links and libusb
    #14
    FunnyNYPD
    Super Member
    • Total Posts : 1553
    • Reward points : 0
    • Joined: 2007/09/28 20:06:59
    • Location: USA & Canada
    • Status: offline
    RE: HID DATA has stopped working - ERROR- 2009/05/03 06:24:42 (permalink)
    0
    We talked the "PICkit 2 bootloader source code" issue with Walter before, he told us the same thing (we were informed nobody touched the bootloader source code for years), it might just be an issue of C18 compiler (we prefer the newest ones which seems generated better code than older ones. and for USB, Ethernet application, C18 is the best bet).

    Do you know how to install an older C18 over a newer one, can they co-exist?
    Hi-tech is doing a good job on the recent PICC18 releases, they can be installed at different folder (co-exist) and you can easily choose which version you want to use under MPLAB.

    #15
    xiaofan
    Super Member
    • Total Posts : 6247
    • Reward points : 0
    • Joined: 2005/04/14 07:05:25
    • Location: Singapore
    • Status: offline
    RE: HID DATA has stopped working - ERROR- 2009/05/03 06:53:42 (permalink)
    0
    I think you can install two MPLAB C18 versions without an issue. I have not done that. But last time I installed two C30 and C32 versions and both seemed to work fine. But to be safe, you can backup your C18 installation first.

    As for the C18 installation, that is an upgrade version, so you may have to install a really old version and then upgrade.

    On the other hand, it may be worth to try to figure out the real issue. Do you have a USB bus analyzer or similar? If not, have you tried to use a software analyzer to capture the USB traffic. Or maybe you can hack the host software to log the USB traffic.

    The linux version of pk2cmd has an option to log the USB communication traffic. But it only works with libusb under Linux (maybe Mac OS X as well) and not Windows HID driver.

      USB_Links and libusb
    #16
    xiaofan
    Super Member
    • Total Posts : 6247
    • Reward points : 0
    • Joined: 2005/04/14 07:05:25
    • Location: Singapore
    • Status: offline
    RE: HID DATA has stopped working - ERROR- 2009/05/03 06:54:31 (permalink)
    0
    To OP:
    Sorry for the side track, have you solved your problem?

      USB_Links and libusb
    #17
    romancanas
    New Member
    • Total Posts : 17
    • Reward points : 0
    • Joined: 2007/07/14 13:22:54
    • Location: USA
    • Status: offline
    RE: HID DATA has stopped working - ERROR- 2009/05/04 14:13:10 (permalink)
    0
    Yes, "HP Quick Launch Buttons" is enable.
    I don't really like this solution because this is a table PC and I have to use these buttons.
    I saw all those forums all over the internet and apparently there is some sort of incompatibility between HP computers and some USB or Bluetooth devices. I am just hoping to find a different solution in this forum.
    I am surprised I found nothing on the HP site referring to this issue.

    Regards,

    #18
    xiaofan
    Super Member
    • Total Posts : 6247
    • Reward points : 0
    • Joined: 2005/04/14 07:05:25
    • Location: Singapore
    • Status: offline
    RE: HID DATA has stopped working - ERROR- 2009/05/04 16:38:38 (permalink)
    0
    Maybe you can call HP support. Apparently this is a common problem with HP computers.

      USB_Links and libusb
    #19
    FunnyNYPD
    Super Member
    • Total Posts : 1553
    • Reward points : 0
    • Joined: 2007/09/28 20:06:59
    • Location: USA & Canada
    • Status: offline
    RE: HID DATA has stopped working - ERROR- 2009/05/05 07:20:06 (permalink)
    0
    Will the "DirectX 9.0c fix"work for this situation?
    It might just have the same root-cause.
    #20
    Page: 12 > Showing page 1 of 2
    Jump to:
    © 2020 APG vNext Commercial Version 4.5