<?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>My fstorage code stop work after advertising start</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22584/my-fstorage-code-stop-work-after-advertising-start</link><description>Firstly sorry for my bad english. 
 I wanna make a data logger and i am using fstorage module. Before advertising start everything works correctly. However, when advertising start, my code stops working. I am using nrf51822 and sdk 12.2. 
 //Working</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Jun 2017 08:01:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22584/my-fstorage-code-stop-work-after-advertising-start" /><item><title>RE: My fstorage code stop work after advertising start</title><link>https://devzone.nordicsemi.com/thread/88837?ContentTypeID=1</link><pubDate>Thu, 08 Jun 2017 08:01:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a1b7889-1e1d-4261-b073-644d6478e78b</guid><dc:creator>secondbest</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I figure out my problem. It is not about advertising. The problem is that log data should not write inside timer handler. The code crash because of this situation. Write log data inside main while.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My fstorage code stop work after advertising start</title><link>https://devzone.nordicsemi.com/thread/88841?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2017 13:19:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:203aade2-8163-4724-9de5-0e16844c0990</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Could you show what you code looks like, main.c?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My fstorage code stop work after advertising start</title><link>https://devzone.nordicsemi.com/thread/88840?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2017 12:42:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c67fa0e9-e6e1-44b2-afdb-5444e01d308c</guid><dc:creator>secondbest</dc:creator><description>&lt;p&gt;Kristin, i know it is silly but i already have this function ( fs_sys_event_handler(sys_evt) ). Any other solution?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My fstorage code stop work after advertising start</title><link>https://devzone.nordicsemi.com/thread/88839?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2017 12:13:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3af9713d-b474-4579-8b3b-53bf7fb022ef</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;The reason is most likely that fs_sys_event_handler(sys_evt) is not added to sys_evt_dispatch(), see &lt;a href="https://devzone.nordicsemi.com/question/139187/fstorage-not-initializing-properly-in-my-app/?answer=139321#post-id-139321"&gt;this&lt;/a&gt; answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My fstorage code stop work after advertising start</title><link>https://devzone.nordicsemi.com/thread/88843?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2017 08:25:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2786b00-4d82-4da7-9d9a-1a3319d2195d</guid><dc:creator>secondbest</dc:creator><description>&lt;p&gt;Hi Kristin, After debug with RTT and Jlink Viewer probably I found the problem. After advertising start; &amp;quot;fs_evt_handler&amp;quot; function does not call by processor. My code stop at &amp;quot;while(fs_callback_flag == 1);&amp;quot; Do you have any solution? Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My fstorage code stop work after advertising start</title><link>https://devzone.nordicsemi.com/thread/88842?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2017 06:46:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44eb1881-dbc9-4441-87dc-ef19318e314b</guid><dc:creator>secondbest</dc:creator><description>&lt;p&gt;Hi Kristin, thanks for response. I am not getting error at advertising start. I am getting error at fs_store inside, at if(!check_config(p_config)) line but i cannot follow the error code with debugger. However, If i use fstore before advertising, there is no error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My fstorage code stop work after advertising start</title><link>https://devzone.nordicsemi.com/thread/88838?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2017 05:52:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21939add-8b66-4604-9522-f5d4b0580504</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Which error code do you get you want to start advertising? Do you set up your advertising somehere (advertising_init() )?&lt;/p&gt;
&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 in combination with BLE. Perhaps it can be useful to take a look at it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>