Re: PICkit 2 again with HPS stack

2008-04-25 Thread Xiaofan Chen
On Fri, Apr 25, 2008 at 7:34 AM, Xiaofan Chen [EMAIL PROTECTED] wrote: On Thu, Apr 24, 2008 at 11:57 PM, Hans Petter Selasky [EMAIL PROTECTED] wrote: The problem should at least be fixed in revision 711. The problem has existed for a while after I made some changes to the

Re: PICkit 2 again with HPS stack

2008-04-24 Thread Xiaofan Chen
On Thu, Apr 24, 2008 at 10:59 PM, Xiaofan Chen [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] /var/crash]# ls -la total 508352 drwxr-x--- 2 root wheel512 Apr 24 22:07 . drwxr-xr-x 25 root wheel512 Apr 25 06:07 .. -rw-r--r-- 1 root wheel 2 Apr 24 22:07 bounds

Re: PICkit 2 again with HPS stack

2008-04-24 Thread Xiaofan Chen
On Thu, Apr 24, 2008 at 11:21 PM, Hans Petter Selasky [EMAIL PROTECTED] wrote: I have fixed some issues where the Giant lock was not locked when calling into the USB stack recently. What version are you at? A stack backtrace from the panic would also be nice. Make sure that everything is

Re: PICkit 2 again with HPS stack

2008-04-24 Thread Hans Petter Selasky
On Thursday 24 April 2008, Xiaofan Chen wrote: On Tue, Oct 16, 2007 at 8:42 PM, Xiaofan Chen [EMAIL PROTECTED] wrote: 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

Re: PICkit 2 again with HPS stack

2007-10-16 Thread Xiaofan Chen
On 10/16/07, Hans Petter Selasky [EMAIL PROTECTED] wrote: On Saturday 13 October 2007, Xiaofan Chen wrote: On 10/13/07, Hans Petter Selasky [EMAIL PROTECTED] wrote: Resource temporarily unavailable maps to EAGAIN according to man errno. From what I can see from the log you have

Re: PICkit 2 again with HPS stack

2007-10-16 Thread Xiaofan Chen
On 10/17/07, Hans Petter Selasky [EMAIL PROTECTED] wrote: Thanks a lot. So it seems there is still a bug in the firmware. Maybe two. The first one caused the stall (why?). The second one is still related to dealing with clear stall feature reques I think that the clear-stall command will

Re: PICkit 2 again with HPS stack

2007-10-15 Thread Hans Petter Selasky
On Saturday 13 October 2007, Xiaofan Chen wrote: On 10/13/07, Hans Petter Selasky [EMAIL PROTECTED] 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.

Re: PICkit 2 again with HPS stack

2007-10-13 Thread Xiaofan Chen
On 10/13/07, Hans Petter Selasky [EMAIL PROTECTED] 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

Re: PICkit 2 again with HPS stack

2007-10-13 Thread Hans Petter Selasky
On Saturday 13 October 2007, Xiaofan Chen wrote: On 10/13/07, Hans Petter Selasky [EMAIL PROTECTED] 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.

Re: PICkit 2 again with HPS stack

2007-10-13 Thread Xiaofan Chen
On 10/13/07, Hans Petter Selasky [EMAIL PROTECTED] wrote: What timeout have you programmed in your PICkit ? It is 1000ms. I change it to 1ms but this does not help. Do you see that the code is waiting 10 seconds for the timeout ? I think so. The program stops quite a while before

Re: PICkit 2 again with HPS stack

2007-10-12 Thread Hans Petter Selasky
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