Skip to main content
Associate II
November 18, 2025
Solved

STM32CubeIDE 2.0 detached STM32CubeMX problem

  • November 18, 2025
  • 9 replies
  • 5280 views

Hello,

I tested the new STM32CubeIDE 2.0 today and was initially confused that CubeMX opened when I double-clicked on the *.ioc file. However, this is listed as a new feature in the release notes.


Unfortunately, this feature completely destroys my projects.
When the code is generated, these settings in the CubeIDE project change:
- Targeted Language changes from C++ to C
- Linked folders are deleted
- Configurations: DEBUG, SYSTEM added
- Linker file settings from own configurations deleted

Did I make a mistake in the settings? Why is the project changed so much?

Best regards,
Jens

Best answer by JensH

Hallo @Mahmoud Ben Romdhane ,

so am I right that everything I reported is confirmed and reported?

  1. Targeted language changes from C++ to C
  2. Linker file settings from own configurations deleted (because of switching from C++ to C)
  3. Configurations: DEBUG, SYSTEM added
  4. Variable linked folders are deleted

Best regards,

Jens

9 replies

Technical Moderator
November 18, 2025

Hello @JensH ,

 

First let me thank you for posting.

For more investigation, I suggest that you provide the initial STM32CubeIDE Project created with 1.19.0.

 

Thanks.

Mahmoud

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
JensHAuthor
Associate II
November 18, 2025

Hi Mahmoud,

I added the two projects.

One is generated with 1.19 and the other one is regenereated with 2.0.

 

Best regards

Jens

__Mohamed__Ayman__Dev
Associate II
November 18, 2025

You didn’t make a mistake — this is actually a regression in STM32CubeIDE 2.0.
The new feature where double-clicking the .ioc file opens CubeMX inside the IDE is causing CubeMX to overwrite several project settings during code generation.

Until ST releases a fix, the recommended workarounds are:

  1. Regenerate code manually
    Using Project → Generate Code instead of opening the .ioc file.

  2. Avoid editing the .ioc in IDE 2.0
    Or open the .ioc with external CubeMX (standalone).

  3. Back up the .project and .cproject files
    So they can be restored after regeneration.

Hopefully ST will address this in the next update.

And try to use any Version Control in the future for easy back up.

Best regards.

Ex- Long Term Intern at STMicroelectronics
JensHAuthor
Associate II
November 19, 2025

Hi Mohamed,

During development, I constantly change the *.ioc file.
I adjust peripheral frequencies or change GPIO configurations, for example.
Before using this workaround, I prefer to stay on version 1.19 and wait for the bug fix.

Best regards

Jens

Explorer
November 19, 2025

This is a big deal! 

I don't understand how something like this can happen?
Doesn't anyone test what happens to old projects?

MGogr.1
Senior
November 19, 2025

Thanks @JensH  for telling us about this feature. I was going to update my Cube IDE, but now I won't update until they fix this bug.

Technical Moderator
November 19, 2025

Hello @JensH @MGogr.1 @jd5 ,

 

I am currently investigation this issue and I will get back to you as soon as possible.

 

Thanks.

Mahmoud

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Technical Moderator
November 19, 2025

Hello @JensH @MGogr.1 @jd5 ,

 

Let me thank you for bringing the issue to our attention.

An internal ticket was submitted to the dedicated team (Internal Ticket Number: Ticket 222143 ).

I will let you know when the issue is fixed.

As workaround, you can point manually to the desired linker file:

MahmoudBenRomdhane_0-1763569388045.png

and convert the code to C++

MahmoudBenRomdhane_1-1763569526750.png

 

Thanks.

Mahmoud

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Visitor II
November 20, 2025

Hello Jens,

This isn’t a mistake on your side. In STM32CubeIDE 2.0, opening the *.ioc file automatically with CubeMX can overwrite project settings—switching C++ to C, deleting linked folders, adding new configurations, and removing custom linker files.

For now, the safest approach is either to avoid regenerating code from the .ioc file or use the standalone CubeMX. Many users have reported the same issue, so it seems to be a change in 2.0 rather than a misconfiguration.

Technical Moderator
November 24, 2025

Hello @JensH @Theodore-henry6 @jd5 @MGogr.1 

 

The issue is confirmed: [Linked Folders are deleted] and reported to the dedicated to the Dedicated Team.

I will let you know when the issue is fixed.

 

Thanks.

Mahmoud

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
JensHAuthorBest answer
Associate II
November 24, 2025

Hallo @Mahmoud Ben Romdhane ,

so am I right that everything I reported is confirmed and reported?

  1. Targeted language changes from C++ to C
  2. Linker file settings from own configurations deleted (because of switching from C++ to C)
  3. Configurations: DEBUG, SYSTEM added
  4. Variable linked folders are deleted

Best regards,

Jens

Robmar
Senior II
December 9, 2025

another STM MCU FU!  This is not a fix. Don't they test even the basic functions before releasing updated FGS!

Associate
December 17, 2025

There should really be an update in every type of documentation for this. I was just following the tutorial and the video from 5 years ago showed features I couldn't find. Including this rabbit hole I dove in to when I couldn't create a project with the graphical user interface in the IDE. Only to read the release notes for 2.0 afterward. Very frustrating!

Andrew Neil
Super User
December 17, 2025

While I agree it's bad that the documentation is out-of-date - especially with such a significant change - I don't think you can really complain about a 5 year old video not reflecting the latest version!

That's even older than v1.07.0 !

See this post for an up-to-date tutorial.

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Associate
December 17, 2025

And I will totally agree with that. But then why do they have links to 5 year old videos in their documentation?
I'm not sure how I got to the video this afternoon but I think it was through the videos for tutorials directly in CubeIDE.