PICDEM FS USB Bootloader under FreeBSD
Xiaofan Chen
xiaofanc at gmail.com
Sat Oct 13 02:40:51 PDT 2007
On 10/13/07, Hans Petter Selasky <hselasky at 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
More information about the freebsd-usb
mailing list