Skip to main content
akoluacik
Associate III
July 26, 2022
Solved

Undefined Reference HAL_CRC_Init Function

  • July 26, 2022
  • 1 reply
  • 2545 views

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

This topic has been closed for replies.
Best answer by Tesla DeLorean

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

1 reply

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
July 26, 2022

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 VenmoUp vote any posts that you find helpful, it shows what's working..
akoluacik
akoluacikAuthor
Associate III
July 27, 2022

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.