tedhavelka66 uart0 is used for the USB to Serial:
&uart0 {
status = "okay";
current-speed = <115200>;
tx-pin = <6>;
rx-pin = <5>;
};
That is determined by the zephyr,console
definition earlier in the common device def:
chosen {
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,uart-mcumgr = &uart0;
};
If you want to re-map the at_client pins you can re-define uart0 to different pins. If you still want to maintain your console debug output you may have to modify the at_client example itself to use a different serial interface. You can use AT_HOST_UART_X
to switch from UART0 to 1 or 2.
choice
prompt "UART for AT Host"
default AT_HOST_UART_0
depends on AT_HOST_LIBRARY
help
Sets the UART to use for the AT Host
- UART 0
- UART 1
- UART 2
config AT_HOST_UART_0
bool "UART 0"
config AT_HOST_UART_1
bool "UART 1"
config AT_HOST_UART_2
bool "UART 2"
endchoice
So you would need to define CONFIG_AT_HOST_UART_1=y
or CONFIG_AT_HOST_UART_2=y
in your prj.conf
if you want to switch interfaces.