2025-04-22 7:50 AM
I've got a project that has the following files in the tree view:
All is well if I clean and build, but if I open the .ioc and "Generate Code", the tree changes to:
and the project then fails to build due to a duplicate system_stm32g0xx.c file.
Why is this getting added and how do I stop it?
I am using STM32CubeIDE V1.18.1.
2025-04-22 7:55 AM
Hello @CTapp.1
First let me thank you for posting.
Could you please provide your IOC.
I 'will be waiting for your feedback.
THX
Ghofrane
2025-04-22 7:59 AM
2025-04-22 8:35 AM
Hello @CTapp.1
I used your IOC to generate the code multiple times and each time the build finished without any errors or warnings, and your project architecture did not change.
Let's try to close STM32CubeIDE and STM32CubeMX and go under C:\Users\XXXXXX then delete .stm32cubeide and .stm32cubemx.
THX
Ghofrane
2025-04-22 9:07 AM
Thanks - I've tried that, but the results are the same.
2025-04-22 9:32 AM
I've just uninstalled and reinstalled CubeIDE (V.1.18.1), but that has also made no difference.