<?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>How to use nRF9160&amp;#39;s internal flash to store data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118201/how-to-use-nrf9160-s-internal-flash-to-store-data</link><description>Hi, 
 I use the nRF9160dk and I want to use nRF9160&amp;#39;s internal flash which has 1MB flash to store a few data. But I cannot find any guideline about using nRF9160&amp;#39;s internal flash. 
 So how to use this 1MB flash to store data? 
 board: nrf9160dk SDK: v2</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Feb 2025 09:33:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118201/how-to-use-nrf9160-s-internal-flash-to-store-data" /><item><title>RE: How to use nRF9160's internal flash to store data</title><link>https://devzone.nordicsemi.com/thread/525226?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 09:33:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e7b8ad8-9d3d-48f9-9f70-6843bdbaae8e</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, but this might require you to also adjust other&amp;nbsp;partitions to avoid memory overlapping.&lt;br /&gt;&lt;br /&gt;If you have any issues, please create a new ticket.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use nRF9160's internal flash to store data</title><link>https://devzone.nordicsemi.com/thread/525212?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 08:51:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a2ed701-c424-4b75-b61e-8fe22e5f2823</guid><dc:creator>Liza</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I notice that the default storage_partition=32KB. Could I configure the size to like 100KB?&lt;/p&gt;
&lt;p&gt;&lt;img style="height:548px;max-height:548px;max-width:334px;" height="371" src="https://devzone.nordicsemi.com/resized-image/__size/668x1096/__key/communityserver-discussions-components-files/4/pastedimage1740732679258v1.jpeg" width="334" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Liza&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use nRF9160's internal flash to store data</title><link>https://devzone.nordicsemi.com/thread/521205?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2025 02:50:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb3a81bd-d6b7-452f-baf1-effced9b989e</guid><dc:creator>Liza</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your remind! I fix the problem.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Liza&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use nRF9160's internal flash to store data</title><link>https://devzone.nordicsemi.com/thread/520874?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2025 13:04:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a146f1e-bfbd-4a1f-8df9-37f8cbe9cd95</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You have an overflow in your code.&lt;code&gt;uint8_t&lt;/code&gt;&lt;span&gt;&amp;nbsp;type can only hold values from&amp;nbsp;&lt;/span&gt;&lt;code&gt;0&lt;/code&gt;&lt;span&gt;&amp;nbsp;to&amp;nbsp;&lt;/span&gt;&lt;code&gt;255&lt;/code&gt;&lt;span&gt;. If you assign this 1000 then you get an overflow, which results in an incorrect value being stored.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Try changing this to for example 250 and see if that fixes your issue,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jared&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use nRF9160's internal flash to store data</title><link>https://devzone.nordicsemi.com/thread/520729?ContentTypeID=1</link><pubDate>Thu, 30 Jan 2025 13:41:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d76d12a-3907-4d97-916b-12d76baa0e61</guid><dc:creator>Liza</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;This is the source code:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/storage.txt"&gt;devzone.nordicsemi.com/.../storage.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Liza&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use nRF9160's internal flash to store data</title><link>https://devzone.nordicsemi.com/thread/520326?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2025 09:48:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37195f7a-f909-436a-9b0c-01751b72a3f9</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi Liza,&lt;/p&gt;
&lt;p&gt;Could you share your code?&lt;/p&gt;
&lt;p&gt;regards&lt;br /&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use nRF9160's internal flash to store data</title><link>https://devzone.nordicsemi.com/thread/519934?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2025 08:41:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce1e09cf-dcbc-4e41-bb29-ce1d35dac8c4</guid><dc:creator>Liza</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I write int data = 1000 to NVS, and then read from NVS reading = 1000. But after resetting the device, the reading becomes 232. I don&amp;#39;t know what&amp;#39;s wrong.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Liza&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use nRF9160's internal flash to store data</title><link>https://devzone.nordicsemi.com/thread/519787?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2025 13:49:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a688309f-b303-4557-ba41-c00d249ba553</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi Liza,&lt;/p&gt;
&lt;p&gt;As in the sample you would use the nvs_read() function to read the store data, after you have written it to NVS. The function takes in the ID and the data buffer the buffer where the data should be temporary stored in. Do you have any question related to this function?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use nRF9160's internal flash to store data</title><link>https://devzone.nordicsemi.com/thread/519699?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2025 09:07:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a87d172a-5d1f-4c9f-8b3e-288bc81f2dfc</guid><dc:creator>Liza</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;I study the NVS sample. I want to ask how to read the stored data instead of the&amp;nbsp;&lt;span&gt;Number of bytes read?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Liza&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use nRF9160's internal flash to store data</title><link>https://devzone.nordicsemi.com/thread/519438?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2025 06:07:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef9e37b5-7895-4fa1-8e65-368c443dfd8b</guid><dc:creator>Liza</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;That&amp;#39;s useful! Thank you!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Liza&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use nRF9160's internal flash to store data</title><link>https://devzone.nordicsemi.com/thread/519348?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2025 15:02:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fd3074a-909a-414c-9057-a30138c7c37d</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you look at &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/persistent-storage-of-keys-and-data-using-the-nrf-connect-sdk"&gt;this&lt;/a&gt; blog post? It lists some storing alternatives available in Zephyr,&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>