cancel
Showing results for 
Search instead for 
Did you mean: 

Generated compilation command line doesn't include all paths from properties

JBernard
Associate II

Hello, I'm having trouble setting up the USB Device middleware on STM32CubeIDE, latest (1.15.1).

The usb_device.h file generated by the IDE (in USB_DEVICE/App) is not found when compiling the Core/Src/system_stm32h7xx.c file.

Looking at the command line, it appears the include for USB_Device/App is not present, despite being added as expected by the IDE to the properties.

Would anyone know why that would be, and what can be done about that ?

Thank you.

PS: note I have tried cleaning the project to get non-incremental compilation, to no avail.

ameMIg3.png  

Ht18WoF.png

VKtL4B9.png

1 ACCEPTED SOLUTION

Accepted Solutions
JBernard
Associate II

The problem was that eclipse (and its offspring MXCubeIDE) allow configuring properties override for specific folders. Once you add any custom property to a folder, parent folders' property changes don't get applied to that folder. Here a change was applied to the Core folder (C++17), so since the GUI configurator adds its paths to the project but the files that look for them are in Core, compilation would fail. Fix was to reset all properties to default for Core & configure only the global (project) properties.

View solution in original post

2 REPLIES 2
FBL
ST Employee

Hi @JBernard 

Did you try to update latest version of CubeIDE ? Could you share MX ioc file to reproduce ?

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.

JBernard
Associate II

The problem was that eclipse (and its offspring MXCubeIDE) allow configuring properties override for specific folders. Once you add any custom property to a folder, parent folders' property changes don't get applied to that folder. Here a change was applied to the Core folder (C++17), so since the GUI configurator adds its paths to the project but the files that look for them are in Core, compilation would fail. Fix was to reset all properties to default for Core & configure only the global (project) properties.