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

Using UARTE0 and UARTE1 in different pins ?

Dear Members,

I saw this example,

https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.2.0%2Fserial_uartes_example.html

I can not find this example on SDK 17,

How can I use UARTE0 and UARTE1 on separate port ? one is for debugging via USB and the other one for communicating with GPS UART ?

Any suggestions ?

Thanks

Parents
  • I have enabled UARTE1 1

    //==========================================================
    
    // <h> nrf_libuarte_drv - libUARTE library
    
    //==========================================================
    // <q> NRF_LIBUARTE_DRV_HWFC_ENABLED  - Enable HWFC support in the driver
     
    
    #ifndef NRF_LIBUARTE_DRV_HWFC_ENABLED
    #define NRF_LIBUARTE_DRV_HWFC_ENABLED 0
    #endif
    
    // <q> NRF_LIBUARTE_DRV_UARTE0  - UARTE0 instance
     
    
    #ifndef NRF_LIBUARTE_DRV_UARTE0
    #define NRF_LIBUARTE_DRV_UARTE0 1
    #endif
    
    // <q> NRF_LIBUARTE_DRV_UARTE1  - UARTE1 instance
     
    
    #ifndef NRF_LIBUARTE_DRV_UARTE1
    #define NRF_LIBUARTE_DRV_UARTE1 1
    #endif
    
    // </h> 
    //==========================================================

Reply
  • I have enabled UARTE1 1

    //==========================================================
    
    // <h> nrf_libuarte_drv - libUARTE library
    
    //==========================================================
    // <q> NRF_LIBUARTE_DRV_HWFC_ENABLED  - Enable HWFC support in the driver
     
    
    #ifndef NRF_LIBUARTE_DRV_HWFC_ENABLED
    #define NRF_LIBUARTE_DRV_HWFC_ENABLED 0
    #endif
    
    // <q> NRF_LIBUARTE_DRV_UARTE0  - UARTE0 instance
     
    
    #ifndef NRF_LIBUARTE_DRV_UARTE0
    #define NRF_LIBUARTE_DRV_UARTE0 1
    #endif
    
    // <q> NRF_LIBUARTE_DRV_UARTE1  - UARTE1 instance
     
    
    #ifndef NRF_LIBUARTE_DRV_UARTE1
    #define NRF_LIBUARTE_DRV_UARTE1 1
    #endif
    
    // </h> 
    //==========================================================

Children
Related