cancel
Showing results for 
Search instead for 
Did you mean: 

Undefined Reference HAL_CRC_Init Function

akoluacik
Senior

I want to implement a system so that it retrieves sound by mems microphones and classify it with convolutional neural network. I have spent a lot of times to use BSP Library in my project but I failed. Therefore, I decided to use the code provided in f7cube file in the repository to retrieve sound. Furthermore, I'd like to use xcubeai with this code. To do that, I have to add CRC configuration, however, it throws an error as in the title.

Actually I think this is about linker issue because when I add stm32f7xx_hal_crc.c file to the project, and when I apply ctrl+left click to HAL_CRC_Init in main.c file, it takes me to definition, but cubeide somehow cannot recognize it. How to solve this issue?

0693W00000QMCJIQA5.png

1 ACCEPTED SOLUTION

Accepted Solutions

Make sure stm32f7xx_hal_conf.h calls out the CRC module for inclusion. And that the HAL CRC source is part of the build.​

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

3 REPLIES 3

Make sure stm32f7xx_hal_conf.h calls out the CRC module for inclusion. And that the HAL CRC source is part of the build.​

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

Hello sir, your suggestion works, it can solve the problem. However, another problem has arisen. Now, I have comletely the same issue with the

HAL_StatusTypeDef HAL_CRCEx_Polynomial_Set(CRC_HandleTypeDef *hcrc, uint32_t Pol, uint32_t PolyLength);

function. Note that I am now sure that I enabled the define macro about the CRC module for inclusion. How to solve this issue?

Thx in advance for your valuable responses.

I solved the second problem. It is completely my fault. This time when I applied ctrl+left click, it doesn't take me to definiton. And I suddenly realized that there isn't any file called HAL_CRC_Ex.h file. I add it and build it without problem. Thank you for the response @Community member​