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

APP_UART with both UARTS

Hi,

I read this post to handle communication with both built in UARTs

I'm working with Mesh SDK 2.0.1 and nRF SDK 15.0.0 at the moment.

My application uses UART0 initialized with APP_UART_FIFO_INIT().

What would be the best way to use the second UART in that application?

Kind regards 

  Gerry

  • Hi Gerry,

    Very sorry for the delayed response. If you want to use two uarts, it is recommended to use the nrf_serial library instead of uart. You have two options essentially:

    either use the uart like you have done & use nrf_serial for the second uart

    or you can switch your functionality to support the nrf_serial library example instead. It might be cleaner to just switch to the nrf_serial example instead, but that is up to you to decide.

    Here is some documentation which could be helpful: link 1, link 2.

    Kind Regards,

    Bjørn Kvaale

Related