This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

implementation UART to examples from SDK

Hello, 

I have problem with implementing UART to simple_coap_client example, but there is too much problems. Some issues have been solved, but it still is not all. 

defines in sdk_config.h  -solved 

uart0 - used by openthread lib -solved

Can you help me with best way to use COAP and UART in same project?  

 

nRF5_SDK_for_Thread_and_Zigbee_2.0.0_29775ac

Linux ubuntu 18.04

Segger studio

  • okej its true,  but problem still exist 

    ‘nrf_drv_uart_config_t {aka struct <anonymous>}’ has no member named ‘use_easy_dma’

    problem is in file nrf_derial.c line 207-209

    #if defined(UARTE_PRESENT) && defined(UART_PRESENT)

    drv_config.use_easy_dma = (p_config->mode == NRF_SERIAL_MODE_DMA);

    #endif

    nrf_drv_uart.h line 197

    struct nrf_drv_uart_config_t has member named ‘use_easy_dma’ if  this: 

    #if defined(NRF_DRV_UART_WITH_UARTE) && defined(NRF_DRV_UART_WITH_UART)

    my fix :

    instead of condition file nrf_derial.c  in line 207

    #if defined(UARTE_PRESENT) && defined(UART_PRESENT)

     

    replacing condition is from nrf_drv_uart.h line 197

    #if defined(NRF_DRV_UART_WITH_UARTE) && defined(NRF_DRV_UART_WITH_UART)

    it is correct fix? build complete 

  • So you didn't try the fix I suggested in the previous reply?

    It may work the way you describe. The issue with just avoiding one instance of #if defined() is that this check may be done several other places in your project (but maybe not). Also, remember that the changes you do in the generic SDK files applies to all projects using the same SDK.

    BR,

    Edvin

Related