<?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>Missing Softdevice call to nrf_fstorage_sys_evt_handler</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63808/missing-softdevice-call-to-nrf_fstorage_sys_evt_handler</link><description>Hi to all, 
 we are developing an application nrf52832 that use BLE and internal flash as storage. 
 The problem, as I wrote in the subject, is the write operation is never terminated with a callback. Checking the flash content the operation success,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Jul 2020 15:57:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63808/missing-softdevice-call-to-nrf_fstorage_sys_evt_handler" /><item><title>RE: Missing Softdevice call to nrf_fstorage_sys_evt_handler</title><link>https://devzone.nordicsemi.com/thread/262242?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2020 15:57:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a01f4a5-3622-4fb2-b7c6-660904585f27</guid><dc:creator>DavideM</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t do the test but I found the reason.&lt;/p&gt;
&lt;p&gt;Inspired by this: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/29137/fds-not-able-to-write-in-sdk-14"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/29137/fds-not-able-to-write-in-sdk-14&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I add this to &amp;lt;sdk_path&amp;gt;/components/softdevice/common/nrf_sdh_soc.c: &lt;pre class="ui-code" data-mode="c_cpp"&gt;void
workaround_init() {}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And call that function from my code where I initialize the memory. &lt;br /&gt;That solve my problem,&lt;/p&gt;
&lt;p&gt;More in general the problem is in final elf file (the one that I convert to IHEX and than flash on device are missing all objects (variable/struct/function) from the file above. I check that using:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;arm-none-eabi-nm main.elf | grep sdh_soc&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Going further I found they are present in an intermediate file nrf52832.a but where removed when linked with the rest of my code.&lt;/p&gt;
&lt;p&gt;While the workaround I report above above force last step of compiler/linker to include them.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll going to investigate if there is an option or a parameter to put in Makefile that force the copy of those object.&lt;/p&gt;
&lt;p&gt;Any suggestion still welcome &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Davide&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Missing Softdevice call to nrf_fstorage_sys_evt_handler</title><link>https://devzone.nordicsemi.com/thread/260558?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2020 11:30:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:949424a1-2ae7-4acc-a6be-687b1638fbb6</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Run through the test description of the example, and make sure that you get it to work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The test description is found on:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/fstorage_example.html"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/fstorage_example.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Missing Softdevice call to nrf_fstorage_sys_evt_handler</title><link>https://devzone.nordicsemi.com/thread/260401?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2020 13:48:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a228bbaa-4f8c-46e7-ae4d-d30d6a27aa04</guid><dc:creator>DavideM</dc:creator><description>&lt;p&gt;Thanks for the advice. I&amp;#39;ll try.&lt;/p&gt;
&lt;p&gt;Can You recommend to me good way to use the debugger&amp;nbsp; to find the problem?&lt;/p&gt;
&lt;p&gt;I mean something to watch or where to put a breakpoint or similar?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Davide&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Missing Softdevice call to nrf_fstorage_sys_evt_handler</title><link>https://devzone.nordicsemi.com/thread/260389?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2020 13:32:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82db067c-965a-4516-ad76-33389d8c1030</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;We are really short on staffing this month due to summer holidays in Norway, so I can&amp;#39;t familiarize myself with your setup.&amp;nbsp;&lt;/p&gt;
[quote user=""]We use gcc as compiler and, what make found the problem difficult, we use Contiki. That means we don&amp;#39;t have a simple c application but it is spread in different C and makefile divided for platform/cpu, modules and applications.[/quote]
&lt;p&gt;&amp;nbsp;I suggest you start by checking out the SDK example SDK\examples\peripheral\flash_fstorage\pca10040\s132\&amp;lt;any IDE&amp;gt;\&lt;/p&gt;
&lt;p&gt;to see how the callbacks work with the softdevice. When you are familiar with it, you can start implementing that to your Contiki project.&lt;/p&gt;
&lt;p&gt;I also suggest using an IDE for debugging. You can use Segger Embedded Studio(SES). It is free. Nordic has fixed full licenses for customers developing on Nordic products. Please see:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/41028/activating-free-license-for-ses"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/41028/activating-free-license-for-ses&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>