how to configure usart1 to use the dma.
hi,
we are using usart1 to communicate w/ a device using custom baud rates. we have it working but sometimes we don't get all of the data that is sent by the device. it one or two bytes are dropped at the beginning of the message or there are several bytes dropped at the end of the message. we use usart3 to communicate w/ a device that is similar to the one connected to usart1. however, there are no dropped bytes. also, usart3 is configured to use the dma.
we would like to configure usart1 to use the dma. we configured it in the kernel device tree as follows:
&usart1{
pinctrl-names = "default", "sleep";
pinctrl-0 = <&usart1_pins_z_mx>;
pinctrl-1 = <&usart1_sleep_pins_z_mx>;
status = "okay";
/* USER CODE BEGIN usart1 */
power-domains = <&pd_core>;
dmas = <&dmamux1 71 0x400 0x15>,
<&dmamux1 72 0x400 0x11>;
dma-names = "rx", "tx";
/* USER CODE END usart1 */
}this caused usart1 to no longer function correctly. that is, we are no longer receiving data from the device connected to usart1.
how do we correctly configure usart1 to use the dma?
thanks,
vince
