Skip to main content
Graduate
March 25, 2024
Solved

static declaration of 'MX_FDCAN1_Init' follows non-static declaration - NO IT DOESNT!

  • March 25, 2024
  • 1 reply
  • 3018 views

I got an error, that is actually not true (see pictures). I just used cubemx to change one pin... And now this.

 

    This topic has been closed for replies.
    Best answer by Tobe

    I found the issue:

    I searched for that func in my project folder, but since the problem was in a linked file, i could not find the problem. After scrolling through the problems list, i found where it was. And after a further look, it just said to me where it was to be found. It was declared as extern void *** there, so that got a bit confusing.

    Got a bit mad, as it looked the compiler was lying.


    Edit:
    Dang! I could have found it with right mouse click -> declarations.

    1 reply

    Technical Moderator
    March 25, 2024

    Hello @Tobe 

    Could you please share your ioc file and which CubeMx version you're using?

    Thanks

    TobeAuthorAnswer
    Graduate
    March 25, 2024

    I found the issue:

    I searched for that func in my project folder, but since the problem was in a linked file, i could not find the problem. After scrolling through the problems list, i found where it was. And after a further look, it just said to me where it was to be found. It was declared as extern void *** there, so that got a bit confusing.

    Got a bit mad, as it looked the compiler was lying.


    Edit:
    Dang! I could have found it with right mouse click -> declarations.