UART with openThread

Hello Everyone, 

I'm developing an application which makes use of UART in open thread sdk. 

Now, libopenthread-nrf52840-sdk.a library already makes use of UART0, when I enable UART in sdk_config.h - it gives compilation error. 

As described here , I don't want to make use of USB or SPI libraries as I'm using them as well in my application. 

So, finally I want to use libopenthread-nrf52840-sdk.a library with one UART enabled for my application. 

Please suggest what settings are required to achieve that ? 

Thanks. 

 

 

Parents Reply
  • Hi

    When I set the following in sdk_config.h of one of the thread examples, the example builds fine.
    I found these in the userial_uartes example.

    #ifndef UART_ENABLED
    #define UART_ENABLED 1
    #endif
    
    #ifndef UART1_ENABLED
    #define UART1_ENABLED 1
    #endif
    
    #ifndef NRFX_UARTE_ENABLED
    #define NRFX_UARTE_ENABLED 1
    #endif
    
    #ifndef NRFX_UARTE1_ENABLED
    #define NRFX_UARTE1_ENABLED 1
    #endif

    I suggest first testing the serial_uartes example, so you know how to use it. Then add relevant code and configuration to the thread example.

    Regards,
    Sigurd Hellesvik

Children
Related