Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Program hangs?? #48

Open
mpavlica opened this issue Mar 31, 2017 · 8 comments
Open

Program hangs?? #48

mpavlica opened this issue Mar 31, 2017 · 8 comments

Comments

@mpavlica
Copy link

mpavlica commented Mar 31, 2017

When I attach PICKIt2 or PICKIT3 and run software, all I get is message, Programmer.... and Copyright info and it sits there forever.
If i unplug USB, it says Pickit2: error receiving packet.
PICKIT2 is plugged in a board, and when i run PICKIT2 software, it works fine and it does recognize PIC32MX360F512
Same problem with PICKIT3.
What can be issue?

@sergev
Copy link
Owner

sergev commented Mar 31, 2017

Can you please try running pic32prog with triple debug option? For example:
pic32prog -D -D -D

It will show a trace of data exchange between pickit2 and pic32prog.

@mpavlica
Copy link
Author

Send a9 76
And thats all

@sergev
Copy link
Owner

sergev commented Mar 31, 2017

No reply from pic32prog. Probably something is wrong with USB driver or access permissions. Try "sudo pic32prog -D -D -D".

@mpavlica
Copy link
Author

I am using Win7

@sergev
Copy link
Owner

sergev commented Apr 1, 2017

Try to run pic32prog as administrator. I mean, create a bat file, right click on it as choose "run as administrator".

@mpavlica
Copy link
Author

mpavlica commented Apr 1, 2017

Nope, still the same...
And this happens on couple Win7 computers...

@robert-rozee
Copy link
Contributor

robert-rozee commented Nov 10, 2017

the problem exists in version .220 of pic32prog, but NOT in version .193
see this discussion:
http://www.thebackshed.com/forum/forum_posts.asp?TID=9992&PN=1&TPN=2

what changes to USB support were made between .193 and .220? unfortunately i don't have a pickit2/3 available at the moment to do any testing myself.

cheers,
rob :-)

@openshwprojects
Copy link

The issue still persists and it happens to on multiple Windows machines with multiple PICKIT2 programmers.
Example console output:

Programmer for Microchip PIC32 microcontrollers, Version 2.0.220
    Copyright: (C) 2011-2015 Serge Vakulenko
      Adapter: PICkit2 Version 2.32.0
PICkit2: invalid status = 000a

No target found.

I have managed to narrow down the issue to the HID library used.

It seems that HID backend was changed between .193 and .220. To be exact, the old HID implementation (WDK hidsdi.h) was working and the new hid backend (hidapi library) is not working correctly.

I have just replaced the new hid backend with old one for newer revisions and they work as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants