<?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>Problem with using FDS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35061/problem-with-using-fds</link><description>Hi, 
 My setup: 
 * nRF52 DK 
 * nRF5_SDK_15.0.0_a53641a 
 * s132_nrf52_6.0.0 
 * SES V3.34b 64-bit. 
 
 I am struggling to properly use FDS module. I am using multiperipheral example, just for a training I would like to make something like this: 
 *</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Jun 2018 11:28:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35061/problem-with-using-fds" /><item><title>RE: Problem with using FDS</title><link>https://devzone.nordicsemi.com/thread/134716?ContentTypeID=1</link><pubDate>Tue, 05 Jun 2018 11:28:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0da4a544-be6c-4cf2-9c2d-50754e6c8447</guid><dc:creator>Pawel Niedbala</dc:creator><description>&lt;p&gt;Thanks, you are right, I don&amp;#39;t know why have I ignored this. Moving &lt;em&gt;m_deadbeef&lt;/em&gt; to globals as a static variable solved the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with using FDS</title><link>https://devzone.nordicsemi.com/thread/134706?ContentTypeID=1</link><pubDate>Tue, 05 Jun 2018 11:03:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ba755b3-5a32-4b9c-99c5-238d22c21de7</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Your&amp;nbsp;&lt;code&gt;m_deadbeef&lt;/code&gt; is not static, and only exist on the stack, so it will no longer exist when&amp;nbsp;&lt;code&gt;button_event_handler()&lt;/code&gt; returns. FDS is asynchronous, so it is highly likely that the memory has been overwritten by a subsequent function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>