<?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>Help in using FDS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23304/help-in-using-fds</link><description>Hi all, 
 I have some questions regarding the use of FDS. I understand that every record is assigned a key and file ID. I manage to get basic delete, read and write functions to work. 
 Assuming that I am using the following: 
 fileID = 0x1000;
recordKey</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 07 Jul 2017 00:09:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23304/help-in-using-fds" /><item><title>RE: Help in using FDS</title><link>https://devzone.nordicsemi.com/thread/91633?ContentTypeID=1</link><pubDate>Fri, 07 Jul 2017 00:09:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51dc4bd8-89ee-44f8-9df9-f7fc7d766b13</guid><dc:creator>kian79</dc:creator><description>&lt;p&gt;Thanks Martin for the description on how records are organised.  I am however still having the same problem.&lt;/p&gt;
&lt;p&gt;I am attaching my codes in the link here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://gist.github.com/KianYeo/ad87c11e4083fa028b7857305016c423"&gt;gist.github.com/.../ad87c11e4083fa028b7857305016c423&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help in using FDS</title><link>https://devzone.nordicsemi.com/thread/91632?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2017 15:43:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21066078-ecc7-4f1b-bc1e-b7076abcf65f</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think you might be confusing record &lt;em&gt;keys&lt;/em&gt; and record &lt;em&gt;IDs&lt;/em&gt;. Record keys identify records within a file. You can have two or more files, each containing one or more records with keys that might be identical to records in other files. Record IDs however, contain an ID that is globally unique for all records in all files. This field is computed by the system and should be invisible to the user. So even though you can access the record ID through the fds_record_desc_t structure you should never use it. The largest record ID is retrieved upon initialization and &lt;em&gt;incremented automatically&lt;/em&gt; every time a record is written to flash (or updated). If a record is deleted its ID will not be used again.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8666.Untitled.png" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;I tried to reproduce your 5 steps, but it seemed to work fine for me. On the second read operation I read out the value from the second write operation. When I tested I used a global &lt;code&gt;fds_record_desc_t&lt;/code&gt; descriptor.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>