Cube IDE v2 migration of C++ and linker errors (with workaround)
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:
- CM4 is using C++, and using Free RTOS
- CM7 is using C, and only using the HAL
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
