UART TIME OUT
Hello everyone
I am trying to receive file form UART through Xmodem protocol I am getting file in debug mode but unable to get into run mode it showing UART Rx busy basically hanging over these function
while (!(HAL_UART_GetState(&huart4) == HAL_UART_STATE_READY) && wTimeout) {
wTimeout--;
}
if (HAL_UART_GetState(&huart4) == HAL_UART_STATE_READY)
break;
}
Can anyone suggest me for the what's wrong with the code
