Why my crc is not configurable ?
I tried to use the hardware crc for my device stm32f103 . But the STM32CubeMX ( version : 6.10 ) doesnot provide any parameters configuration for this IP. The generated crc.c is as follows :
/* CRC init function */
void MX_CRC_Init(void)
{
/* USER CODE BEGIN CRC_Init 0 */
/* USER CODE END CRC_Init 0 */
/* USER CODE BEGIN CRC_Init 1 */
/* USER CODE END CRC_Init 1 */
hcrc.Instance = CRC;
if (HAL_CRC_Init(&hcrc) != HAL_OK)
{
Error_Handler();
}
/* USER CODE BEGIN CRC_Init 2 */
/* USER CODE END CRC_Init 2 */
}
Is it possible to config the crc ? I would like to use the crc16 func. for MODBUS communication. Thanks !
