Zephyr logging, release the UART

In the nordic,nrf52840dk_nrf52840.dts there is a part "chosen" that says:

zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,uart-mcumgr = &uart0;
zephyr,bt-mon-uart = &uart0;
zephyr,bt-c2h-uart = &uart0;

I am using both UART0 and UART1 for my application. How can I have some debug output (Ozone debugger) without interfering with my UART?

In my config file I wrote:

# Segger RTT
CONFIG_LOG=y
CONFIG_LOG_PRINTK=y
CONFIG_LOG_MODE_IMMEDIATE=y
CONFIG_RTT_CONSOLE=y
CONFIG_USE_SEGGER_RTT=y

Related