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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-24 9:04 AM
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-24 12:32 PM
Include .H files do NOT bring in library code, you need to add the actual library .C source files into the project tree.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-24 12:04 PM
RCC_GetClocksFreq is not a HAL function.
https://github.com/STMicroelectronics/STM32CubeF4/search?q=RCC_GetClocksFreq
Looks to be a function in the discontinued standard peripheral library (SPL).
You would need to download the SPL files and add them to your project if you want to use them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-24 12:32 PM
Include .H files do NOT bring in library code, you need to add the actual library .C source files into the project tree.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-25 1:27 AM
Thank you, I'll try
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-25 1:29 AM
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-28 2:27 AM
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
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-04 4:58 AM
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
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-05 6:09 AM
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."
