Skip to main content
John Smith
Associate II
July 4, 2018
Question

STM32CubeMx removes all files from folder during regeneration when Toolchain changed

  • July 4, 2018
  • 2 replies
  • 630 views
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
    This topic has been closed for replies.

    2 replies

    ST Technical Moderator
    July 4, 2018
    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.

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    Houda GHABRI
    ST Employee
    July 5, 2018
    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