Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Oct 2007 17:40:50 +0800
From:      "Xiaofan Chen" <xiaofanc@gmail.com>
To:        "Hans Petter Selasky" <hselasky@c2i.net>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: PICDEM FS USB Bootloader under FreeBSD
Message-ID:  <a276da400710130240h134ddd95p6c34539b2843d0ab@mail.gmail.com>
In-Reply-To: <200710121919.36175.hselasky@c2i.net>
References:  <a276da400710120806k636347eew876ee0fb3fc17ab3@mail.gmail.com> <200710121919.36175.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 10/13/07, Hans Petter Selasky <hselasky@c2i.net> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a276da400710130240h134ddd95p6c34539b2843d0ab>