From owner-freebsd-usb@FreeBSD.ORG Sat Oct 13 09:40:51 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 0D4C916A419 for ; Sat, 13 Oct 2007 09:40:51 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.182]) by mx1.freebsd.org (Postfix) with ESMTP id DE52313C45D for ; Sat, 13 Oct 2007 09:40:50 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so1319540waf for ; Sat, 13 Oct 2007 02:40:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=tt5uAgPbcg4blHFjw62pofOz+JnlMv4oUEu7Znt7QYY=; b=IKJ83TCm7QQzsDm+AHEQEsPPAyFZLkTrjORhtD8fhrQDHeuUJOAa5QV3bhpz4tGwOae9cJjGZh+eMHLWvazTqFPSgRRFo1PWu28AcZUMrdJSkPgIdMDAFLUW9EqCx4s7w3hduZjymV9APhAcTLelxcSNBez+9TB+jp02ZLLOuyc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EyYv4ma2Xppdo2LEgs4B6TLIXghybRuXXhk+jKCzl05VWpBl+whK+C2DVMZjsHQNUQlVvWxh7BCEiDLAC9m67BGplC9dmRK5lzvBcLQYc+bx6D9Kk7s1c+ipY37UgJjeYpbbWgs1rWSQqKzMVx/WqvlvzmPSB6/x6WFl+rYO5ug= Received: by 10.114.150.1 with SMTP id x1mr4563177wad.1192268450613; Sat, 13 Oct 2007 02:40:50 -0700 (PDT) Received: by 10.114.176.17 with HTTP; Sat, 13 Oct 2007 02:40:50 -0700 (PDT) Message-ID: Date: Sat, 13 Oct 2007 17:40:50 +0800 From: "Xiaofan Chen" To: "Hans Petter Selasky" In-Reply-To: <200710121919.36175.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200710121919.36175.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: PICDEM FS USB Bootloader under FreeBSD 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: Sat, 13 Oct 2007 09:40:51 -0000 On 10/13/07, Hans Petter Selasky wrote: > I think that the write STALLED. You can check this by turning on > debugging on the OHCI controller by: > > systctl hw.usb.ohci.debug=15 > > Replace "ohci" by "ehci" or "uhci" if you are using such controllers. Strange today reading seems to work. I will check other functionality later. This bootloader device uses bulk transfer. ===[mcuee] ~/Desktop/build/fsusb/fsusb-0.1.11-2 # sudo ./fsusb --read test3.hex usb_set_debug: Setting debugging level to 255 (on) Locating USB Microchip(tm) PICDEM-FS USB(tm) (vendor 0x04d8/product 0x000b) usb_os_find_busses: Found /dev/usb0 usb_os_find_busses: Found /dev/usb1 usb_os_find_busses: Found /dev/usb2 usb_os_find_devices: Found /dev/ugen0 on /dev/usb1 usb_control_msg: 128 6 512 0 0xbfbfe828 8 1000 usb_control_msg: 128 6 512 0 0x804d0e0 32 1000 Found USB PICDEM-FS USB as device '/dev/ugen0' on USB bus /dev/usb1 Communication established. Onboard firmware version is 1.0 Finished reading More info about the bootloader device: ===[mcuee] /usr/ports/sysutils/usbutil # sudo usbgen -f ugen0 -v -D Dumping all descriptors DEVICE descriptor: bLength=18 bDescriptorType=1 bcdUSB=2.00 bDeviceClass=0 bDeviceSubClass=0 bDeviceProtocol=0 bMaxPacketSize=8 idVendor=0x04d8 idProduct=0x000b bcdDevice=0 iManufacturer=0 iProduct=0 iSerialNumber=0 bNumConfigurations=1 Current configuration is number 1 CONFIGURATION descriptor index 0: bLength=9 bDescriptorType=2 wTotalLength=32 bNumInterface=1 bConfigurationValue=1 iConfiguration=0 bmAttributes=80 bMaxPower=100 mA INTERFACE descriptor index 0, alt index 0: bLength=9 bDescriptorType=4 bInterfaceNumber=0 bAlternateSetting=0 bNumEndpoints=2 bInterfaceClass=0 bInterfaceSubClass=0 bInterfaceProtocol=0 iInterface=0 ENDPOINT descriptor index 0: bLength=7 bDescriptorType=5 bEndpointAddress=1-out bmAttributes=2 wMaxPacketSize=64 bInterval=0 ENDPOINT descriptor index 1: bLength=7 bDescriptorType=5 bEndpointAddress=1-in bmAttributes=2 wMaxPacketSize=64 bInterval=0 > Do you have any USB protocol analyser by hand so that you can trace the USB > cable ? Not yet. I am only doing this as a USB hobbyist. Xiaofan