<?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>I want to write data to flash, but how do I know which addresses are available?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113067/i-want-to-write-data-to-flash-but-how-do-i-know-which-addresses-are-available</link><description>Hello, 
 I want to write data to flash, but how do I know which addresses are available? 
 I use the nrf52833.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Jul 2024 12:38:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113067/i-want-to-write-data-to-flash-but-how-do-i-know-which-addresses-are-available" /><item><title>RE: I want to write data to flash, but how do I know which addresses are available?</title><link>https://devzone.nordicsemi.com/thread/495632?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2024 12:38:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b059ddd-b055-408d-83c3-5dc3da9bbcbd</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;That would be the flash available that is not used by the SoftDevice or application in your project. How to define an instance and what addresses to use is explained here:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.2%2Flib_fds.html"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.2%2Flib_fds.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You will have to familiarize yourself with the FDS library and API to do this correctly. You can also check out the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/fds_example.html"&gt;Flash Data Storage&lt;/a&gt; or &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/fstorage_example.html"&gt;Flash Storage&lt;/a&gt; example projects here for a template.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to write data to flash, but how do I know which addresses are available?</title><link>https://devzone.nordicsemi.com/thread/494958?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2024 05:46:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0a45089-72a1-42c2-9737-8d19257b436c</guid><dc:creator>Mark</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I use Keil + nRF5 SDK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How do I know which addresses are available if I use these?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to write data to flash, but how do I know which addresses are available?</title><link>https://devzone.nordicsemi.com/thread/494704?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 06:03:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a12506fc-83d9-47a5-a14c-a92835656cc3</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Then please check the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.2%2Flib_fds.html"&gt;fstorage &lt;/a&gt;module. Note that it is highly recommended to use the newer nRF Connect SDK based on Zephyr RTOS for any new project developments to get new features and patches. Not sure why you want to use a very old SDK version?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to write data to flash, but how do I know which addresses are available?</title><link>https://devzone.nordicsemi.com/thread/494674?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 00:28:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d08fbfdd-4771-47f7-9a65-169c48062a47</guid><dc:creator>Mark</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I use&amp;nbsp;&amp;nbsp;&lt;strong&gt;nRF5 SDK.&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to write data to flash, but how do I know which addresses are available?</title><link>https://devzone.nordicsemi.com/thread/494474?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2024 06:32:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcec7903-b042-443f-9e9a-540ecf6ec843</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Which SDK version are you using? I am assuming that you are using nRF Connect SDK.&lt;/p&gt;
&lt;p&gt;You can try the NVS API in the&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/services/storage/nvs/nvs.html"&gt;Zephyr subsystem&lt;/a&gt;. You can find the sample at&amp;nbsp;ncs\v2.x.x\zephyr\samples\subsys\nvs\src and the documentation for the sample &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.4.0/page/zephyr/samples/subsys/nvs/README.html"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to write data to flash, but how do I know which addresses are available?</title><link>https://devzone.nordicsemi.com/thread/494456?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2024 04:01:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc052194-d735-4638-b0ec-7534c62a1599</guid><dc:creator>Mark</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Is there any other method? This method is a little difficult for me to operate.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to write data to flash, but how do I know which addresses are available?</title><link>https://devzone.nordicsemi.com/thread/494023?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2024 05:06:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70065e4d-f6ac-41e9-bd5f-53550c9c7519</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Please take a look at the &lt;a href="https://docs.zephyrproject.org/latest/services/settings/index.html"&gt;settings&lt;/a&gt;&amp;nbsp;library in the Zephyr which gives you a very high level API to write to non volatile memory when you do not know which address to write to. You can use the default set partition in the system as this most likely will be initialized and used by other parts of the zephyr subsystem (in a non conflicting way) and your application can still use the API.&lt;/p&gt;
&lt;p&gt;A sample for this can be seen &lt;a href="https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/subsys/settings"&gt;here&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>