I have the same issue with Cube v4.26.1 and F3 HAL v1.09.0. Src folder gets entirely deleted when regenerating, including any user files. My only workaround was to switch to advanced and restructure the project using the generated 'Core' folder. Not ...