PICkit 2 again with HPS stack

Hans Petter Selasky hselasky at c2i.net
Mon Oct 15 14:03:05 PDT 2007


On Saturday 13 October 2007, Xiaofan Chen wrote:
> On 10/13/07, Hans Petter Selasky <hselasky at c2i.net> wrote:
> > 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 ?
>
> It is 1000ms. I change it to 10000ms but this does not help.

Do you see this timeout ? Does the code actually wait 10 seconds ?

In the file "ugen.c" in the function "ugen_open_pipe_read()" you will find 
a "case UE_INTERRUPT:". Some lines further down you will find:

                  /* first transfer clears stall */
                  sce->read_stall = 1;

This you can set to "0". Then recompile and install the "ugen" module and/or 
kernel.

Does your USB hardware work now ?

--HPS


More information about the freebsd-usb mailing list