<?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_record_find axes using</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23291/fds_record_find-axes-using</link><description>Good morning
I use the fds function to store and read data in flash memory.
FDS_SUCCES is not returned by the fds_record_find function when reading data, so the read function does not work
Help me solve this part
Below is my code 
 #include &amp;quot;sdk_config</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Jul 2017 14:51:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23291/fds_record_find-axes-using" /><item><title>RE: fds_record_find axes using</title><link>https://devzone.nordicsemi.com/thread/91576?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2017 14:51:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbc17236-226c-4353-a78b-3480fcf46f1a</guid><dc:creator>samet kocatepe</dc:creator><description>&lt;p&gt;hi psj, thank you for sharing your experience. i was in struck like you and solved the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fds_record_find axes using</title><link>https://devzone.nordicsemi.com/thread/91575?ContentTypeID=1</link><pubDate>Fri, 07 Jul 2017 01:17:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b36d842-2929-4c0b-9ba3-8f3924cafc3c</guid><dc:creator>psj</dc:creator><description>&lt;p&gt;I&amp;#39;ve fixed the issue.
I have a&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void sys_evt_dispatch (uint32_t sys_evt)
{
    Fs_sys_event_handler (sys_evt);
} 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I missed this part.
I am still a starter developer and I am not enough.
Thank you for your reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fds_record_find axes using</title><link>https://devzone.nordicsemi.com/thread/91568?ContentTypeID=1</link><pubDate>Fri, 07 Jul 2017 00:13:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9da3b279-b6c8-475e-a1b4-5bf05f47736a</guid><dc:creator>psj</dc:creator><description>&lt;p&gt;We have not resolved the issue yet.
I explained my code by asking you to include the code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fds_record_find axes using</title><link>https://devzone.nordicsemi.com/thread/91574?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2017 09:45:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c4077cf-04c4-462c-8845-a40583daca9f</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;&amp;quot;I&amp;#39;ve fixed this.&amp;quot;&lt;/p&gt;
&lt;p&gt;Are you saying that you solved the problem and don&amp;#39;t need more help?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fds_record_find axes using</title><link>https://devzone.nordicsemi.com/thread/91570?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2017 09:07:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09f62f6f-92b8-4b44-90c0-bd54f92f5c0e</guid><dc:creator>psj</dc:creator><description>&lt;p&gt;In the ble_app_uart example, only the static void nus_data_handler function enter code here&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  static void nus_data_handler(ble_nus_t * p_nus, uint8_t * p_data, uint16_t length)
{
    static uint8_t state=1,count=0,j;
	uint8_t d[20],resule[2]={&amp;#39;0&amp;#39;,&amp;#39;1&amp;#39;},save_uuid2[32];
	switch(state)
	{
		case 1:
		{
			for (uint32_t i = 0; i &amp;lt; length; i++)
			{
					d[i]=p_data[i];
					if( d[i]==&amp;#39;1&amp;#39; &amp;amp;&amp;amp; length ==1)
					{
						printf(&amp;quot;saver\n\r&amp;quot;);
						printf(&amp;quot;%d  %d\n\r&amp;quot;,d[0],length);
						state =2;
						break;
					}
					if( d[i]==&amp;#39;2&amp;#39; &amp;amp;&amp;amp; length ==1)
					{
							printf(&amp;quot;saver\n\r&amp;quot;);
						uuid_storage_read(FILE_ID,REC_KEY_ID,save_uuid2);
							printf(&amp;quot;saver\n\r&amp;quot;);
						for(j=0;j&amp;lt;32;j++)
						{
							printf(&amp;quot;%d \n\r&amp;quot;,save_uuid2[j]);
						}
							printf(&amp;quot;saver\n\r&amp;quot;);
						break;
					}
					if( d[i]==&amp;#39;3&amp;#39; &amp;amp;&amp;amp; length ==1)
					{
						printf(&amp;quot;del\n\r&amp;quot;);
						uuid_del(FILE_ID,REC_KEY_ID);
								printf(&amp;quot;del\n\r&amp;quot;);
						break;
					}
			}
			break;
		}
		case 2:
		{
			for (uint32_t i = 0; i &amp;lt; 32; i++)
			{
				save_uuid[i] = p_data[i];
			}
			count++;
			uuid_storage_write(FILE_ID,REC_KEY_ID,save_uuid,16);
			 ble_nus_string_send(&amp;amp;m_nus, &amp;amp;resule[1], 1);
			state=1;
			break;
		}
	}

}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I&amp;#39;ve fixed this.
If ble is 1, it fds_write 16 digit value and when value of 2 is entered, it deletes when output 3 value comes in.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fds_record_find axes using</title><link>https://devzone.nordicsemi.com/thread/91569?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2017 08:56:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66171c5d-81e3-4a48-a412-28aa518e2ed5</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Can you please edit your initial post and include the code showing how you use your functions? I.e. in what order you call every function and how you handle the asynchronous events?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fds_record_find axes using</title><link>https://devzone.nordicsemi.com/thread/91572?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2017 08:29:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7b099d3-7193-4346-a63f-b4b4c3ac6c97</guid><dc:creator>psj</dc:creator><description>&lt;p&gt;When I used the init and write functions, I returned fds_success.
The file id and key are&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define FILE_ID 0x1111
#define REC_KEY_ID 0x2222 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This variable was used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fds_record_find axes using</title><link>https://devzone.nordicsemi.com/thread/91573?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2017 08:14:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4748002-5153-4e15-8d22-8cd3c9e4227e</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;So are you sure that you are using the right file ID and record key and that you have actually successfully written a record before?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fds_record_find axes using</title><link>https://devzone.nordicsemi.com/thread/91571?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2017 08:03:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2532b61-2af4-4c2f-9a23-daefc578d94d</guid><dc:creator>psj</dc:creator><description>&lt;p&gt;The function returns FDS_ERR_NOT_FOUND
I have seen an example of using FDS but have not found a solution ....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fds_record_find axes using</title><link>https://devzone.nordicsemi.com/thread/91567?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2017 07:57:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ff08e54-8833-4d6d-8bcc-c82e316922d4</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;So if not FDS_SUCCESS, what does the function return? The return code might give you a clue of what is going on. You can look up what the codes mean by searching for &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.0.0/group__fds.html#ga70dcedbba2d42ed69235d168e534b203"&gt;the function&lt;/a&gt; on infocenter.&lt;/p&gt;
&lt;p&gt;Be also aware that some of the FDS functions are asynchronous. Meaning that after you call the function you will have to wait for a returned event before you can continue with other FDS operations. Make sure to read up on the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.1.0/lib_fds_usage.html?cp=4_0_0_3_43_2"&gt;FDS Usage documentation&lt;/a&gt; if you haven&amp;#39;t done so already.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>