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

1 ACCEPTED SOLUTION

Accepted Solutions

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.


I'm out of offce with limited access to my emails.
Happy New Year!

View solution in original post

4 REPLIES 4
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.


I'm out of offce with limited access to my emails.
Happy New Year!
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.

 

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.


I'm out of offce with limited access to my emails.
Happy New Year!

Hello,

I'm sorry for the late accept as solution.

I missed your answer.