HAL_UART_Transmit_IT?? STM32F072
I have the following block of code. I am averaging 6 A/D inputs. Stream holds these 6 average values and looks fine. One at a time the loop converts each sample to ascii and appends '\n' and '\r' and then transmits them over the UART. If I use UART_Transmit as seen all looks fine (UART running at 115200). If however I try and use UART_Transmit_IT some samples do NOT transmit to the laptop the correct value (as I compare the Stream values to the laptop values). Can someone tell me why this command call isn't working correctly?
My expectation is I transmit a value + '\n' + '\r' . The code waits until done (HAL_OK) and then the loop continues and does the second piece of data and so on....
for (k = 0; k < NO_ADC_CH; k++)
{
test = hex2Ascii(stream + k);
//while (!(HAL_OK == HAL_UART_Transmit_IT(&huart2, test, 6)));
HAL_UART_Transmit(&huart2, test, 6, 10);
}