<?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_write() in quick succession corrupts data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66741/fds_record_write-in-quick-succession-corrupts-data</link><description>All of the FDS examples I have seen seem to ignore the fact that fds_record_write() just queues a write, and therefore the data pointed to by p_record.data.p_data needs to not change until the write operation has actually been processed. 
 How do I know</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Oct 2020 21:01:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66741/fds_record_write-in-quick-succession-corrupts-data" /><item><title>RE: fds_record_write() in quick succession corrupts data</title><link>https://devzone.nordicsemi.com/thread/273063?ContentTypeID=1</link><pubDate>Mon, 05 Oct 2020 21:01:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11dd7cec-373e-4121-b4c6-6ea62f261219</guid><dc:creator>Chris Ergo</dc:creator><description>&lt;p&gt;Thanks for the suggestion. I tried it and it works.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m still curious if there is an official recommended way to handle this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fds_record_write() in quick succession corrupts data</title><link>https://devzone.nordicsemi.com/thread/273060?ContentTypeID=1</link><pubDate>Mon, 05 Oct 2020 20:27:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:308c9f25-e23d-4d55-bba8-6322b65391b9</guid><dc:creator>kmassa5</dc:creator><description>&lt;p&gt;Hey! I&amp;#39;ve had this problem, try setting a flag variable upon issuing a write command that is only unset by FDS_EVT_WRITE events (within the fds_evt_handler function). Use the flag to control when write commands can be executed!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>