<?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>Unable to read from flash using FDS ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55905/unable-to-read-from-flash-using-fds</link><description>Hello to all, 
 I have developed our project and successfully write data into flash but got stuck for retrieve data from flash. 
 When I call read function getting 0xffffff length continuous in record read here is my below function: 
 
 Getting stuck</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Dec 2019 09:27:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55905/unable-to-read-from-flash-using-fds" /><item><title>RE: Unable to read from flash using FDS ?</title><link>https://devzone.nordicsemi.com/thread/226901?ContentTypeID=1</link><pubDate>Fri, 27 Dec 2019 09:27:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8557bdf2-6e75-4016-82b6-1b3cdedada55</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Does fds_record_find() return success? The &amp;quot;read data message&amp;quot; gets printed either way.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to read from flash using FDS ?</title><link>https://devzone.nordicsemi.com/thread/226798?ContentTypeID=1</link><pubDate>Tue, 24 Dec 2019 10:22:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:974607c9-281e-4696-9eb2-d79f995623db</guid><dc:creator>dao</dc:creator><description>&lt;p&gt;Hi Vishal,&lt;/p&gt;
&lt;p&gt;I just did a little modification compared to the fds example of Nordic. Hope it helps.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot-from-2019_2D00_12_2D00_24-11_2D00_18_2D00_51.png" /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/flash_5F00_fds_5F00_test.zip"&gt;devzone.nordicsemi.com/.../flash_5F00_fds_5F00_test.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to read from flash using FDS ?</title><link>https://devzone.nordicsemi.com/thread/226757?ContentTypeID=1</link><pubDate>Mon, 23 Dec 2019 16:49:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1af1f983-3b1d-4d45-b3e2-97ba41c237d5</guid><dc:creator>Samarth</dc:creator><description>&lt;p&gt;Thanks for the reply,&lt;/p&gt;
&lt;p&gt;I have to replace while by if but getting the same issue here is below screenshot:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5633.flash.png" /&gt;&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to read from flash using FDS ?</title><link>https://devzone.nordicsemi.com/thread/226753?ContentTypeID=1</link><pubDate>Mon, 23 Dec 2019 16:11:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9da2c56d-2589-46ed-afa3-6c937e0ea673</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;good catch, &lt;a href="https://devzone.nordicsemi.com/members/dao"&gt;dao&lt;/a&gt;!&lt;/p&gt;
&lt;p&gt;Vishal,&amp;nbsp;maybe the while loop should&amp;nbsp;be replaced with an if statement?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to read from flash using FDS ?</title><link>https://devzone.nordicsemi.com/thread/226690?ContentTypeID=1</link><pubDate>Sun, 22 Dec 2019 22:37:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14f6a8b7-1645-400e-a8d7-b4b0ccfdf40f</guid><dc:creator>dao</dc:creator><description>&lt;p&gt;Hi Samarth,&lt;/p&gt;
&lt;p&gt;I think the problem is due to this line since it&amp;#39;s always true after the record is written.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;while (fds_record_find(file_no, file_key, &amp;amp;record_desc, &amp;amp;ftok) == FDS_SUCCESS)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>