cancel
Showing results for 
Search instead for 
Did you mean: 

OpenStm32 project stopped working after Cube update

Posted on October 19, 2015 at 15:46

Hello there,

I have updated Cube MX to the latest version. I had a project imported (openSTM32) from some older cube version. Now the project doesnt compile because it states that the symbol added (it wasnt there before) is invalid:

__weak=__attribute__((weak))

If I remove the symbol the code compiled but doesnt work anymore. Now I cannot update code using CubeMx because the eclipse project will get corrupted. I really need help on this, I would apreciate all! Ps: Even when in CubeMx I click ''continue'' instead of ''migrate'' when opening the project, it gets corrupted at some point anyways.
3 REPLIES 3
Posted on October 19, 2015 at 19:03

Hi Bremen,

Could you precise in which file you have found mentioned line of code?

Thank you 🙂

-Shahrzad-
Posted on October 19, 2015 at 22:15

Very reproducible. It seems to be in the project file and shows up in the GCC defines panel in Eclipse.

If you create a new project in CubeMX and import it into Eclipse, you can generate the problem yourself in just a few minutes.
Posted on October 20, 2015 at 09:28

The line of code appears as user define in eclipse project settings.