cancel
Showing results for 
Search instead for 
Did you mean: 

CubeIDE issue with G473 and USB Device CDC

zeboss49
Associate III

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

2 REPLIES 2
FBL
ST Employee

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.

zeboss49
Associate III

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.