uart0_default: uart0_default {
group1 {
psels = <NRF_PSEL(UART_TX, 0, 11)>,
<NRF_PSEL(UART_RX, 0, 10)>;
};
};
uart0_sleep: uart0_sleep {
group1 {
psels = <NRF_PSEL(UART_TX, 0, 11)>,
<NRF_PSEL(UART_RX, 0, 10)>;
low-power-enable;
};
};
uart1_default: uart1_default {
group1 {
psels = <NRF_PSEL(UART_TX, 0, 24)>,
<NRF_PSEL(UART_RX, 0, 23)>;
};
};
uart1_sleep: uart1_sleep {
group1 {
psels = <NRF_PSEL(UART_TX, 0, 24)>,
<NRF_PSEL(UART_RX, 0, 23)>;
low-power-enable;
};
};
So I guess, if you just configure uart0 to p0.23 and p0.24, that is in conflict with uart1. You would need to change uart1 as well, maybe just exchange the pinctrls in the uart defs, e.g.
&uart0 {
pinctrl-0 = <&uart1_default>;
pinctrl-1 = <&uart1_sleep>;
};
&uart1 {
pinctrl-0 = <&uart0_default>;
pinctrl-1 = <&uart0_sleep>;
};
Alternatively, you may check, which UART is chosen. I guess, it’s in “nrf/lib/at_host/at_host.c”:
#define AT_HOST_UART_DEV_GET() \
DEVICE_DT_GET(COND_CODE_1(DT_HAS_CHOSEN(ncs_at_host_uart), \
(DT_CHOSEN(ncs_at_host_uart)), (DT_NODELABEL(uart0))))
So you may need to add a
/ {
chosen {
ncs,at-host-uart = &uart1;
};