2021-11-07 10:41 PM
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
{
if(huart->Instance == USART2)
{
RX_Data[Rx_Index] = RXD;
Rx_Index++;
HAL_UART_Receive_IT(&UART2_WIFI,&RXD,1);
}
}
2021-11-08 3:57 AM
Hello @wwgww
Just call HAL_UART_AbortReceive_IT() function to abort any ongoing Rx transfer started in Interrupt.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.