<?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 Problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21575/fds-problem</link><description>Hello, 
 What I want to do is to store custom data to flash using FDS in &amp;quot;disconnected&amp;quot; event.
 
 When I try to write the data in &amp;quot;disconnected&amp;quot; event, the write_flag is never raised. Is there any solutions to help me to solve this problem? 
 [Updated</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Apr 2017 08:57:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21575/fds-problem" /><item><title>RE: FDS Problem</title><link>https://devzone.nordicsemi.com/thread/84729?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2017 08:57:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f919906d-6b5b-4b42-90b6-3af0b0911bcd</guid><dc:creator>sara</dc:creator><description>&lt;p&gt;Understood, thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS Problem</title><link>https://devzone.nordicsemi.com/thread/84728?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2017 08:51:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:226107fe-445a-44ea-90b6-c61d94a029ce</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You are calling fds_write() from the same interrupt context as the my_fds_evt_handler() would be called from, so this will not work.&lt;/p&gt;
&lt;p&gt;If you just set a flag when you get the BLE_GAP_DISCONNECTED_EVENT, and call fds_write() from the main loop if it is set, it should work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>