I need DMA support for UART Communication protocal

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

Parents Reply Children
  • 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 adding

    CONFIG_UART_INTERRUPT_DRIVEN=n

  • You can only set a callback if the UART driver is configured in async mode, otherwise the function will return an error.

    Try adding "CONFIG_UART_ASYNC_API=y" to your prj.conf.

  • Try adding "CONFIG_UART_ASYNC_API=y" to your prj.conf.

    Already this one is added in prj.conf file.

     I found the issue in the driver code, where the macro UARTE_ANY_ASYNC was not enabled, so that user space API uart_callback_set(uart, uart_cb, NULL) will not able to set the callback. I also checked with the nrf52840dk board, which has the same code and has the macro UARTE_ANY_ASYNC enabled, but the xiao_ble board does not enabled.

  • Related