User Activity

The CRC_Accumulate() function has been called in while loop and the rx_data received as uint8_t and converted into uint32_t and then passed to CRC_accumulate() function in order to calculate the CRC value, but unfortunately the CRC value changes ever...
uint8_t rx_buffer[32], rx_flag, rx_index, rx_data, RxData[32];   void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) { if (huart->Instance==USART1) { //if the data is not being received, clear the buffer if(rx_index ==0) { for (int i=0...