Hi,
I wish to show log information use uart0 for nrf52833. And change tx to pin 0.9, rx to pin 0.10. So I modified conf file as
CONFIG_BT_DEBUG_LOG=y CONFIG_LOG=y CONFIG_UART_CONSOLE=y CONFIG_LOG_BACKEND_UART=y CONFIG_LOG_PRINTK=y
add overlay file as
&uart0 {
current-speed = <115200>;
pinctrl-0 = <&uart0_default_alt>;
pinctrl-1 = <&uart0_sleep_alt>;
pinctrl-names = "default", "sleep";
};
&pinctrl {
uart0_default_alt: uart0_default_alt {
group1 {
psels = <NRF_PSEL(UART_RX, 0, 9)>,
<NRF_PSEL(UART_TX, 0, 10)>;
};
};
uart0_sleep_alt: uart0_sleep_alt {
group1 {
psels = <NRF_PSEL(UART_RX, 0, 9)>,
<NRF_PSEL(UART_TX, 0, 10)>;
low-power-enable;
};
};
};
I use printk to print log message, but can not find message on console. Is my setting correct, thank you