cancel
Showing results for 
Search instead for 
Did you mean: 

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

SSavi.1
Associate II
 
1 ACCEPTED SOLUTION

Accepted Solutions

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
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

7 REPLIES 7
TDK
Guru

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).

https://github.com/baranekrem/STM32F4-Examples-with-SPL/blob/d766f0f72f55b0e8b07e492338b191f300afd48d/7)%20STM32F4_SPI/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_rcc.c#L1317

You would need to download the SPL files and add them to your project if you want to use them.

https://www.st.com/content/st_com/en/products/embedded-software/mcu-mpu-embedded-software/stm32-embedded-software/stm32-standard-peripheral-libraries/stsw-stm32065.html#get-software

If you feel a post has answered your question, please click "Accept as Solution".

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
Up vote any posts that you find helpful, it shows what's working..
SSavi.1
Associate II

Thank you, I'll try

Thank you

Imen.D
ST Employee

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Imen.D
ST Employee

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

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."