I am having issues separating the LOG_ and Shell on the nrf5340. (I am currently using the DevBoard)
I have created an overlay file to move the shell on UART2, which is connected via an FTDI adapter to my PC.
/ { chosen { zephyr,shell-uart = &uart2; }; }; &pinctrl { uart2_default: uart2_default { group1 { psels = <NRF_PSEL(UART_TX, 1, 11)>; }; group2 { psels = <NRF_PSEL(UART_RX, 1, 12)>; bias-pull-up; }; }; uart2_sleep: uart2_sleep { group1 { psels = <NRF_PSEL(UART_TX, 1, 11)>, <NRF_PSEL(UART_RX, 1, 12)>; low-power-enable; }; }; }; &uart2 { compatible = "nordic,nrf-uarte"; status = "okay"; current-speed = <115200>; pinctrl-0 = <&uart2_default>; pinctrl-1 = <&uart2_sleep>; pinctrl-names = "default", "sleep"; };
Modified the prj.conf
# RTT LOGGING CONFIG_LOG=y CONFIG_LOG_BACKEND_RTT=y CONFIG_LOG_BACKEND_UART=n CONFIG_LOG_MODE_DEFERRED=y
Added the Shell
# SHELL CONFIG_SHELL=y CONFIG_SHELL_MINIMAL=y CONFIG_SHELL_BACKEND_RTT=n
The result is as follows



so basically the LOGs are output in both backends. Any thoughts?