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
Hi,
I am using nrf connect sdk v2.4.0.
I'm using this example: github.com/.../main.c but I'm getting an ENOSYS error.
I'm using a xiao ble board with a nrf52840 controller.
Best regards,
Goudam
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"; };
Have you made any modifications to the sample/configuration?
I didn't modify anything in the code. In Board DTS itself NRF_UARTE enable
I am noted one more thing CONFIG_UART_INTERRUPT_DRIVEN was enabled by default it makes any issue with ASYNC uart . If its a error means how to disable the CONFIG_UART_INTERRUPT_DRIVEN ?
I am try to disable that in prj.conf file by addingCONFIG_UART_INTERRUPT_DRIVEN=n