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

usb_cdcacm example on STM32F303RD not working #223

Open
arendwierks opened this issue Jan 26, 2021 · 2 comments
Open

usb_cdcacm example on STM32F303RD not working #223

arendwierks opened this issue Jan 26, 2021 · 2 comments

Comments

@arendwierks
Copy link

If I upload the code to my STM32F303RDT6 board the USB is not working. Windows returns an error, and the usb device is not recognized in device manager.
When I create a project via STM32Cube IDE the usb cdc works fine, so I believe something is wrong/missing in this driver.

@manuelbl
Copy link

The STM32 F3 series uses two different memory organizations for USB buffers. For this series, libopencm3 only supports one of them, and it's not the one used in your MCU. So I'm afraid the USB stack does not work on your board.

Also see this comment:
https://github.com/libopencm3/libopencm3/blob/master/include/libopencm3/stm32/common/st_usbfs_v1.h#L26

The mentioned MCUs use an implementation that is more or less the st_usbfs_v2 implementation. However, the current libopencm3 always uses the st_usbfs_v1 implementation for the F3 series.

If you want to modify the library, have a look at issue libopencm3/libopencm3#841.

@arendwierks
Copy link
Author

Hi Manuel,
Thanks for the help, I didn't find Gussy's issue yesterday, but I will try that.

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

No branches or pull requests

2 participants