<?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 event FDS_EVT_WRITE not triggered when using SDK 16.0.0 and Softdevice S132 7.0.1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61754/fds-event-fds_evt_write-not-triggered-when-using-sdk-16-0-0-and-softdevice-s132-7-0-1</link><description>Trying to get FDS working with the latest SDK 16.0.0 and Softdevice S132 7.0.1. The problem is that FDS event handler triggers only when softdevice is disabled. Here is the snippet: 
 
 I have FDS_VIRTUAL_PAGES set to 3 in my sdk_config.h. I erase the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 May 2020 11:42:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61754/fds-event-fds_evt_write-not-triggered-when-using-sdk-16-0-0-and-softdevice-s132-7-0-1" /><item><title>RE: FDS event FDS_EVT_WRITE not triggered when using SDK 16.0.0 and Softdevice S132 7.0.1</title><link>https://devzone.nordicsemi.com/thread/251930?ContentTypeID=1</link><pubDate>Wed, 27 May 2020 11:42:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:427664fa-a9b4-4ff7-80c7-8482bcf978c5</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I will forward the suggestion to the SDK developers so that they can consider it for a future release.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS event FDS_EVT_WRITE not triggered when using SDK 16.0.0 and Softdevice S132 7.0.1</title><link>https://devzone.nordicsemi.com/thread/251782?ContentTypeID=1</link><pubDate>Tue, 26 May 2020 18:36:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4955a0ec-fec0-4d97-83a1-222a08c76276</guid><dc:creator>radionoise</dc:creator><description>&lt;p&gt;Can we have some dummy function in nrf_sdh_soc.c which will be called in fds_init() if softdevice is present to introduce some compile-time check? &lt;/p&gt;
&lt;p&gt;This will save many hours of debugging for developers in future.&lt;/p&gt;
&lt;p&gt;If it&amp;rsquo;s not possible, maybe we can have a warning in FDS documentation which clearly says that this file should be added to build and in some circumstances it can be thrown out by linker and handler will not be called?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS event FDS_EVT_WRITE not triggered when using SDK 16.0.0 and Softdevice S132 7.0.1</title><link>https://devzone.nordicsemi.com/thread/251779?ContentTypeID=1</link><pubDate>Tue, 26 May 2020 17:56:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96a11334-fab1-4d85-a3af-b7684259a7f9</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="radionoise"]The problem is that if I remove it, the build still goes smoothly but the handler is not invoked.[/quote]
&lt;p&gt;Ah yes, my bad. This is due to the exotic nature of the section variables. I don&amp;#39;t see any way you could get a compile-time warning about this since all is done by linker &amp;quot;magic&amp;quot;.&lt;/p&gt;
[quote user="radionoise"]Can you please tell the place where it is being called?[/quote]
&lt;p&gt;It is registered in the end of the&amp;nbsp;nrf_sdh_soc.c by using the&amp;nbsp;NRF_SDH_STACK_OBSERVER macro, which adds this to a section variable by the linker. This section variable (sdh_stack_observers) holds a list over event handlers to be called, and all handlers are called from the loop in&amp;nbsp;nrf_sdh_evts_poll() in&amp;nbsp;components\softdevice\common\nrf_sdh.c.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS event FDS_EVT_WRITE not triggered when using SDK 16.0.0 and Softdevice S132 7.0.1</title><link>https://devzone.nordicsemi.com/thread/251756?ContentTypeID=1</link><pubDate>Tue, 26 May 2020 15:01:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6619ca62-b9b5-4755-bb8d-8faab2b05571</guid><dc:creator>radionoise</dc:creator><description>&lt;p&gt;Same happens when I do not compile SDK as a library. I&amp;#39;m including nrf_sdh_soc.c directly as any other source file in my build. The problem is that if I remove it, the build still goes smoothly but the handler is not invoked. I tried to search the usages of&amp;nbsp;&lt;span&gt;nrf_sdh_soc_evts_poll() function in SDK and I cannot see any invocations. So there is no reason for the linker to complain that this function is referenced but not implemented. Can you please tell the place where it is being called?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS event FDS_EVT_WRITE not triggered when using SDK 16.0.0 and Softdevice S132 7.0.1</title><link>https://devzone.nordicsemi.com/thread/251748?ContentTypeID=1</link><pubDate>Tue, 26 May 2020 14:22:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b21d297-0c91-4016-a550-5f6c628b9d78</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;That would have to be up to your build configuration and not something. The linker&amp;nbsp;should in any case warn you that&amp;nbsp;nrf_sdh_soc_evts_poll() is referenced but not implemented, and I don&amp;#39;t know why that did not happen in your case. But as stated, we do not support building the SDK as a library, partially because of such issues.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS event FDS_EVT_WRITE not triggered when using SDK 16.0.0 and Softdevice S132 7.0.1</title><link>https://devzone.nordicsemi.com/thread/251616?ContentTypeID=1</link><pubDate>Tue, 26 May 2020 07:55:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:463e9322-2eb0-41e2-a45a-88e559a88114</guid><dc:creator>radionoise</dc:creator><description>&lt;p&gt;Can we have some compile check that nrf_sdh_soc.c was not included? It is a real pain to debug such things.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS event FDS_EVT_WRITE not triggered when using SDK 16.0.0 and Softdevice S132 7.0.1</title><link>https://devzone.nordicsemi.com/thread/251417?ContentTypeID=1</link><pubDate>Mon, 25 May 2020 09:07:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27cfd453-7548-444b-bc9b-0098d7b02456</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for letting us know.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think this constitutes a bug. It is related to how you build, and Nordic does not support nor even test building the SDK as a library.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS event FDS_EVT_WRITE not triggered when using SDK 16.0.0 and Softdevice S132 7.0.1</title><link>https://devzone.nordicsemi.com/thread/251413?ContentTypeID=1</link><pubDate>Mon, 25 May 2020 09:00:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bae71ac-86f2-45d2-b9c5-041f08ad6376</guid><dc:creator>radionoise</dc:creator><description>&lt;p&gt;After some investigation it seems that nrf_sdh_soc.c file was thrown out by linker. I compile SDK files as a static library and add it as a dependency to my target. When I add nrf_sdh_soc.c directly to the target with main.c, everything is OK. Is it a bug?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>