Skip to main content
SSavi.1
Associate II
October 24, 2021
Solved

Hi! I'm trying to build a project with rcc_getclocksfreq function. Linker return error L6218e: undefined symbol. Where is my error? keil uvision 5.36 STM32F407VG

..

This topic has been closed for replies.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
October 24, 2021

Include .H files do NOT bring in library code, you need to add the actual library .C source files into the project tree.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..

7 replies

TDK
October 24, 2021
"If you feel a post has answered your question, please click ""Accept as Solution""."
SSavi.1
SSavi.1Author
Associate II
October 25, 2021

Thank you

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
October 24, 2021

Include .H files do NOT bring in library code, you need to add the actual library .C source files into the project tree.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
SSavi.1
SSavi.1Author
Associate II
October 25, 2021

Thank you, I'll try

ST Technical Moderator
October 28, 2021

Hello @SSavi.1​ ,

The "Undefined symbol" error means that your application does not include object, source or libraries including this function.

Make sure that your project contains all the required library source files.

As advised by @TDK​ , you can take a working example and check configuration and implementation, then compare the code/functions with yours and make updates according to your needs.

Please, keep us informed about your progress on this issue, and close this thread by choosing "Select as Best" if it's resolved.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
ST Technical Moderator
November 4, 2021

Hi @SSavi.1​ ,

Were you able to resolve the issue ?

Please share your progress or resolution with the community here, so that more members can benefit from this discussion.

Thanks

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
SSavi.1
SSavi.1Author
Associate II
November 5, 2021

Hello

Sorry for being late. I solved the problem quickly. Thanks to Tesla DeLorean and his advice:

"Include .H files do NOT bring in library code, you need to add the actual library .C source files into the project tree."