Skip to main content
Explorer
June 1, 2025
Solved

CubeMX generates code that compiles with error : usbd_cdc_if.h: No such file or directory

  • June 1, 2025
  • 1 reply
  • 220 views

Hello. 

I configured the USB port on CubeMX and the generated code compiles with error 

usbd_cdc_if.h: No such file or directory

I seem to only google arduino references to this file ??

Any clues gratefully accepted.

    This topic has been closed for replies.
    Best answer by PMOOD.1

    Followed the steps on this thread and it worked !

    https://deepbluembedded.com/stm32-usb-cdc-virtual-com-port-vcp-examples/

    If you miss a step it wont work. LOL.

    1 reply

    PMOOD.1AuthorAnswer
    Explorer
    June 1, 2025

    Followed the steps on this thread and it worked !

    https://deepbluembedded.com/stm32-usb-cdc-virtual-com-port-vcp-examples/

    If you miss a step it wont work. LOL.