Hello, i´m developing on a custom NRF91 board and i´m trying to access the SPI flash memory on it. When i run the code i get the following error:
<err> spi_nor: Device id 00 00 00 does not match config c2 28 17
I´m assuming my flash is not beign properly detected.
Here is my overlay.
&pinctrl {
spi3_default: spi3_default {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 13)>,
<NRF_PSEL(SPIM_MISO, 0, 12)>,
<NRF_PSEL(SPIM_MOSI, 0, 11)>;
nordic,drive-mode = <NRF_DRIVE_H0H1>;
};
};
spi3_sleep: spi3_sleep {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 13)>,
<NRF_PSEL(SPIM_MISO, 0, 12)>,
<NRF_PSEL(SPIM_MOSI, 0, 11)>;
low-power-enable;
};
};
};
&gpio0 {
status = "okay";
};
&spi3 {
compatible = "nordic,nrf-spim";
status = "okay";
pinctrl-0 = <&spi3_default>;
pinctrl-1 = <&spi3_sleep>;
pinctrl-names = "default", "sleep";
cs-gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
w25q64jw: w25q64jw@0 {
compatible = "jedec,spi-nor";
label = "w25q64jw";
reg = <0>;
spi-max-frequency = <80000000>;
jedec-id = [ c2 28 17 ];
size = <67108864>;
};
};
/{
chosen {
nordic,pm-ext-flash=&w25q64jw;
};
};
The pins of the SPI flash are connected as follows:
MOSI - Pin 19
MISO - Pin 20
SCLK - Pin 23
What could be causing this problem ?

