Skip to main content
Lukasz Przenioslo
Associate III
October 19, 2015
Question

OpenStm32 project stopped working after Cube update

  • October 19, 2015
  • 3 replies
  • 628 views
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.
    This topic has been closed for replies.

    3 replies

    Nickname5522_O
    Visitor II
    October 19, 2015
    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-
    Andrei Chichak
    Lead
    October 19, 2015
    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.
    Lukasz Przenioslo
    Associate III
    October 20, 2015
    Posted on October 20, 2015 at 09:28

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