UART - reading data from UART1 and sending it via UART2.
Hi, I have some problem with UART. I configured two uarts (UART1 and UART2) both of them are working in DMA mode. I want to send data from PC to mcu-UART1 and after receiving it the same data should be sent to UART2. I prepared test env and almost all looks fine but when I'm sending data for example "0123456789", then on second terminal I'm receiving "02468". I mean each second char does anyone have idea what I'm doing wrong ?
Interrupt:
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart){
HAL_UART_Transmit_DMA(&huart2, &RxBuff, 1);
HAL_UART_Receive_DMA(&huart1, &RxBuff, 1);
}
