<?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>Flash memory usage in Mesh sdk_5</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93212/flash-memory-usage-in-mesh-sdk_5</link><description>Hello! I am working on a project I have set &amp;quot; sensor/server&amp;quot; as my starting point. The sensor is successfully interfaced with NRF52 I need to store the calibrated data of the sensor once the sensor achieve its accuracy, so that whenever the device is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 31 Oct 2022 20:22:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93212/flash-memory-usage-in-mesh-sdk_5" /><item><title>RE: Flash memory usage in Mesh sdk_5</title><link>https://devzone.nordicsemi.com/thread/393338?ContentTypeID=1</link><pubDate>Mon, 31 Oct 2022 20:22:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fa24434-4afa-40b5-b96f-25a24ee49217</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi msalmankhan334,&lt;/p&gt;
&lt;p&gt;Sorry for the late follow up.&lt;/p&gt;
&lt;p&gt;Unfortunately, there are no sample or reference for the Flash Manager.&lt;br /&gt;There is an application of the Flash Manager in mesh/core/src/mesh_config_flashman_glue.c.&lt;/p&gt;
&lt;p&gt;I tried to look into it to see if I can quickly write&amp;nbsp;some code snippets that works (without any warranty). However, I was not successful in producing any. &lt;br /&gt;The experience did make me agree that proceeding with the Flash Manager can be quite challenging.&lt;br /&gt;There are other things you would also need to look into such as memory layout.&lt;/p&gt;
&lt;p&gt;Meanwhile, the nRF5 SDK for Mesh is in maintenance, and support for it will be very limited.&lt;/p&gt;
&lt;p&gt;What stage are you currently at with your project? If you are&amp;nbsp;still in the early stages, you might want to consider using the nRF Connect SDK instead.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash memory usage in Mesh sdk_5</title><link>https://devzone.nordicsemi.com/thread/392776?ContentTypeID=1</link><pubDate>Thu, 27 Oct 2022 09:35:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:baad0a20-35d9-4b0a-a0b4-8dc4916cf47e</guid><dc:creator>msalmankhan334</dc:creator><description>&lt;p&gt;Okay , I understood.&lt;br /&gt;Is there any sample code to use flash manager or any reference example to start working on, because its very hard especially for comer to accomplish this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash memory usage in Mesh sdk_5</title><link>https://devzone.nordicsemi.com/thread/392649?ContentTypeID=1</link><pubDate>Wed, 26 Oct 2022 13:38:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39280332-3999-4e7e-9c7f-e87ba5462773</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;msalmankhan334,&lt;/p&gt;
[quote user=""]To store this data I have tried fstorage example but I think the documentation suggest to stick to&amp;nbsp;&lt;strong&gt;flash_manager&amp;nbsp;&lt;/strong&gt;provided in the mesh SDK.[/quote]
&lt;p&gt;Are you talking about&amp;nbsp;the advice on &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v5.0.0/md_doc_user_guide_integrating_mesh_nrf5_sdk.html"&gt;this page&lt;/a&gt;? Base on the discussion&amp;nbsp;regarding&amp;nbsp;&lt;strong&gt;fstorage&lt;/strong&gt; there, I&amp;nbsp;would conclude the same&amp;nbsp;as you did, that is to stick with &lt;strong&gt;flash_manager&lt;/strong&gt;.&amp;nbsp;&lt;/p&gt;
[quote user=""]The page/File size is 128 bytes[/quote]
&lt;p&gt;I checked the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v5.0.0/md_doc_user_guide_modules_flash_manager.html"&gt;Flash Manager documentation&lt;/a&gt;. I think the 128 bytes you mention is the row&amp;nbsp;for the field &amp;quot;Data&amp;quot; of the flash entry format?&lt;br /&gt;If so, that is just the limit of one entry. Could you please try just split up your data and store it in multiple entries? Based on&amp;nbsp;the number from your question and in the documentation, I don&amp;#39;t think storing that much would be a problem at all.&lt;/p&gt;
&lt;p&gt;Additionally, since the data you store is calibration data, I understand that it would only be done once or very few times over&amp;nbsp;a device&amp;#39;s life, right? If so, there should be even less concerned with writing many flash entries.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>