<?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>FDS and additional wear leveling</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109032/fds-and-additional-wear-leveling</link><description>Based on the Nordic documentation , I see that there&amp;#39;s already wear leveling built into FDS, which is one of the benefits of using it over something like fstorage . 
 From what I have seen so far, it appears that there&amp;#39;s no way to limit the size of a</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 Mar 2024 13:58:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109032/fds-and-additional-wear-leveling" /><item><title>RE: FDS and additional wear leveling</title><link>https://devzone.nordicsemi.com/thread/472970?ContentTypeID=1</link><pubDate>Fri, 08 Mar 2024 13:58:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1720579e-ff3b-48d8-bc3e-2dc635066d50</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What you suggest should be doable, yes, using the FDS API. Please note however that there are no concepts of &amp;quot;maximum number of records of a given type&amp;quot; in FDS, so you would have to implement that mechanism yourself. Please also consider first if this scheme is really what you want. It sounded like you wanted to discard new log messages, if the log was already full. Logs are typically most useful if they contain the last log messages, as typically you would want to read the logs if some problem has occured or some recent events need investigating.&lt;/p&gt;
&lt;p&gt;Regarding flash wear and planning for the device to last, the most important parameters are the amount of data written (during the expected lifetime of the device) and the number of pages used for FDS.&lt;/p&gt;
&lt;p&gt;Please note, that a record update in FDS is actually a write and a delete; The new version of the record is written, and the old version of the record is marked for deletion (invalidated.) Thus an update appending data to an existing record spends more writes than storing that appended data as its own record.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>