Hello Team,
We are interfacing nRF52832 with an external flash for data storage. Could you please point to the right document/link/code reference on how to interface external flash (on SPI) with nRF52832 on nRF Connect SDK 1.8.0?
Thanks!
Hello Team,
We are interfacing nRF52832 with an external flash for data storage. Could you please point to the right document/link/code reference on how to interface external flash (on SPI) with nRF52832 on nRF Connect SDK 1.8.0?
Thanks!
HI Hakon,
Thanks, adding CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096 in prj.conf is now giving me the correct PAGE SIZE. Here is how my updated prj.conf looks like for SPI:
CONFIG_SPI=y
CONFIG_FLASH=y
CONFIG_SPI_NOR=y
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
But this doesn't solved my problem of not detecting device for the first time. I just noticed that whenever I flash the chip it prints one extra error:
E: Device id 00 00 00 does not match config ef 40 14
and then it fails to detect the device. If I reset the device, using reset device, it works. In VS Code, I am using nrf52dk_nrf52832 for build.
I've already shared my overlay file with you earlier.
I tried to look for some related issues on Nordic portal and found similar issue:
https://devzone.nordicsemi.com/f/nordic-q-a/41888/device-id
But what I am seeing is little weird since it works after reset but not immediately after flash+reset.
Tried adding "external_flash_pins_routing" in overlay but it says unknown label.
&external_flash_pins_routing {
status = "okay";
};
Hi,
embeddedER said:E: Device id 00 00 00 does not match config ef 40 14
This means that the nRF isn't able to successfully communicate with the SPI-flash, as its trying to read its ID.
embeddedER said:I've already shared my overlay file with you earlier.
I tried to look for some related issues on Nordic portal and found similar issue:
https://devzone.nordicsemi.com/f/nordic-q-a/41888/device-id
But what I am seeing is little weird since it works after reset but not immediately after flash+reset.
Tried adding "external_flash_pins_routing" in overlay but it says unknown label.
Most of these threads are related to other products, like the usage of the external flash on the nRF9160-DK, which requires specific handling to switch in the flash IC. On the nRF52-DK, you should just choose unused GPIOs and it should automatically try to communicate directly with your external device.
Could you try relaxing the max. frequency to 1MHz and see if this has any impact on the reliability?
Kind regards,
Håkon
Hi,
embeddedER said:E: Device id 00 00 00 does not match config ef 40 14
This means that the nRF isn't able to successfully communicate with the SPI-flash, as its trying to read its ID.
embeddedER said:I've already shared my overlay file with you earlier.
I tried to look for some related issues on Nordic portal and found similar issue:
https://devzone.nordicsemi.com/f/nordic-q-a/41888/device-id
But what I am seeing is little weird since it works after reset but not immediately after flash+reset.
Tried adding "external_flash_pins_routing" in overlay but it says unknown label.
Most of these threads are related to other products, like the usage of the external flash on the nRF9160-DK, which requires specific handling to switch in the flash IC. On the nRF52-DK, you should just choose unused GPIOs and it should automatically try to communicate directly with your external device.
Could you try relaxing the max. frequency to 1MHz and see if this has any impact on the reliability?
Kind regards,
Håkon