SPI00 Configuration on nRF54L15-DK

Hello,

I am trying to adapt the "Interfacing with a sensor over SPI" example from the nRF Connect SDK Intermediate Dev Academy course in Lesson 5. When I run the code as configured with spi21, the code runs as expected. However, when I try to switch over to spi00 (see attached overlay file), I get the following error:

[00:00:00.030,924] <err> spi_nrfx_spim: Failed to initialize nrfx driver: 0bad0004

[00:00:00.039,242] <err> Lesson5_Exercise1: spi_transceive_dt() failed, err: -5

This is what my overlay file currently looks like:

&spi00 {
    compatible = "nordic,nrf-spim";
	status = "okay";
	pinctrl-0 = <&spi00_default>;
	pinctrl-1 = <&spi00_sleep>;
	pinctrl-names = "default", "sleep";
	cs-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;
	bme280: bme280@0 {
		compatible = "bosch,bme280";
		reg = <0>;
		spi-max-frequency = <1000000>; // 1MHz
	};
};


&pinctrl {
	spi00_default: spi00_default {
		group1 {
				psels = <NRF_PSEL(SPIM_SCK, 2, 1)>, 
						<NRF_PSEL(SPIM_MOSI, 2, 2)>,
						<NRF_PSEL(SPIM_MISO, 2, 4)>;
		};
	};

	spi00_sleep: spi00_sleep {
		group1 {
				psels = <NRF_PSEL(SPIM_SCK, 2, 1)>,
						<NRF_PSEL(SPIM_MOSI, 2, 2)>,
						<NRF_PSEL(SPIM_MISO, 2, 4)>;
				low-power-enable;
		};
	};
};

How can I fix this issue so I can use spi00 appropriately? Any help would be greatly appreciated.

Related