Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃[BUG] USB Device not being recognised by host #99

Open
greateggsgreg opened this issue Sep 5, 2023 · 0 comments
Open

馃[BUG] USB Device not being recognised by host #99

greateggsgreg opened this issue Sep 5, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@greateggsgreg
Copy link

Describe the bug you encountered:

The examples/usb_device example does not present as a USB device to my MacOS host.

What did you expect to happen instead?

I expected it to be enumerated, show up as cafe:0000 in lsusb, and cause a mouse wiggle every 0.5s.

What actually happened in your case?

No device is enumerated. With my logic analyser I can see a regular SOF frames every 1 millisecond, and a reset every second - suggesting the circuit is physically valid, and the firmware is running on device.

image

https://github.com/sekigon-gonnoc/Pico-PIO-USB/blob/main/src/pio_usb_device.c#L368

The reset suggests to me the Pico does not have an accurate reading of the GPIO pins as it is reading the pair as low, but oddly is able to drive them to reset the connection.

Additional information

I have the Pico wired up as:
GPIO 0 -> 1.5 k惟 pull up to 3.3v -> D+
GPIO 1 -> D-
Pico GND -> USB GND

I have tried this with another Pico just to sanity check, as well as confirmed the version of Pico-SDK is contemporary with the examples commit date.

Any guidance you can provide to debug further would be appreciated.


@greateggsgreg greateggsgreg added the bug Something isn't working label Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant