HI ,
I need dma support for the uart protocol but I can't seem to locate any examples of it being used with an uart. Can anyone give support on this?
regards ,
Goudam
HI ,
I need dma support for the uart protocol but I can't seem to locate any examples of it being used with an uart. Can anyone give support on this?
regards ,
Goudam
Hi,
Which SDK are you using? Most of the UART examples we have use EasyDMA, but not all use it in an efficient way for receive operations.
For nRF Connect SDK, I would recommend you to look at the example from lession 5 in Nordic Developer Academy: nRF Connect SDK Fundamentals course, or this sample.
For nRF5 SDK, the libUARTE example is the recommended example for UART with EasyDMA.
Best regards,
Jørgen
Goudam said:I'm using this example: github.com/.../main.c but I'm getting an ENOSYS error.
Where/when do you get this error? Have you made any modifications to the sample/configuration?
Goudam said:I'm using a xiao ble board with a nrf52840 controller.
To enable EasyDMA (UARTE), you should also add the following to your board DTS or overlay file for the uart0/uart1 devices:
compatible = "nordic,nrf-uarte";
Where/when do you get this error? Have you made any modifications to the sample/configuration?
To enable EasyDMA (UARTE), you should also add the following to your board DTS or overlay file for the uart0/uart1 devices:
&uart0 { compatible = "nordic,nrf-uarte"; status = "okay"; current-speed = <115200>; pinctrl-0 = <&uart0_default>; pinctrl-1 = <&uart0_sleep>; pinctrl-names = "default", "sleep"; };
Where/when do you get this error? Have you made any modifications to the sample/configuration?
To enable EasyDMA (UARTE), you should also add the following to your board DTS or overlay file for the uart0/uart1 devices:
&uart0 { compatible = "nordic,nrf-uarte"; status = "okay"; current-speed = <115200>; pinctrl-0 = <&uart0_default>; pinctrl-1 = <&uart0_sleep>; pinctrl-names = "default", "sleep"; };