STM32CubeMX code generation duplicated driver files and main.c
Hi,
I have got a project configured successfully using STM32CubeMX code generation for STM32H5 MCU series. I noticed that the Src and Inc folders are dublicated under Core folder and under the project folder.
When I make any changes in my drivers configuration on CubeMX and regenerate the code, only the source folders (Src and Inc) under Core are updated, however the other dublicated source files are not.
My question is that why the source files are dublicated? This creates confusion in my project setup and unnecessary files included in my git repo.
Also there are two main.c files; one in the project folder and the other in Core folder.
I am wondering if there is some kind of settings I have to do under STM32CubeMX.
I also imported the configured project into STM32CubeIDE and I am not sure if the issue in the IDE or in the CubeMX
Kind Regards,
Hani
