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

stm32: WIP adding support for USB device VCP+MSC+HID mode #4751

Merged
merged 3 commits into from Sep 11, 2019

Conversation

dpgeorge
Copy link
Member

@dpgeorge dpgeorge commented May 6, 2019

This adds a new USB device mode to the stm32 port: pyb.usb_mode('VCP+MSC+HID')

I thought this would be an easy addition given the recent improvements to configuring USB devices, but it doesn't work, at least on my Linux system it crashes the Kernel's USB driver.

It will only run on a board with a USB peripheral with enough (6) endpoints. Eg the USB HS peripheral on an STM32F7xx.

@yellowway
Copy link

thanks a lot!

@dpgeorge
Copy link
Member Author

dpgeorge commented Jul 5, 2019

I fixed this and it now works. It supports VCP+MSC+HID, 2xVCP+MSC+HID and 3xVCP+MSC+HID

@dpgeorge
Copy link
Member Author

This was cleaned up and merged.

@dpgeorge dpgeorge merged commit cb84e22 into micropython:master Sep 11, 2019
@dpgeorge dpgeorge deleted the stm32-usb-vcp-msc-hid branch September 11, 2019 05:53
tannewt pushed a commit to tannewt/circuitpython that referenced this pull request May 13, 2021
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.

None yet

2 participants