<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nrf5340 nvs flash read and write</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112211/nrf5340-nvs-flash-read-and-write</link><description>In our custom board, check flash write and read using sample (C:\ncs\v2.6.1\zephyr\samples\subsys\nvs) but showing following response. the same build working fine in nrf7002 DK. Please provide step to resolve this?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Jun 2024 13:45:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112211/nrf5340-nvs-flash-read-and-write" /><item><title>RE: nrf5340 nvs flash read and write</title><link>https://devzone.nordicsemi.com/thread/491370?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2024 13:45:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a208d236-17ff-44fe-91d2-88e9d51eeb27</guid><dc:creator>AHaug</dc:creator><description>[quote user="Lavanya_Manohar"]For NVS sample, there is no such yml file in build/zephyr folder.[/quote]
&lt;p&gt;Thank you for verifying&lt;/p&gt;
[quote user="Lavanya_Manohar"]For internal flash, I have check below link. please check this[/quote]
&lt;p&gt;Noted,&lt;/p&gt;
&lt;p&gt;Unfortunately I need some more time to look closer into this. I will see if I can recreate this on a 5340dk next week.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 nvs flash read and write</title><link>https://devzone.nordicsemi.com/thread/491304?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2024 11:32:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0152aa0-3b68-4f1f-a849-78be3560e437</guid><dc:creator>Lavanya_Manohar</dc:creator><description>[quote userid="107683" url="~/f/nordic-q-a/112211/nrf5340-nvs-flash-read-and-write/491140"] build/zephyr folder and upload the partitions.yml[/quote]
&lt;p&gt;For NVS sample, there is no such yml file in build/zephyr folder.&lt;/p&gt;
[quote userid="107683" url="~/f/nordic-q-a/112211/nrf5340-nvs-flash-read-and-write/491140"]The sample is looking for an external flash, AFAIK, which it cannot find since you&amp;#39;ve stated you don&amp;#39;t have one, right?[/quote]
&lt;p&gt;I want for Internal flash.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;For internal flash, I have check below link. please check this&lt;/p&gt;
[quote userid="132929" url="~/f/nordic-q-a/112211/nrf5340-nvs-flash-read-and-write/491013"]I have tried another sample for internal flash write/read/erase, get this from nordic wesite&amp;nbsp;&lt;br /&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/zephyr/samples/drivers/soc_flash_nrf/README.html"&gt;https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/zephyr/samples/drivers/soc_flash_nrf/README.html&lt;/a&gt;[/quote]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 nvs flash read and write</title><link>https://devzone.nordicsemi.com/thread/491140?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2024 13:49:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7f13e0c-b291-45ae-aa5d-6b189c0b2eeb</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Could you open the build/zephyr folder and upload the partitions.yml file thats located there?&lt;/p&gt;
[quote user="Lavanya_Manohar"]1. with&amp;nbsp;&lt;span&gt;nrf5340dk_nrf5340_cppapu, facing reset after the error&lt;/span&gt;[/quote]
&lt;p&gt;The sample is looking for an external flash, AFAIK, which it cannot find since you&amp;#39;ve stated you don&amp;#39;t have one, right?&lt;/p&gt;
[quote user="Lavanya_Manohar"]2.with&amp;nbsp;nrf7002dk_nrf5340_cppapu, facing&amp;nbsp;[/quote]
&lt;p&gt;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?&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll see if I can look closer into the sample tomorrow, but in the meanwhile please provide me with the partitioning file&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 nvs flash read and write</title><link>https://devzone.nordicsemi.com/thread/491074?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2024 11:07:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abe265cb-22f1-49c0-93be-a2c5c56b10ab</guid><dc:creator>Lavanya_Manohar</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;I have checked the nvs sample u shared&lt;br /&gt;1. with&amp;nbsp;&lt;span&gt;nrf5340dk_nrf5340_cppapu, facing reset after the error&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1719486224028v1.png" alt=" " /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2.with&amp;nbsp;nrf7002dk_nrf5340_cppapu, facing&amp;nbsp;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1719486336685v2.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;proj.conf file of nvs sample&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_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&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="107683" url="~/f/nordic-q-a/112211/nrf5340-nvs-flash-read-and-write/491031"]pm_static.yml[/quote]
&lt;p&gt;&lt;span&gt;Which file are you mentioning? In sample project only sample.yaml file is presented.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 nvs flash read and write</title><link>https://devzone.nordicsemi.com/thread/491031?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2024 08:39:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e20c636c-3cda-46db-89f0-a0b4306951e3</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see I linked you the wrong repository to the sample. I meant to link this NVS sample:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/subsys/nvs"&gt;https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/subsys/nvs&lt;/a&gt;&amp;nbsp; (downstream zephyr sample in NCS) i.e &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/zephyr/samples/subsys/nvs/README.html"&gt;https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/zephyr/samples/subsys/nvs/README.html&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;Anyways, could you also share your&amp;nbsp;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;pm_static.yml&lt;/li&gt;
&lt;li&gt;prj.conf&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 nvs flash read and write</title><link>https://devzone.nordicsemi.com/thread/491013?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2024 07:54:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a95a543-d7c6-49ff-a6b0-896f8785a49b</guid><dc:creator>Lavanya_Manohar</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I have tried another sample for internal flash write/read/erase, get this from nordic wesite&amp;nbsp;&lt;br /&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/zephyr/samples/drivers/soc_flash_nrf/README.html"&gt;https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/zephyr/samples/drivers/soc_flash_nrf/README.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;In this sample, I have take 2 build with&amp;nbsp;&lt;span&gt;nrf5340dk_nrf5340_cppapu and&amp;nbsp;nrf7002dk_nrf5340_cppapu.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. both build is working fine in nrf7002DK&amp;nbsp;&lt;br /&gt;2. In our custom board, With nrf5340dk_nrf5340_cppapu it is working, but with&amp;nbsp;&lt;span&gt;nrf7002dk_nrf5340_cppapu its not working even I didn&amp;#39;t get any log msg too.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;What will be the cause for this issue? And please provide the difference&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 nvs flash read and write</title><link>https://devzone.nordicsemi.com/thread/489632?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2024 06:32:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03092fc5-9ea4-4628-8760-dc98ca7b8ec2</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""] (C:\ncs\v2.6.1\zephyr\samples\subsys\nvs)[/quote]
&lt;p&gt;Are you certain that you&amp;#39;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&amp;#39;t recreate it from my end.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/subsys/nvs"&gt;https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/subsys/nvs&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 nvs flash read and write</title><link>https://devzone.nordicsemi.com/thread/489525?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2024 13:01:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d311f5f-5b2f-40bd-97c8-665f2d5fbb86</guid><dc:creator>Lavanya_Manohar</dc:creator><description>[quote userid="107683" url="~/f/nordic-q-a/112211/nrf5340-nvs-flash-read-and-write/489483"]Could you specify if you&amp;#39;re using QSPI or SPI for external flash communication on the nrf5340? Is it a nRF5340DK or a custom board with a nRF5340SoC?[/quote]
&lt;p&gt;It is our custom board&amp;nbsp;which have&amp;nbsp;nRF5340ScC with nRF7002 module.&lt;br /&gt;&lt;br /&gt;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?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 nvs flash read and write</title><link>https://devzone.nordicsemi.com/thread/489483?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2024 11:15:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3486cab1-abf4-44a0-a6c6-6153ccca9402</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you specify if you&amp;#39;re using QSPI or SPI for external flash communication on the nrf5340? Is it a nRF5340DK or a custom board with a nRF5340SoC?&lt;/p&gt;
&lt;p&gt;The nRF7002DK uses SPI for external flash communication, while the nRF5340 defaults to QSPI. If you&amp;#39;re using QSPI on your board as well, then you will have to modify the sample to use QSPI instead of SPI&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>