Problems using UART with DMA
Hello,
I'm logging the speed of a motor and I want to transmit some amount of informatio to the computer using the UART. The conversion of the sprintf is good but I have problems only when I'm using more than one time the function HAL_UART_Transmit_DMA. Thanks for your support!
for (i=0; i<MaxLog; i++)
{
sprintf(cadena, "V: %i %.3fv \n\r", LogSpeed[i], (float) LogSpeed[i] *3.3 / 4095);
HAL_UART_Transmit_DMA(&huart4, cadena, strlen(cadena));
HAL_UART_IRQHandler(&huart4);
}