Goal: Using NRF9160DK board, communicate nrf9160 and nrf52840 over UART
I tried to use UARTE on both sides. Below is project configuration and overlay file for both boards.
NRF9160:
CONFIG_SERIAL=y CONFIG_UART_INTERRUPT_DRIVEN=y
&uart2 {
compatible = "nordic,nrf-uarte";
current-speed = <115200>;
status = "okay";
tx-pin = <18>;
rx-pin = <17>;
rts-pin = <21>;
cts-pin = <19>;
};
NRF52840:
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
&uart1 {
compatible = "nordic,nrf-uarte";
current-speed = <115200>;
status = "okay";
tx-pin = <17>;
rx-pin = <20>;
rts-pin = <15>;
cts-pin = <22>;
};
Please find attached the code for both devices,
nrf52840_uart.zipnrf9160_uart.zip
Please note I have already gone through lte_ble_gw and hci_lpuart examples. They are using H4 and I would like to use raw UART between two controllers over MCU_IF.