Skip to main content
Javier1
Principal
August 9, 2022
Solved

CubeMX doesnt generate MX_USB_DEVICE_Init function when FreeRTOS+USB CDC (Device) are selected together

  • August 9, 2022
  • 1 reply
  • 4251 views

0693W00000QNJXEQA5.pngI am using recently updated CUBEMX version 6.6.1

As soon as i enable FreeRTOS cmss_v2 in cubeMX the USB init disappears...

0693W00000QNJYCQA5.png 

 MX_USB_DEVICE_Init is nowhere to be found........

This topic has been closed for replies.
Best answer by Javier1

0693W00000QNPf9QAH.png 

there is not USB_DEVICE folder generated in my project

I realiced the USB files are located directly under src/ directory now.

The directories where cubeMX puts the usb files have changed?

MX_USB_DEVICE_Init needs to be put manually in main.c .

/* USER CODE BEGIN 2 */
 
 MX_USB_DEVICE_Init();
 
 /* USER CODE END 2 */

1 reply

Javier1
Javier1Author
Principal
August 10, 2022

No clue of what is going on yet....

this guy pulls it out without problem https://www.youtube.com/watch?v=QZaC2Qf5bJI and i believe we do the same steps.

i tried with CMSIS v1 ... same issue

hit me up in https://www.linkedin.com/in/javiermuñoz/
Javier1
Javier1Author
Principal
August 10, 2022

tried the same thing with cubeMX 6.3.0, same issue.

hit me up in https://www.linkedin.com/in/javiermuñoz/