<?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_evt_handler() not invoked for 52840, SDKv14.2, S140 ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32582/fds_evt_handler-not-invoked-for-52840-sdkv14-2-s140</link><description>I&amp;#39;m running the code as shown in FDS Usage here: http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/lib_fds_usage.html?cp=4_0_0_3_50_3 
 
 The FDS_EVT_INIT in fds_evt_handler() does not occur until I flash the application to the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 Apr 2018 16:27:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32582/fds_evt_handler-not-invoked-for-52840-sdkv14-2-s140" /><item><title>RE: fds_evt_handler() not invoked for 52840, SDKv14.2, S140 ?</title><link>https://devzone.nordicsemi.com/thread/126693?ContentTypeID=1</link><pubDate>Tue, 03 Apr 2018 16:27:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f273972f-8701-467b-88f2-8bcb3a03d46f</guid><dc:creator>wc4765</dc:creator><description>&lt;p&gt;Hello emdi,&lt;/p&gt;
&lt;p&gt;I have isolated and corrected my problem.&amp;nbsp; The nrf_sdh_soc.c file was not being included in my build.&amp;nbsp; Because of this SOC events were not happening.&amp;nbsp; It&amp;#39;s a consequence of the compile-time OBSERVER inclusion that I was not getting any error or warning that this file was missing from my build.&lt;/p&gt;
&lt;p&gt;Thanks for your help.&amp;nbsp; This ticket can be closed.&lt;/p&gt;
&lt;p&gt;Warren&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fds_evt_handler() not invoked for 52840, SDKv14.2, S140 ?</title><link>https://devzone.nordicsemi.com/thread/126585?ContentTypeID=1</link><pubDate>Tue, 03 Apr 2018 07:27:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:801758a6-fecc-4431-ae8f-c04c3d43dba0</guid><dc:creator>emdi</dc:creator><description>&lt;p&gt;Your understanding of the problem is correct, the handler is not invoked so the initialization only performs one step every bootup. Could you provide a snippet of you main file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fds_evt_handler() not invoked for 52840, SDKv14.2, S140 ?</title><link>https://devzone.nordicsemi.com/thread/126415?ContentTypeID=1</link><pubDate>Thu, 29 Mar 2018 22:03:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d2bbf29-21fb-44f5-99f7-6d06f026d5ee</guid><dc:creator>wc4765</dc:creator><description>&lt;p&gt;I do have NRF_FSTORAGE_ENABLED and NRF_SDH_SOC_ENABLED both set to 1.&amp;nbsp; And I have successfully registered an FDS event handler.&lt;/p&gt;
&lt;p&gt;I have figured out additional information about the problem I am seeing.&amp;nbsp; The event handler does not get called with the FDS_EVT_INIT event upon startup unless all FDS_VIRTUAL _PAGES get initialized with valid tag values of FDS_PAGE_TAG_SWAP or FDS_PAGE_TAG_DATA.&lt;/p&gt;
&lt;p&gt;I am now using a nRF52832 processor (PCA10040), SDK v14.2.0 and softdevice S132v5&lt;/p&gt;
&lt;p&gt;The sequence of events that causes the issue I see:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; - my application config has FDS_VIRTUAL_PAGES defined as 2&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; - erase flash&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; - load softdevice S132v5&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; - load applicattion&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; - upon startup no FDS_EVT_INIT occurs, but the first FDS_VIRTUAL_PAGE (0x7e000) contains a FDS_PAGE_TAG_SWAP value.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; - reset.&amp;nbsp; no FDS_EVT_INIT occurs but the second FDS_VIRTUAL_PAGE (0x7f000) contains a FDS_PAGE_TAG_DATA value&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; - reset.&amp;nbsp; The FDS_EVT_INIT now occurs&amp;nbsp; and will continue to occur on subsequent resets&lt;/p&gt;
&lt;p&gt;So the problem I am having is that successive reset operations after erasing the flash and loading softdevice and application appear to initialize only one FDS_VIRTUAL_PAGE at a time and the fds_evt_handler() will not happen until all tthe virtual pages are initialized with valid tags.&lt;/p&gt;
&lt;p&gt;If I build my application with FDS_VIRTUAL_PAGES defined as 3 instead of 2, then it will take 3 resets before the event handler will operate.&lt;/p&gt;
&lt;p&gt;Is there a problem with pages_init() in fds.c that appears to have a loop to initialize all FDS_VIRTUAL_PAGES??&lt;/p&gt;
&lt;p&gt;Warren&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fds_evt_handler() not invoked for 52840, SDKv14.2, S140 ?</title><link>https://devzone.nordicsemi.com/thread/125339?ContentTypeID=1</link><pubDate>Wed, 21 Mar 2018 11:40:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9186f943-91d2-4d61-9a9b-2eb9bae50f0f</guid><dc:creator>emdi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am guessing you are using the SoftDevice. It seems you have not registered a handler for SoftDevice events.&lt;/p&gt;
&lt;p&gt;This should be done automatically (in nrf_fstorage_sd.c that&amp;#39;s done at the top of the file):&lt;/p&gt;
&lt;p&gt;/* Define a nrf_sdh_soc event observer to receive SoftDevice system events. */&lt;br /&gt;NRF_SDH_SOC_OBSERVER(m_sys_obs, 0, nrf_fstorage_sys_evt_handler, NULL);&lt;br /&gt;provided you have a few #defines set.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Have you set NRF_FSTORAGE_ENABLED to 1 ?&lt;br /&gt;Have you set NRF_SDH_SOC_ENABLED to 1 ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>