cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE not creating middleware USB_Device.

SShar.16
Associate

I am not able to configure USB_Device mode (USB_Device not enabling permanently disabled how to enable USB_Device in middleware).

I want to select CDC in USB_Device.

please give me solution for the same ASAP.

1 REPLY 1
Ghofrane GSOURI
ST Employee

Good morning @SShar.16​ 

I used stm32cubeMX 6.6.1 and stm32cubeIDE 1.10.1 and Nucleo-F767ZI in order to show you how to configure USB _Device mode

  • First go to System Core ==> select RCC ==> click on High speed Clock and choose "BYPASS clock source "

0693W00000Stjn5QAB.png

  • Second go to "clock configuration " make sure that the input frequency is 8 MHZ

0693W00000StjmvQAB.png

  • Third go to "connectivity" and select USB_OTG_FS click on Mode and select "device only"

0693W00000StjneQAB.png

  • Then go to "middleware " click on "USB _DEVICE" click on Class FO FS IP and choose Communication Device Class

0693W00000StjpLQAR.png

  • finally go to "project manager " and increase the Heap size to 0x600 and generate your code

0693W00000StjrMQAR.png you will find bellow the cubeMX file please have a look

Ghofrane