2024-08-24 05:11 AM - edited 2024-08-24 09:26 AM
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.
Solved! Go to Solution.
2024-09-01 04:45 AM
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.
2024-08-28 06:40 AM
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.
2024-09-01 04:45 AM
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.