This error callback function is not getting called when we connect to PC. But we are getting during modem (UART based)communication only. Whats purpose of this callback ? Is there any configuration need to add ?
if(HAL_UART_Transmit_IT(&UartHandle, (uint8_t*)txbuff, TxBufLen)!= HAL_OK)
{
Error_Handler();
}
RecvTick = RESET;
/*##-3- Wait for the end of the transfer #################################*/
while (UartReady != SET && RecvTick++ < 50000)
...
Please check attached snap where we are transmitting and receiving data between Modem and STM32.Let us know what is best way to handle this receive buffer.
After running initial command successfully then we start getting transmit error(callback) each time and failed to get receive data. Please help us to resolve this issue.