Skip to content

Add usb otg fs example #1

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

Merged
merged 1 commit into from
Mar 19, 2022
Merged

Add usb otg fs example #1

merged 1 commit into from
Mar 19, 2022

Conversation

ant32
Copy link
Contributor

@ant32 ant32 commented Mar 19, 2022

I got the usb working on a NUCLEO-L4R5ZI

also needed to add stm32l4r5 to otg_fs feature list gauteh/stm32l4xx-hal#1

Commented about trying to get usb working here stm32-rs/stm32l4xx-hal#292

@gauteh gauteh merged commit 0818832 into gauteh:main Mar 19, 2022
@gauteh
Copy link
Owner

gauteh commented Mar 19, 2022

Nice! That looks good. Would maybe make sense to use ufmt or something to write over USB?

@gauteh
Copy link
Owner

gauteh commented Mar 19, 2022

Would be happy with adding the NUCLEO next to the swan and rename the repo to something more stm32l4r5-* agnostic.

@ant32
Copy link
Contributor Author

ant32 commented Mar 19, 2022

I copied the example from https://github.com/stm32-rs/stm32l4xx-hal/blob/master/examples/otg_fs_serial.rs and changed it a little to make it work

I'll look into ufmt

@ant32
Copy link
Contributor Author

ant32 commented Mar 21, 2022

Would be happy with adding the NUCLEO next to the swan and rename the repo to something more stm32l4r5-* agnostic.

It's probably good to just leave your examples dedicated to Swan. Pins, LEDs etc are different. People can find this repository when searching for l4r5 and then convert pins to match the Nucleo. I don't think people can get the Nucleo right now anyways.

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.

2 participants