cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMx removes all files from folder during regeneration when Toolchain changed

John Smith
Associate II
Posted on July 04, 2018 at 14:05

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 code

To 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 deleted

and 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 code

Expected behaviour on regeneration:

- All user file stays untouched

- Cube generated files changed accordinly to new configuration and users code

sections keeps

STM32CubeMx Version 4.26.00690X0000060CARQA2.png0690X0000060CBUQA2.png0690X0000060CBPQA2.png

null
2 REPLIES 2
Imen.D
ST Employee
Posted on July 04, 2018 at 15:06

Hello 

smith.john

 

I rasied your issue internally for check and we come back to you as soon as possible.

With Regards,

Imen.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Houda GHABRI
ST Employee
Posted on July 05, 2018 at 14:32

Hello 

,

Thanks for your feedback.

Issue will be resolved in next STM32CubeMX release (4.27.0).

Best regards,

Houda