STM32CubeIDE 1.10.0 Migration Issue
Hi,
I am experiencing issues migrating projects from STM32CubeIDE 1.9.0 to 1.10.0. After performing the migration, a number of custom project .c/.h files are deleted from the project and filesystem, and some are completely replaced, deleting /*USER CODE*/ sections.
After installing the new application (help->check for updates) and restarting Windows 10 system I perform the following:
- Open project (STM32F469 based)
- Build project to confirm fine.
- Open .ioc file
- Select "Migrate" to update to STM32CubeMX 6.6.0
- Save .ioc to force code regeneration.
- Code generation completes but:
- All .h files are deleted from the Core/Inc directory (custom headers and generated headers for the peripherals adc.h, dma.h etc)
- All the custom .c files are deleted from the Core/Src directory
If I open the .ioc again and force another code generation, the peripheral .h are correctly regenerated (but as the files were previously deleted, all the /* USER CODE */ sections in these headers are gone).
I have tried rolling back, creating a new workspace directory and importing the project into the new clean directory but the result is the same (and repeatable).
I have tried a completely separate project for a STM32G0. In this case custom .c are deleted but not custom .h.
Our projects are structured with the project code separate from the workspace directory. After some experimenting, I have determined that if I directly copy the project code folder into a new workspace directory and perform the same process, the issue does not seem to occur.
Can anyone suggest what might be causing the issue or point to angle to investigate?
I would like to get to the bottom of it before committing to migrating all our projects (and avoid regenerating/restructuring projects as part of the migration).
Note sure if it is relevant but I have noticed that the file name format of the .mxproject has changed.
- In 1.9.0 it used absolute file name:
- 'D:/repo/RepoFolder/ProjectName/Core/Inc/gpio.h
- In 1.10.0 is has changed to relative with backslash:
- ..\Core\Inc\gpio.h
Thanks!
