STM32CubeMX code re-generation for SW4STM32 creates duplicated file links in .project
When code is regenerated from STM32cubeMX (4.8.0 & 4.9.0) for SW4STM32 toolchain, eclipse file link entries in .project become duplicated at the end of the file instead of replaced or updated. This does not yet cause a problem since eclipse appears to handle it by giving priority to the latter entries but if files have been removed in later configurations, the links in the project will still exists and be compiled. The workaround is to be sure to use version control, look at the changes to the link entries and manuallydelete the old file entries in the generated .project files to see what the differences are.
I have tried this on 2 different processors, the STM32F401RDTx and also with the default configuration for the STM32F429I-DISCO board.Reproduction:Start STM32CubeMX app (4.8.0 or 4.9.0)New ProjectChoose the STM32F429I-DISCOChoose project->Generate CodeProjectTab - project name is testProjectTab - ToolChain / IDE is SW4STM32Code Generator Tab - Select Copy all used libraries into project folderCode Generator Tab - Select Generate peripheral initialization as a pair of '.c/.h' files per IPCode Generator Tab - Select Keep user code when regeneratingCode Generator Tab - Select Delete previously generated files when not re-generatedChoose OK. Close STM32CubeMX. Observe and backup the file /test/test/SW4STM32/test Configuration/.projectOpen STM32CubeMX app.Open the test.ioc projectChoose project->generate code.Observe additions to .project file.Windows 7 x64. #stm32cubemx-eclipse-sw4stm32