This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nrf9160DK : UART Communication between nrf9160 and nrf52840

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.

Parents Reply Children
No Data
Related