PICkit 2 again with HPS stack

Hans Petter Selasky hselasky at c2i.net
Fri Oct 12 10:11:40 PDT 2007


On Friday 12 October 2007, Xiaofan Chen wrote:
> I have updated the kernel and the new HPD stack and now
> PICkit 2 is again not working. I have updated the firmware
> based on the newly released Microchip stack and I thought
> I solved the data toggle problem by changing a line as
> suggested by Leo Bodnar.
> http://forum.microchip.com/tm.aspx?m=275422&mpage=2
>
> Apparent there is still a problem with the clear feature
> request. Enclosed is the running log. Since the file ugen.c
> is now changed, I dare not to apply the old patches provided
> by Hans.
>

> Receiving PICkit VERSION information using interrupt transfer.
> USB error: error reading from interrupt endpoint /dev/ugen0.1:
> Resource temporarily unavailable
> Fatal error> USB read did not return 64 bytes
>

Resource temporarily unavailable maps to EAGAIN according to "man errno". From 
what I can see from the log you have provided this means that the "msleep()" 
call in "ugenread" timed out.

What timeout have you programmed in your PICkit ?

Can you set the debugging value to 15 using the PICkit ?

Alternativly:

sysctl hw.usb.debug=15

--HPS


More information about the freebsd-usb mailing list