Skip to main content
SShar.16
Visitor II
August 25, 2022
Question

STM32CubeIDE not creating middleware USB_Device.

  • August 25, 2022
  • 1 reply
  • 1477 views

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.

This topic has been closed for replies.

1 reply

Ghofrane GSOURI
Technical Moderator
August 25, 2022

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.