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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Usb device #199

Closed
wants to merge 18 commits into from
Closed

WIP: Usb device #199

wants to merge 18 commits into from

Conversation

dzervas
Copy link

@dzervas dzervas commented Aug 7, 2020

This is a rebase of the work that @japaric did, with the test that was suggested on #144.

Problem is that I can't get it to work, I'm getting on dmesg:

[  +0.306298] usb 2-2: new full-speed USB device number 123 using xhci_hcd
[ +10.536670] usb 2-2: device descriptor read/all, error -110

I think that the problem is that the driver never responds to the OS and I don't know how to fix that. I'd admire some help or at least some pointers, as tockos & Adafruit's TinyUSB both use different RTOSes

@dzervas
Copy link
Author

dzervas commented Aug 7, 2020

Even after using the following patch on /Cargo.toml as suggested in the original MR, it doesn't work...

[patch.crates-io.usb-device]
git = "https://github.com/jonas-schievink/usb-device.git"
branch = "inhibit-setaddr-resp"

@drahnr
Copy link

drahnr commented Sep 10, 2020

Is there any further planned work on this?

@dzervas
Copy link
Author

dzervas commented Sep 11, 2020

I gave up, I really can't figure how this can be done. I've tried replicating the USB stack of tinyusb (adafruit implementation), tock os, mbed, upstream nordic, I just can't figure it out. The USB loops in the suspend state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants