2025-09-15 12:10 AM - last edited on 2025-09-15 6:59 AM by Saket_Om
I want to enable the UART communication in MCSDK software which is very time critical task, i enabled UART with DMA, the problem is it cannot transmit more than 2 bytes even if i give 3 or more for transmission
HAL_UART_Transmit_DMA(&huart3, buffer, 3);
I get the call back
void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart)
{
uartransmissioncomplete = true;
}
after every 2 bytes.
I tested the same program only with UART it works fine transferring more bytes. So, can i just go ahead with transmitting 2 bytes for every call back function, or will i really be able to transfer more bytes in the complete project, since i don't want to disturb the main functionality, i want UART data for data logging.
2025-09-15 7:05 AM
Hello @STuser2
@STuser2 wrote:I tested the same program only with UART it works fine transferring more bytes.
You mean UART without DMA?
Please refer to the example below:
Projects/NUCLEO-G474RE/Examples/UART/UART_TwoBoards_ComDMA