cancel
Showing results for 
Search instead for 
Did you mean: 

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

PMOOD.1
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
PMOOD.1
Associate II

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.

View solution in original post

1 REPLY 1
PMOOD.1
Associate II

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.