<?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>how to use fds_write() fds_read() SDK13</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22927/how-to-use-fds_write-fds_read-sdk13</link><description>I try to implement this library to my code. 
 uint32_t settings_set_erase_flag(int32_t flag)
{
	uint32_t err_code = fds_write(flag, ERASE_BOND_FLAG);
	return err_code;
}

int32_t settings_get_erase_flag(void)
{
int32_t flag;
 uint32_t err_code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 26 Jun 2017 14:39:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22927/how-to-use-fds_write-fds_read-sdk13" /><item><title>RE: how to use fds_write() fds_read() SDK13</title><link>https://devzone.nordicsemi.com/thread/90193?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2017 14:39:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0556fa87-5a61-442b-970e-491d2f1c4f6d</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;What happens if you test fds_test_write() and fds_read() functions from the example I linked to, do you see the same problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to use fds_write() fds_read() SDK13</title><link>https://devzone.nordicsemi.com/thread/90195?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2017 09:10:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86376974-2ea3-40f1-8ca9-f4836215681f</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;FDS_ERR_NOT_FOUND,          //!&amp;lt; Error. The record was not found.&lt;/p&gt;
&lt;p&gt;therefore, preview command&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;settings_set_erase_flag(0x4D);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;doesn&amp;#39;t done. Why?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to use fds_write() fds_read() SDK13</title><link>https://devzone.nordicsemi.com/thread/90194?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2017 09:05:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e838ce91-7271-4b3f-8134-1df3ccaca530</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Did you also check what error code 0xA represents?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to use fds_write() fds_read() SDK13</title><link>https://devzone.nordicsemi.com/thread/90190?ContentTypeID=1</link><pubDate>Fri, 23 Jun 2017 09:30:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bceb2780-325f-4b5a-897d-25be06b8910b</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;returned code from
uint32_t err_code = fds_read(&amp;amp;flag, ERASE_BOND_FLAG);&lt;/p&gt;
&lt;p&gt;0x0A&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to use fds_write() fds_read() SDK13</title><link>https://devzone.nordicsemi.com/thread/90191?ContentTypeID=1</link><pubDate>Fri, 23 Jun 2017 08:43:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:995291f0-d8f8-4582-bd53-0fdeed0c777c</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;ok, give a little time, little bit later, I&amp;#39;ll check it and answer. ok?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to use fds_write() fds_read() SDK13</title><link>https://devzone.nordicsemi.com/thread/90192?ContentTypeID=1</link><pubDate>Fri, 23 Jun 2017 08:41:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1c08d2c-8ace-4d73-9b54-3376f245d370</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;For me to be able to help in the debugging,  could you please answer my question?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to use fds_write() fds_read() SDK13</title><link>https://devzone.nordicsemi.com/thread/90189?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2017 08:00:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7e68017-9cae-4991-9044-189e50e473c4</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;I suppose decide this question. Is in&amp;#39;t correct that I shoul transfer to write 0xfffff6 for ex. if I want to write 10?
When I write this number, returned 10.
May be from this was problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to use fds_write() fds_read() SDK13</title><link>https://devzone.nordicsemi.com/thread/90188?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2017 06:51:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68463df3-35f0-481a-b6e0-47ed72512729</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Inside ´fds_read()´ there are multiple functions, which of them is returning the error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to use fds_write() fds_read() SDK13</title><link>https://devzone.nordicsemi.com/thread/90187?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2017 12:18:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e51d569-d47a-4072-b838-368d2cd73c74</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;If You see first post, I return 0x33 if in the function&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;settings_get_erase_flag()
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I call&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;fds_read()

if(err_code != FDS_SUCCESS)
        return 0x33;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to use fds_write() fds_read() SDK13</title><link>https://devzone.nordicsemi.com/thread/90184?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2017 12:02:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:741e1c8a-3123-4094-bf73-1e769d18b8be</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;del 11111111&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to use fds_write() fds_read() SDK13</title><link>https://devzone.nordicsemi.com/thread/90186?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2017 11:48:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8de3ff20-17b9-4070-b9b1-528b292a885e</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Which function inside fds_read() return 0x33?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to use fds_write() fds_read() SDK13</title><link>https://devzone.nordicsemi.com/thread/90196?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2017 13:19:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbf581f1-d857-4fcc-a608-a33f64df22c2</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;I use same code base on the your code:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static ret_code_t fds_read(int32_t * sens, uint16_t key)
{


fds_flash_record_t  flash_record;
	fds_record_desc_t   record_desc;		
	uint32_t 						err_code;
	
	

while(fds_is_existed_record(&amp;amp;record_desc, key))
		{
			if((err_code = fds_record_open(&amp;amp;record_desc, &amp;amp;flash_record)) != FDS_SUCCESS)				
				return err_code;						

			* sens = * (int32_t *)flash_record.p_data;

			return fds_record_close(&amp;amp;record_desc);			
	

}
	return FDS_ERR_NOT_FOUND;		
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to use fds_write() fds_read() SDK13</title><link>https://devzone.nordicsemi.com/thread/90185?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2017 13:12:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd69e869-89e1-4ae0-83af-bb0fad491502</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;The example ble_app_hrs-fds-test-github.zip in &lt;a href="https://devzone.nordicsemi.com/question/114194/assistance-with-fds/?answer=114227#post-id-114227"&gt;this&lt;/a&gt; answer shows how to  use FDS wiht SDK 12.2. It should be quite easy to copy the FDS part to a SDK 13 example and make it work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>