I have been trying to setup a UART connection over DMA based on the cmsis_uart_edma_transfer project on the FRDM-K22F development board. Using the demo project I can connect via UART and echo back characters in blocks of 8 as advertised. However if I change the baud rate from anything other than 115200 then the communication falls apart and I do not receive usable data. I am also changing the baud rate on the pc to match the new baud rate.
in the example project the baud rate is set by the following line
/* Set baudrate. */
Driver_USART1.Control(ARM_USART_MODE_ASYNCHRONOUS,BOARD_DEBUG_UART_BAUDRATE);
However changing the definition of BOARD_DEBUG_UART_BAUDRATE from 115200 to 19200,9600 etc does not seem to work. Am I missing any settings?
I was able to successfully change the baudrate in other UART demo projects such as the freertos_uart one.
Update. I can change the baudrate by modifying line 407 of fsl_uart.c
config->baudRate_Bps = 115200U;
However in my final application I'm going to need 2 seperate UARTS at 19200 and 9600 baud, so this doesn't really solve my issue.