This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf9160dk board UART Communication between nrf52840

Hello Engineers,

We are trying to set the correct configuration between nrf9160 and nrf52840 for using the uart_pipe library. However we are still unable to communicate between them. This is the question posted by my team over public forum, and would be great if it can get an immidiate response. 

https://devzone.nordicsemi.com/f/nordic-q-a/63640/nrf9160dk-board-uart-communication-between-nrf52840

We have used the following public discussion as the base setup: https://devzone.nordicsemi.com/f/nordic-q-a/58034/uart-communication-between-nrf52840-and-nrf9160-on-nrf9160-dk/235304#235304

The configurations are as follows:

for the 9160 image:

prj.conf:
CONFIG_UART_PIPE=y
CONFIG_UART_PIPE_ON_DEV_NAME="UART_2"
CONFIG_UART_CONSOLE_LOG_LEVEL_INF=y
### configure the uart between 9160 and 52840
CONFIG_UART_2_NRF_UARTE=y
CONFIG_UART_2_NRF_FLOW_CONTROL=y
CONFIG_UART_INTERRUPT_DRIVEN=y

child_secure_partition_manager.conf:
CONFIG_SPM_NRF_UARTE2_NS=y

nrf9160_pca10090ns.overlay:
/ {
chosen {
zephyr,bt-uart=&uart2;
};
};

&uart2 {
current-speed = <1000000>;
status = "okay";
tx-pin = <18>;
rx-pin = <17>;
rts-pin = <21>;
cts-pin = <19

And for building the image for the nrf52840:

prj.conf:
CONFIG_UART_PIPE=y
CONFIG_UART_PIPE_ON_DEV_NAME="UART_1"
CONFIG_UART_CONSOLE_LOG_LEVEL_INF=y
CONFIG_UART_1_NRF_UARTE=y
CONFIG_UART_1_NRF_FLOW_CONTROL=y

nrf52840_pca10090.overlay:
/ {
chosen {
zephyr,uart-pipe=&uart1;
};
};

&uart1 {
compatible = "nordic,nrf-uarte";
current-speed = <1000000>;
status = "okay";
tx-pin = <17>;
rx-pin = <20>;
rts-pin = <15>;
cts-pin = <22>;
};

I only see send from 52840 side and 9160 always reboots and i noticed the error

Non-secure callable region 0 placed in flash region 0 with size 32.

SRAM region Domain Permissions
00 07 0x00000 0x10000 Secure rwxl
08 31 0x10000 0x40000 Non-Secure rwxl

Peripheral Domain Status
00 NRF_P0 Non-Secure OK
01 NRF_CLOCK Non-Secure OK
02 NRF_RTC0 Non-Secure OK
03 NRF_RTC1 Non-Secure OK
04 NRF_NVMC Non-Secure OK
05 NRF_UARTE1 Non-Secure OK
06 NRF_UARTE2 Secure SKIP
07 NRF_TWIM2 Non-Secure OK
08 NRF_SPIM3 Non-Secure OK
09 NRF_TIMER0 Non-Secure OK
10 NRF_TIMER1 Non-Secure OK
11 NRF_TIMER2 Non-Secure OK
12 NRF_SAADC Non-Secure OK
13 NRF_PWM0 Non-Secure OK
14 NRF_PWM1 Non-Secure OK

Thank you,

Kartikey

Related