Skip to main content
Tobe
Senior III
March 25, 2024
Solved

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

  • March 25, 2024
  • 1 reply
  • 3019 views

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

 

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

mƎALLEm
ST Technical Moderator
March 25, 2024

Hello @Tobe 

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

Thanks

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
Tobe
TobeAuthorBest answer
Senior III
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.