Skip to content

Host semi-recognizes (but not enough) bootloader USB device #74

Open
@jeffpc

Description

@jeffpc

(Hopefully this is the right place to file this.)

I just got a TinyFPGA-BX, put the thru-hole headers on it, and connected it to my FreeBSD 13.2 desktop. The power LED turns on, the boot LED starts blinking, but the FreeBSD kernel doesn't like what it sees (see syslog copy & paste below). From my very limited knowledge of USB, it looks like mid-way through USB device setup, the device (IOW, the bootloader on the BX) refuses to or times out during the "set address" portion of initialization. The host or device disconnects and reconnects, and then the whole thing happens again.

Because the device isn't fully initialized, the kernel doesn't let userspace applications use it.

Probing the SPI pins during power on, I see the serial clock and data moving between the SPI flash and FPGA.

Sep 23 10:22:46 satis kernel: usb_alloc_device: set address 3 failed (USB_ERR_STALLED, ignored)
Sep 23 10:22:48 satis kernel: usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_STALLED
Sep 23 10:22:48 satis kernel: usbd_req_re_enumerate: addr=3, set address failed! (USB_ERR_STALLED, ignored)
Sep 23 10:22:50 satis kernel: usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_STALLED
Sep 23 10:22:51 satis kernel: usbd_req_re_enumerate: addr=3, set address failed! (USB_ERR_STALLED, ignored)
Sep 23 10:22:53 satis kernel: usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_STALLED
Sep 23 10:22:53 satis kernel: usbd_req_re_enumerate: addr=3, set address failed! (USB_ERR_STALLED, ignored)
Sep 23 10:22:55 satis kernel: usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_STALLED
Sep 23 10:22:56 satis kernel: usbd_req_re_enumerate: addr=3, set address failed! (USB_ERR_STALLED, ignored)
Sep 23 10:22:57 satis kernel: usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_STALLED
Sep 23 10:22:57 satis kernel: ugen2.3: <Unknown > at usbus2 (disconnected)
Sep 23 10:22:57 satis kernel: uhub_reattach_port: could not allocate new device

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions