Hello,
I have to make the external flash on the nRF9160DK work with the nRF9160.
From what I understood, the default settings are that the external flash on the board are connected to the nRF52840 SoC.
I am trying to use the AT45 DataFlash driver sample code. It says that it is tested for the nRF9160DK.
In the nRF9160DK documentation it says that on the board there is a 64MB flash and I assume that this flash is used for the testing.
However when I run the code I get the following error:
<err> spi_flash_at45: Wrong JEDEC ID: 00 00 00, expected: 1F 27 01
*** Booting Zephyr OS build v2.6.99-ncs1 ***
DataFlash sample on nrf9160dk_nrf9160
Device DATAFLASH_0 not found!
I found the overlay file of the program which is nrf9160dk_nrf9160.overlay and it consists the following lines for the SPI and the flash:
&spi3 {
sck-pin = <11>;
mosi-pin = <12>;
miso-pin = <13>;
cs-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>,
<&gpio0 10 GPIO_ACTIVE_LOW>;
at45db0: at45db041e@0 {
compatible = "atmel,at45";
reg = <0>;
spi-max-frequency = <15000000>;
label = "DATAFLASH_0";
jedec-id = [1f 24 00];
size = <4194304>;
sector-size = <65536>;
block-size = <2048>;
page-size = <256>;
enter-dpd-delay = <2000>;
exit-dpd-delay = <35000>;
status = "disabled";
};
at45db1: at45db321e@1 {
compatible = "atmel,at45";
reg = <1>;
spi-max-frequency = <15000000>;
label = "DATAFLASH_1";
jedec-id = [1f 27 01];
size = <33554432>;
sector-size = <65536>;
block-size = <4096>;
page-size = <512>;
use-udpd;
enter-dpd-delay = <1000>;
exit-dpd-delay = <180000>;
status = "okay";
};
};
Another thing is I cannot find the flash memory on the board or in schematics of the nRF9160DK although in documentations it says it exists.
I am starting to think that there is not flash on the board and that may be the problem.
If someone can help on what can be the problem with the following code I would be verry thankful.