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

NRF9160 - Only one of the following peripherals can be enabled SPI1... UARTE1, Why?

After I updated the libraries via west, an error started to appear:
error: static assertion failed:  error: static assertion failed: "Only one of the following peripherals can be enabled: SPI1, SPIM1, SPIS1, TWI1, TWIM1, TWIS1, UARTE1. Check nodes with status \"okay\" in zephyr.dts."

For SPI2 and UART2, the exact same error.

I use the master branch from:
https://github.com/NordicPlayground/fw-nrfconnect-nrf

From File nrf9160dk_nrf9160_common.dts

&uart1 {
	status = "okay";
	current-speed = <115200>;
	tx-pin = <1>;
	rx-pin = <0>;
	rts-pin = <14>;
	cts-pin = <15>;
};

From File nrf9160dk_nrf9160ns.overlay

/ {
	chosen {
		zephyr,bt-uart=&uart2;
	};
};

&adc {
	status = "ok";
};

&uart0 {
	status = "okay";
	current-speed = <115200>;
	tx-pin = <29>;
	rx-pin = <28>;
	rts-pin = <0xFFFFFFFF>;
	cts-pin = <0xFFFFFFFF>;
};

&uart2 {
	status = "okay";
	current-speed = <9600>;
	label = "UART_2";
	tx-pin = <10>;
	rx-pin = <8>;
	rts-pin = <0xFFFFFFFF>;
	cts-pin = <0xFFFFFFFF>;
};


&spi1 {
	compatible = "nordic,nrf-spim";
	status = "okay";
	sck-pin = <24>;
	mosi-pin = <25>;
	miso-pin = <30>;
};

&spi2 {
	compatible = "nordic,nrf-spim";
	status = "okay";
	sck-pin = <12>;
	mosi-pin = <21>;
	miso-pin = <20>;
};

It's hard enough to believe that UART and SPI are the same hardware module.
In the reference manual www.nordicsemi.com/.../nRF9160OPSv071pdf.pdf
On page 14 they are drawn as different peripheral devices.

What is the problem?

Parents Reply Children
Related