2018-07-04 05:05 AM
DAHMEN.IMEN
‌SIRY.Marc.001
‌STM32CubeMx removes all files from folder during regeneration when Toolchain changed
Steps to reproduce.
Create new STM32CubeMx project and generate sources as usual:- Open STM32CubeMx -> New project -> Select MCU (STM32F030K6 in my case)- Project -> Settings -> _some_project_name_entered_ Note: EWARM toolchain stays as it was by default- Project -> Generate code- Close STM32CubeMx- Open STM32CubeMx project from last saved folder- Make some changes in pinout- Project -> Generate codeTo this moment all works fine, but when I want to change toolchain to
TrueSTUDIO and generate project to same folder all files in folder are deletedand I losts all my changes in main.c and other files:- Project -> Settings -> Toolchain: TrueSTUDIO (Generate under root unchecked)- Ok button press and I get message ''This Project File (cube_regen_test.ioc) already exist in chosen folder. Overwrite this file by this new Project?''.- Ok button pressed on Overwrite confirm messagebox- Project -> Generate codeExpected behaviour on regeneration:
- All user file stays untouched- Cube generated files changed accordinly to new configuration and users code sections keepsSTM32CubeMx Version 4.26.0null2018-07-04 06:06 AM
Hello
smith.john
I rasied your issue internally for check and we come back to you as soon as possible.
With Regards,
Imen.
2018-07-05 05:32 AM
Hello
,Thanks for your feedback.
Issue will be resolved in next STM32CubeMX release (4.27.0).
Best regards,
Houda