<?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>LFCLK related issues in SDK14 DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27195/lfclk-related-issues-in-sdk14-dfu</link><description>In SDK13, the initialisation of the low frequency clock used to be done within sd_softdevice_enable . In the SDK14 version of nrf_dfu.c , the LF-clock is already initialized in nrf_dfu_init before the softdevice is started. 
 
 
 It would make sense</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Nov 2017 16:44:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27195/lfclk-related-issues-in-sdk14-dfu" /><item><title>RE: LFCLK related issues in SDK14 DFU</title><link>https://devzone.nordicsemi.com/thread/107183?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2017 16:44:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9beef3bb-0b29-430f-ae8a-c8ff5765b237</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;Reporting good news: the reason why the LF-clock was not starting was that there was a mismatch between the hardware and the sdk_config. Since we have hardware both with and without LF-crystal AND it&amp;#39;s not possible to specify this in the board files, we ended up leaving a LF_SRC to crystal when there was none. The bug only shows upon reboot after a OTA DFU since it&amp;#39;s at that point that the soft device tries to stop and start clocks. The stopping never works if there is no hardware LF crystal.
the baffling part was that it worked fine until then, so it looks like something that should be detected at compile time. Maybe add a #define in the board file so that if the hardware does not have a crystal, a misconfiguration in the sdk_config would not compile.&lt;/p&gt;
&lt;p&gt;Hope this helps others.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LFCLK related issues in SDK14 DFU</title><link>https://devzone.nordicsemi.com/thread/107184?ContentTypeID=1</link><pubDate>Fri, 24 Nov 2017 16:05:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31de8024-743b-4e11-a81b-bc4a2697765f</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;Sure thing.
we&amp;#39;re sending it your way (via email, we can&amp;#39;t expose the firmware publicly).&lt;/p&gt;
&lt;p&gt;For info we will send you:
0- flash memory content of the chip
1- hex file with a debug bootloader
2- hex file with a production bootloader
3- signed firmware with logs activated&lt;/p&gt;
&lt;p&gt;the softdevice we used is s132_nrf52_5.0.0_softdevice.hex&lt;/p&gt;
&lt;p&gt;The hardware does not have any low frequency crystal and is setup to use the RC instead. Our low frequency source is setup per recommended values (in sdk_config):
NRF_SDH_CLOCK_LF_SRC 0
NRF_SDH_CLOCK_LF_RC_CTIV 16
NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2&lt;/p&gt;
&lt;p&gt;the firmware works on:
-DEV board (with RC as LF clock source)
-PCB with a SIP that has a LF crystal (with RC as LF clock source, not the LF crystal)&lt;/p&gt;
&lt;p&gt;the firmware does NOT work on:
-PCB with a SIP package that has no LF crystal (with RC as LF clock source).&lt;/p&gt;
&lt;p&gt;The problem manifests itself 95% of the time, but not 100%.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LFCLK related issues in SDK14 DFU</title><link>https://devzone.nordicsemi.com/thread/107182?ContentTypeID=1</link><pubDate>Fri, 24 Nov 2017 12:32:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecd80f87-a093-486a-930c-6e3c7738fb84</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Thomas, we need to be able to reproduce the issue here to answer your question. Could you profile a minimum application that can reproduce the issue ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LFCLK related issues in SDK14 DFU</title><link>https://devzone.nordicsemi.com/thread/107181?ContentTypeID=1</link><pubDate>Fri, 24 Nov 2017 03:31:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83b15430-14b6-46e2-b1e5-0d694d3aa598</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;this answers question 1,2 and the first part of question 3. What about question 3 with RC? This seems to be happening to us. I&amp;#39;ll try to get a trace or something more than &amp;quot;it hangs&amp;quot; but we do have an extra info about it: when one uses JLinkExe to connect to the board while it&amp;#39;s waiting for &lt;em&gt;NotRunning&lt;/em&gt; to change, the program actually starts.&lt;/p&gt;
&lt;p&gt;PS: @m.wagner, if  you have seen similar behaviors, feel free to chime in.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LFCLK related issues in SDK14 DFU</title><link>https://devzone.nordicsemi.com/thread/107179?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2017 13:57:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:366f6a21-0ecc-4fc1-8bcd-6ee6d9cf9331</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I have some update from R&amp;amp;D team about your question. We use the clock not only for the softdevice but also for the timer. And the timer starts before the softdevice (I think) so that&amp;#39;s why we initialize the LFCLK early. But I agree, it can be delayed after we check if we need to enter DFU mode or not. Calling __WFE inside the loop is a good idea.&lt;/p&gt;
&lt;p&gt;The reason we disable the clock is that we want to give a clean state to the application before it start.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LFCLK related issues in SDK14 DFU</title><link>https://devzone.nordicsemi.com/thread/107180?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2017 12:49:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8432f793-eb1e-44d6-a2c3-882d1cd4becd</guid><dc:creator>m.wagner</dc:creator><description>&lt;p&gt;Sorry, once again, I clicked on &amp;quot;convert to answer&amp;quot; when I wanted to add a comment... This should probably be converted back to a comment.&lt;/p&gt;
&lt;p&gt;Unfortunately I haven&amp;#39;t come around to reproducing the issue in a little example yet. I&amp;#39;ll try to follow it up ASAP.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LFCLK related issues in SDK14 DFU</title><link>https://devzone.nordicsemi.com/thread/107178?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2017 09:36:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:182658ee-78e3-4370-bf2e-031cb4fcdf40</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi m.wagner,&lt;/p&gt;
&lt;p&gt;If possible, could you provide us an example that can reproduce the issue you mentioned about the RC oscillator ? if you aren&amp;#39;t sure what trigger the problem, you can use simplify your application, so that we can test on the DK here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LFCLK related issues in SDK14 DFU</title><link>https://devzone.nordicsemi.com/thread/107177?ContentTypeID=1</link><pubDate>Tue, 14 Nov 2017 13:30:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38960e98-4d0a-4db8-b4df-9e262fff3c5c</guid><dc:creator>m.wagner</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;No, there is no code specifically switching off any peripherals. The bootloader is entered using a soft reset (issued through sd_nvic_SystemReset() or using the Keil debugger RST).&lt;/p&gt;
&lt;p&gt;The issue seems quite strange, therefore I&amp;#39;m happy for any pointers here. I did work around the issue for now by patching the bootloader to not disable the LF-clock before starting the application. I&amp;#39;d still be grateful for an official response!&lt;/p&gt;
&lt;p&gt;Thanks,
-mike&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LFCLK related issues in SDK14 DFU</title><link>https://devzone.nordicsemi.com/thread/107174?ContentTypeID=1</link><pubDate>Fri, 10 Nov 2017 11:23:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64e5e197-3a72-4286-8813-3e01c763d497</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Wagner,&lt;/p&gt;
&lt;p&gt;My apology but I still haven&amp;#39;t got the response back from the author of the library about the change he made. Just pinged him again.&lt;/p&gt;
&lt;p&gt;Regarding your issue, have you made sure you stopped all peripherals before you switch to the bootloader ? And how did you jump to bootloader ? by a soft reset or you branch directly ? A soft reset is recommended. And if a softreset is used, I see no reason why the previous application would affect the bootloader.&lt;/p&gt;
&lt;p&gt;Hung&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LFCLK related issues in SDK14 DFU</title><link>https://devzone.nordicsemi.com/thread/107175?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2017 08:52:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dae6723-06e1-462d-9152-b8217415f078</guid><dc:creator>m.wagner</dc:creator><description>&lt;p&gt;@Hung Bui: Any news on this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LFCLK related issues in SDK14 DFU</title><link>https://devzone.nordicsemi.com/thread/107176?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2017 14:45:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eeb49839-c226-494d-803c-f369491316f2</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi m.wanger,&lt;/p&gt;
&lt;p&gt;Your questions make sense. I have sent the questions to our developers. We will get back to you soon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>