Please provide step to resolve this?

Hi,
Could you specify if you're using QSPI or SPI for external flash communication on the nrf5340? Is it a nRF5340DK or a custom board with a nRF5340SoC?
The nRF7002DK uses SPI for external flash communication, while the nRF5340 defaults to QSPI. If you're using QSPI on your board as well, then you will have to modify the sample to use QSPI instead of SPI
Kind regards,
Andreas
Could you specify if you're using QSPI or SPI for external flash communication on the nrf5340? Is it a nRF5340DK or a custom board with a nRF5340SoC?
It is our custom board which have nRF5340ScC with nRF7002 module.
We are not connect any external flash. I want to access(write and read to particular address) in 5340 flash memory. For accessing internal nRF 5340 flash, Is there any modification need to do?
Hi,
(C:\ncs\v2.6.1\zephyr\samples\subsys\nvs)
Are you certain that you're using this sample? From what I can see there are no warning logs that corresponds to the one you have posted an image of, and I can't recreate it from my end.
https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/subsys/nvs
Kind regards,
Andreas
Hi,
I have tried another sample for internal flash write/read/erase, get this from nordic wesite
https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/zephyr/samples/drivers/soc_flash_nrf/README.html
In this sample, I have take 2 build with nrf5340dk_nrf5340_cppapu and nrf7002dk_nrf5340_cppapu.
1. both build is working fine in nrf7002DK
2. In our custom board, With nrf5340dk_nrf5340_cppapu it is working, but with nrf7002dk_nrf5340_cppapu its not working even I didn't get any log msg too.
What will be the cause for this issue? And please provide the difference
Hi,
I have tried another sample for internal flash write/read/erase, get this from nordic wesite
https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/zephyr/samples/drivers/soc_flash_nrf/README.html
In this sample, I have take 2 build with nrf5340dk_nrf5340_cppapu and nrf7002dk_nrf5340_cppapu.
1. both build is working fine in nrf7002DK
2. In our custom board, With nrf5340dk_nrf5340_cppapu it is working, but with nrf7002dk_nrf5340_cppapu its not working even I didn't get any log msg too.
What will be the cause for this issue? And please provide the difference
Hi,
I see I linked you the wrong repository to the sample. I meant to link this NVS sample: https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/subsys/nvs (downstream zephyr sample in NCS) i.e https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/zephyr/samples/subsys/nvs/README.html.
Could you check if this behaves the same if you modify it to not use external flash, but rather a NVS region within the nRF5340 flash partition.
Anyways, could you also share your
?
Kind regards,
Andreas
Hi,
I have checked the nvs sample u shared
1. with nrf5340dk_nrf5340_cppapu, facing reset after the error
2.with nrf7002dk_nrf5340_cppapu, facing
proj.conf file of nvs sampleCONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_NVS=y
CONFIG_LOG=y
CONFIG_LOG_MODE_IMMEDIATE=y
CONFIG_NVS_LOG_LEVEL_DBG=y
CONFIG_REBOOT=y
CONFIG_MPU_ALLOW_FLASH_WRITE=y
CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y
pm_static.yml
Which file are you mentioning? In sample project only sample.yaml file is presented.
Could you open the build/zephyr folder and upload the partitions.yml file thats located there?
Lavanya_Manohar said:1. with nrf5340dk_nrf5340_cppapu, facing reset after the error
The sample is looking for an external flash, AFAIK, which it cannot find since you've stated you don't have one, right?
Lavanya_Manohar said:2.with nrf7002dk_nrf5340_cppapu, facing
This is again caused by the sample looking for an external flash. Did you make any modifications to it to ensure it does not use an external flash?
I'll see if I can look closer into the sample tomorrow, but in the meanwhile please provide me with the partitioning file
Kind regards,
Andreas
build/zephyr folder and upload the partitions.yml
For NVS sample, there is no such yml file in build/zephyr folder.
The sample is looking for an external flash, AFAIK, which it cannot find since you've stated you don't have one, right?
I want for Internal flash.
For internal flash, I have check below link. please check this
I have tried another sample for internal flash write/read/erase, get this from nordic wesite
https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/zephyr/samples/drivers/soc_flash_nrf/README.html
Lavanya_Manohar said:For NVS sample, there is no such yml file in build/zephyr folder.
Thank you for verifying
Lavanya_Manohar said:For internal flash, I have check below link. please check this
Noted,
Unfortunately I need some more time to look closer into this. I will see if I can recreate this on a 5340dk next week.
Kind regards,
Andreas