cancel
Showing results for 
Search instead for 
Did you mean: 

Duplicate system_stm32g0xx.c file after regenerating

CTapp.1
Senior II

I've got a project that has the following files in the tree view:

CTapp1_1-1745333196183.png

All is well if I clean and build, but if I open the .ioc and "Generate Code", the tree changes to:

CTapp1_2-1745333269644.png

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.

10 REPLIES 10
CTapp.1
Senior II

@Ghofrane GSOURI

I have created a new workspace and recreated the project from the .ioc file, and it looks like everything is back to normal.

I guess that means something in the workspace's metadata was not valid?