Skip to main content
Oliver Sedlacek
Senior
January 23, 2024
Solved

USB CDC example for STM32F072 (Disco board)

  • January 23, 2024
  • 4 replies
  • 1656 views

I bought an STM32F072 disco board specifically to develop a USB CDC application, but I can't now find an example or demo in STM32CubeMX V6.10. I found this thread https://community.st.com/t5/stm32-mcus-products/stm32f070-usb-cdc-example/m-p/457994#M150836 but has this dropped out of Cube 6.10?

This topic has been closed for replies.

4 replies

Oliver Sedlacek
Senior
January 23, 2024

Thanks, just what I was looking for. Sadly it doesn't compile.....

The IAR IDE wont even open some of the files, says it includes an invalid path. Maybe I can fix that.

Update, the folders for the Cube drivers I downloaded from github were all empty, no idea why. I had to download them more or less separately and then patch the include paths to point to where I'd put them. It now compiles!

Oliver Sedlacek
Senior
January 23, 2024

God these examples are so frustrating! They look CubeMX generated but don't include the CubeMX file so they are almost impossible to modify. I can't even determine the pins used without reverse engineering the C source.