This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF52832 Nordic UART code: What defines are needed to build for the UARTE

I am currently using Nordic's UART code and wish to build to use the UARTE rather than the legacy UART. I am currently using the following definitions in nrf_drv_config.h:

#define UART_EASY_DMA_SUPPORT     1
#define UART_LEGACY_SUPPORT       0

#define UART0_CONFIG_USE_EASY_DMA true

However, when I build the code I get the following error

#ifdef NRF52
    m_cb.use_easy_dma = p_config->use_easy_dma;
#endif

struct "<unnamed>" has no field "use_easy_dma"

Obviously use_easy_dma is not defined as a member for my compile time definitions. Any ideas ?

  • It is actually a bug in the SDK. Use this for now (no easyDMA support):

    #define UART0_CONFIG_USE_EASY_DMA false
    #define UART_EASY_DMA_SUPPORT     1
    #define UART_LEGACY_SUPPORT       1
    

    The bug has been reported.

  • Thanks. The code now builds fine. The issue now is that the printfs that were working with

    define UART_EASY_DMA_SUPPORT 1

    define UART_LEGACY_SUPPORT 1

    define UART0_CONFIG_USE_EASY_DMA false

    now seem to do nothing.

  • Another error there, app_uart_fifo_init(...) returns error, should have tested before I suggested that. I will check tomorrow if there is anything you can do.