Question
STM32CubeMx removes all files from folder during regeneration when Toolchain changed
Posted on July 04, 2018 at 14:05

null
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.0

null