2021-10-24 09:04 AM
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.
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.
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.
2021-10-25 01:27 AM
Thank you, I'll try
2021-10-25 01:29 AM
Thank you
2021-10-28 02: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
2021-11-04 04: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
2021-11-05 06: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."