2025-11-19 3:32 AM
Hi
When I migrated by project to ST Cube IDE v2 this morning, my CM4 project would not link. I had to right-click the project and "convert to C++" (even though I had been using C++ for months with previous versions).
Using a Nucleo STM32H755 as a target (dual core), my project is configured as follows:
Steps Taken
Upgrade the IDE from v1.19 to 2.0
Install latest Cube MX
Open my workspace, and chose to "migrate" when prompted
Double click the .ioc file, fix an issue (related to CAN which I am not using) and re-generate the code
Return to the IDE, and try to clean and build the CM4 project. I get linker errors.
Resolution
Right-click the CM4 project and select "Convert to C++". (In v.19 the only available option was "Convert to C")
Clean and build.
Maybe this is a bug in the project migration process? Could it be specific to dual-core, where only the CM was configured for C++?
Cheers
Nick Outram
2025-11-19 3:35 AM - edited 2025-11-19 3:38 AM
Hello @NickO
I'm currently checking this. I will get back to you asap.
I would appreciate it if you could share your project before migration to STM32CubeIDE 2.0.0 , so that I can attempt to reproduce the issue.
THX
Ghofrane
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.
2025-11-19 3:44 AM
Let me check - I might have one I can share.
2025-11-19 3:51 AM
When I click "Generate Code" in Cube MX, it displays a dialog (see attached) which indicates this is a C project.
It says "Project Language : C"
2025-11-19 4:42 AM
Hello @NickO
Thank you for your valuable contribution.
Issue has been escalated to dev team for further investigation under internal ticket number 222113
I will keep you posted with updates.
THX
Ghofrane
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.