From owner-freebsd-usb@FreeBSD.ORG Fri Oct 12 17:11:40 2007 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5CB5016A469 for ; Fri, 12 Oct 2007 17:11:40 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe11.swipnet.se [212.247.155.65]) by mx1.freebsd.org (Postfix) with ESMTP id BA7B813C46B for ; Fri, 12 Oct 2007 17:11:39 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [85.19.218.45] (account mc467741@c2i.net [85.19.218.45] verified) by mailfe11.swip.net (CommuniGate Pro SMTP 5.1.10) with ESMTPA id 479122377; Fri, 12 Oct 2007 19:11:38 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 12 Oct 2007 19:12:02 +0200 User-Agent: KMail/1.9.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710121912.03585.hselasky@c2i.net> Cc: Subject: Re: PICkit 2 again with HPS stack X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Oct 2007 17:11:40 -0000 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