<?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>Function fds_stat never returns</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12982/function-fds_stat-never-returns</link><description>Hi 
 I&amp;#39;ve implemented support for the FStorage and the FDS in our application. In some cases it happens, that the function &amp;quot;fds_stat&amp;quot; does not return. 
 The reason can be found in the subfunction &amp;quot;dirty_records_stat&amp;quot;. If an invalid header is found the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Oct 2016 03:21:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12982/function-fds_stat-never-returns" /><item><title>RE: Function fds_stat never returns</title><link>https://devzone.nordicsemi.com/thread/49473?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2016 03:21:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51c81048-a51c-4a8e-8c3b-e7509aba4651</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Function fds_stat never returns</title><link>https://devzone.nordicsemi.com/thread/49476?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2016 13:18:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:032e39b3-2e93-45e0-8ed7-e5b8bd2707ae</guid><dc:creator>Jon (jono)</dc:creator><description>&lt;p&gt;Might be another Issue here as well. A colege of mine worked around 2 issues in fds. One issue was if the device was reset during or imediately after a page erase if we remember right.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Function fds_stat never returns</title><link>https://devzone.nordicsemi.com/thread/49475?ContentTypeID=1</link><pubDate>Tue, 26 Jul 2016 09:05:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fdb7545-4f7a-4198-8985-b03d000b54d5</guid><dc:creator>Adrian Eggenberger</dc:creator><description>&lt;p&gt;Thank you for the update.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Function fds_stat never returns</title><link>https://devzone.nordicsemi.com/thread/49474?ContentTypeID=1</link><pubDate>Tue, 26 Jul 2016 08:40:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33478e4c-92cf-40e9-9cdf-56b0a7df35e7</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have checked the issue tracker and the repository. The issue was solved a month ago, and will be included in an upcoming SDK release.&lt;/p&gt;
&lt;p&gt;What was the fix? Remove the &amp;quot;else&amp;quot;, as also was suggested in the question comments.&lt;/p&gt;
&lt;p&gt;Regards, Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Function fds_stat never returns</title><link>https://devzone.nordicsemi.com/thread/49472?ContentTypeID=1</link><pubDate>Mon, 25 Jul 2016 14:57:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1afb35f8-e9e7-4438-931e-93d3c1d48133</guid><dc:creator>Adrian Eggenberger</dc:creator><description>&lt;p&gt;I fixed the issue the same way as you proposed. Until now it seems to work as expected. Maybe the bug will be fixed in an upcoming SDK. Any response from the developer team about the issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Function fds_stat never returns</title><link>https://devzone.nordicsemi.com/thread/49471?ContentTypeID=1</link><pubDate>Mon, 25 Jul 2016 14:32:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e043286-fa9f-4213-a017-a03e7a2e93fd</guid><dc:creator>HenryM</dc:creator><description>&lt;p&gt;Has there been any update to this?   Simply removing the &amp;quot;else,&amp;quot; but leaving the code in place such that the pointer is always incremented, appears to resolve the issue.  It appears that even a dirty record seems to break this function.  I understand that if a header is actually invalid, it would be difficult to handle, but dirty headers are perfectly valid.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Function fds_stat never returns</title><link>https://devzone.nordicsemi.com/thread/49470?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2016 11:33:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:974b8d88-50c0-4326-9538-353aad6eb93c</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Thank you for reporting this bug, it is much appreciated!&lt;/p&gt;
&lt;p&gt;I do not know if increasing the pointer would fix this, as calculating the next p_rec depends on information from the record header (which in the given case is invalid). I have registered the issue in our internal issue tracker, so that the developers will have a look at it and find a solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>