2022-07-04 12:36 AM
I created and developed a project for more than 4 years, and changes in the project have always forced us to migrate to newer versions of CubeMX and also newer software packages. The project is for an STM32F407VGT6 microcontroller. The last stable version was with CubeMX 6.2.1 and software package 1.26.2. Now when I try to migrate to CubeMX 6.5.0 software pack 1.27.0, after clicking generate, CubeMX deletes the main.c file from the project. Restoring the backup main.c file is not a good idea, since the changes are not made in the older file. The main.c file is generated when the project is made from scratch, but with migrated project, it is deleted.
2022-07-04 08:33 AM
What we do:
Paul
2022-07-04 08:15 PM
Thank you for answering Paul.
Actually, I was repotting a bug, and not concerned with my self-written code, since I can copy it from an older version. The problem is that I wanted to add some peripherals to the code, and now the cube doesn't make main.c file. So if I do it your way, I have to copy-paste initialization and project settings and all that stuff as well. I realized that it's more efficient to make another project and copy-paste the custom code again.