STM32CubeIDE does not retain user code in FreeRTOS tasks when regenerating with Project Manager Generated Files change
In STM32CubeIDE V1.4.2, if the CubeMX Project Manager has the "Generate peripheral initialization as a pair of '.c/.h' files per peripheral" setting enabled after the project had been built with it previously disabled, when the project code is re-generated, the existing user code in the regenerated FreeRTOS tasks is deleted and replaced with the default code. The expectation is that the user code in those tasks would have been retained.
This problem also seems to occur from other changes by CubeMX that result in the task code being re-generated (i.e. renaming the task).
