Skip to main content
Associate III
December 7, 2024
Solved

CubeIDE issue with G473 and USB Device CDC

  • December 7, 2024
  • 2 replies
  • 1261 views

Hello,

I've found an issue in STM32CubeIDE1.17.0.

When creating a project with USB Device used as a CDC Class and FreeRTOS an include is missing in app_freertos.c:

#include "usb_device.h"

The project runs properly, but a warning is issued at compile time:

implicit declaration of function 'MX_USB_Device_Init' [-Wimplicit-function-declaration] app_freertos.c /STM32G473CCU_FAN_CONTROLLER/Core/Src line 117 C/C++ Problem

As far as I remember, this issue was present in previous versions of STM32CubeIDE.

On the other side I don't remember having encountered this issue when using USB Host MSC class with FreeRTOS in projects targetting the STM32F429

Best answer by FBL

Hi @zeboss49 

Thank you for the clarification! An internal ticket is submitted 198619 to dedicated team to add the missing include.

2 replies

Technical Moderator
December 9, 2024

Hi @zeboss49 

I couldn't reproduce on my end. Would you attach IOC file ?

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.Best regards,FBL
zeboss49Author
Associate III
December 9, 2024

Hello,

please,find as attachments both the ioc file and the generated app_freertos.c file.

The missing include is added in the user code section.

 

FBLBest answer
Technical Moderator
December 12, 2024

Hi @zeboss49 

Thank you for the clarification! An internal ticket is submitted 198619 to dedicated team to add the missing include.

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.Best regards,FBL
zeboss49Author
Associate III
December 15, 2024

Hello,

I'm sorry for the late accept as solution.

I missed your answer.