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
  • Hi

    In this case, the easiest alternative could just be to use UART1 instead of UART0.

    This depends on how you control the UART. But if you use the same method as in the UART sample, it should be the following settings:

    #ifndef UART0_ENABLED
    #define UART0_ENABLED 0
    #endif
    
    #ifndef UART1_ENABLED
    #define UART1_ENABLED 1
    #endif
    
    #ifndef APP_UART_ENABLED
    #define APP_UART_ENABLED 1
    #endif
    
    #ifndef APP_UART_DRIVER_INSTANCE
    #define APP_UART_DRIVER_INSTANCE 1
    #endif
    

    Does this fix your issue?

    Regards,
    Sigurd Hellesvik

Reply
  • Hi

    In this case, the easiest alternative could just be to use UART1 instead of UART0.

    This depends on how you control the UART. But if you use the same method as in the UART sample, it should be the following settings:

    #ifndef UART0_ENABLED
    #define UART0_ENABLED 0
    #endif
    
    #ifndef UART1_ENABLED
    #define UART1_ENABLED 1
    #endif
    
    #ifndef APP_UART_ENABLED
    #define APP_UART_ENABLED 1
    #endif
    
    #ifndef APP_UART_DRIVER_INSTANCE
    #define APP_UART_DRIVER_INSTANCE 1
    #endif
    

    Does this fix your issue?

    Regards,
    Sigurd Hellesvik

Children
Related