cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable CFG_USB_INTERFACE_ENABLE in STM32CUBEMX?

NGama
Associate III

I am trying to make the make the thread command line application on my custom board that communicates through the usb. In the WPAN configuration in CubeMX there does not seem to be an option that turns on CFG_USB_INTERFACE_ENABLE. Does anyone know how to turn this on?

2 REPLIES 2
MAlbr.1
Associate II

I ran into this issue, I had to manually edit my .ioc project file. This is what my ioc diff looked like:

0693W000007ZIcQQAW.png

SMaes.1
Associate II

I have the same issue. Every time I generate code from cubeMX I have to manually set the CFG_USB_INTERFACE_ENABLE define in app_conf.h to 1

It seems that cube MX forgets to enable this define even when you configure use of CDC usb device in cubeMx.

If I add it manually to the ioc file like mentioned above, the IOC file is overwritting it again and removed the manually added defines.

Did anyone solved this annoying issue?