USB on STM32

Johannes Hutter

Hello guys,

I have trouble getting the usb/cdc_acm sample running on the nucleo_f411re. During the build I get errors of a couple of undeclared macros. For example:

 error: ‘ST_STM32_OTGFS_50000000_NUM_BIDIR_ENDPOINTS’ undeclared here (not in a function)

Is it possible that there is part of the stm HAL needed for USB missing?

Best regards,



Johannes Hutter | Embedded Software Engineer
Mail: johannes@...

Workaround GmbH (ProGlove)
Friedenstr. 4 | 81671 München

Managing Director: Thomas Kirchner
HRB: 216605 | AG München
USt.-IdNr.: DE298859320

Join to automatically receive all group messages.