<?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>When frozen then reset, nRF52840 RC osc/RTC doesn&amp;#39;t tick and LFCLKSRC, etc  doesn&amp;#39;t init correctly</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106619/when-frozen-then-reset-nrf52840-rc-osc-rtc-doesn-t-tick-and-lfclksrc-etc-doesn-t-init-correctly</link><description>Our product is based on the Nordic nRF52840, running a fork of the v2.7.1 branch of Zephyr, using an external 32.768Khz oscillator for the sysclock/ LFCLK . This works fine at room temperature, starting with the internal RC osc, then correctly automatically</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Jan 2024 12:42:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106619/when-frozen-then-reset-nrf52840-rc-osc-rtc-doesn-t-tick-and-lfclksrc-etc-doesn-t-init-correctly" /><item><title>RE: When frozen then reset, nRF52840 RC osc/RTC doesn't tick and LFCLKSRC, etc  doesn't init correctly</title><link>https://devzone.nordicsemi.com/thread/463137?ContentTypeID=1</link><pubDate>Mon, 08 Jan 2024 12:42:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9f4f383-316d-4905-af67-8ddf1d510ba2</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;rossquatch,&lt;/p&gt;
&lt;p&gt;There are couple of debugging directions I can take from here but I would need your help to validate few things before I start to modify the DK I have on my desk.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;External clock temperature coefficient with temperature.&amp;nbsp;&lt;/strong&gt;&lt;br /&gt;I would like to remove the external clock issues from the picture. You said that when you freeze the chip (spray) then you are not effecting the external lfclk? I mean that the external osc is far enough in your board to be not effected by the temperature? Or I can rephrase this better, Are you sure that when the issue is happening then you have a valid stable clock input coming from the external osc?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;K_Sleep being stuck&lt;br /&gt;&lt;/strong&gt;We have seen some issues with some RTC tick accuracy with temperature but did not see an issue with the freeze completely. Saying that, I think these accuracy tests we have done on other issues were done only with internal RC or a XTAL for LFCLK. So it is a bit of a new area for me to explore this issues with external OSC (not XTAL).&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;LFCLKSTAT register&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;The default values of the LFCLKSTAT register at boot time will always show that RC is running until the external clock is stable. We need to rule out that at low temperatures we still get the stable clock.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;On my end, the default setup will be nRF52840 DK and that have an external crystal for the LFCLK. We have recently done some tests in cold temperature (-30 to -32 C) in the temperature chamber that there is no issue with the RTC tick being stalled but there was some issue with little drift. I do not want to do the same experiment again just to sniff the LFCLKSTAT unless I know that this is necessary to do.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When frozen then reset, nRF52840 RC osc/RTC doesn't tick and LFCLKSRC, etc  doesn't init correctly</title><link>https://devzone.nordicsemi.com/thread/463074?ContentTypeID=1</link><pubDate>Mon, 08 Jan 2024 08:52:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c33ce7c2-19ff-4044-9ae8-85f5d73b04b2</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;rossquatch,&lt;/p&gt;
&lt;p&gt;Happy New Year and sorry for the delays. I am back from the holidays and will be looking into this during next few days. I will be back to you with my observations in the coming days. If you have any more observations that you might have made, then please share it here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When frozen then reset, nRF52840 RC osc/RTC doesn't tick and LFCLKSRC, etc  doesn't init correctly</title><link>https://devzone.nordicsemi.com/thread/460473?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2023 07:18:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b096bcc-ee1b-4bd7-92a3-bc4bf8c71dc9</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;rossquatch,&lt;/p&gt;
&lt;p&gt;Most of us are starting our Christmas vacation from Monday, So I need to start this investigation after the Christmas. Sorry about the delay, but I am reserving days in my calendar after Christmas holidays to 100% focus on this investigation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When frozen then reset, nRF52840 RC osc/RTC doesn't tick and LFCLKSRC, etc  doesn't init correctly</title><link>https://devzone.nordicsemi.com/thread/460265?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2023 17:52:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9cc31a4-b294-49d9-a4aa-562f8aae71f7</guid><dc:creator>rossquatch</dc:creator><description>&lt;p&gt;Thanks! I don&amp;#39;t think the problem&amp;#39;s specific to the Fanstel module.&amp;nbsp; &amp;nbsp; I think you should see the same problem with nRF52840s that are mounted directly to the board, provided they are the same ones Fanstel uses (which is detailed in previous posts above.)&lt;br /&gt;&lt;br /&gt;The steps to reproduce the problem are also detailed in a previous post&amp;nbsp; To recap, the steps to reproduce are:&amp;nbsp; &amp;nbsp;(make sure you reset the board the way I said... i.e. don&amp;#39;t just cycle power.&amp;nbsp; &amp;nbsp;Cycling power may also cause the issue, but I haven&amp;#39;t tested that.)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Cool a running board to -20C&amp;nbsp; &amp;nbsp;(we used a -18C freezer, or freeze spray with temp unknown)&lt;/li&gt;
&lt;li&gt;Reset using either Segger Ozone/J-Link reset or the Zephyr reset function&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Don&amp;#39;t call k_sleep in your test application, it will likely hang when frozen&amp;nbsp;&lt;/li&gt;
&lt;li&gt;When application starts running, check LFCLKSRC (should be&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;LFCLKSRC_EXT_OSC, but I get&amp;nbsp;LFCLKSRC_RC&lt;/span&gt;)&lt;/li&gt;
&lt;li&gt;Also check if&amp;nbsp;clock register is ticking (I used the&amp;nbsp;z_nrf_rtc_timer_get_ticks() function)&amp;nbsp; &amp;nbsp;I see the tick count remain the same until the board warms.&lt;/li&gt;
&lt;li&gt;After the board warms up, z_nrf_rtc_timer_get_ticks shows the clock is ticking again, but it is still using the LFCLKSRC_RC and some of the other status registers are wrong&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When frozen then reset, nRF52840 RC osc/RTC doesn't tick and LFCLKSRC, etc  doesn't init correctly</title><link>https://devzone.nordicsemi.com/thread/460264?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2023 17:48:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c17ee72a-394e-4695-83b5-32abb4728afb</guid><dc:creator>rossquatch</dc:creator><description>&lt;p&gt;The post should be public, because it contains work-around code for a specific problem other developers maybe be experiencing.&lt;br /&gt;&lt;br /&gt;You can buy modules direct from Fanstel ... they cost $8.50.&amp;nbsp;&lt;br /&gt;I provided a link above in a previous post where you can buy them.&lt;br /&gt;&lt;br /&gt;I suggest you analyze the failure using nRF52840s there, I don&amp;#39;t think it&amp;#39;s specific to Fanstel&amp;#39;s module, the problem is with the RC oscillator and LFCLKSRC selection hardware &lt;em&gt;inside&amp;nbsp;&lt;/em&gt;the nRF52840.&amp;nbsp; &amp;nbsp;I think this particular problem (which is quite specific) slipped through your testing.&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When frozen then reset, nRF52840 RC osc/RTC doesn't tick and LFCLKSRC, etc  doesn't init correctly</title><link>https://devzone.nordicsemi.com/thread/460263?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2023 13:43:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7078be3d-52f3-44e9-b244-c7cbdd73f37e</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;rossquatch,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We will do some temperature tests on that chip version with a DK in cold temperatures. You might be onto something here and we will do our end of investigation. Nevertheless, like Jennifer says, we will not do those tests on Fanstel module but on our DK to see if we can isolate the issue to be at our end.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When frozen then reset, nRF52840 RC osc/RTC doesn't tick and LFCLKSRC, etc  doesn't init correctly</title><link>https://devzone.nordicsemi.com/thread/460262?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2023 12:40:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:176404bf-62c1-4b1f-a250-7c7282811bb7</guid><dc:creator>Jennifer Mendoza</dc:creator><description>&lt;p&gt;Hi Ross,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Unfortunately, we do not have Fanstel modules to test and verify your failure. Without the failing module, we are unable to verify if it is an nRF5240 issue or something else inside the module.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would recommend that you first check with Fanstel on&amp;nbsp;these observed failures and see if they can analyze the issue and comment on your proposed work-around.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Until we have understood the root-cause of the abnormal operation at cold temperature, we are unable to comment on your proposed work-around.&lt;/p&gt;
&lt;p&gt;A request has been made to make this case &amp;quot;public&amp;quot;. Please note that&amp;nbsp;it will be set back to &amp;quot;private&amp;quot; if Nordic will move forward with the device/module investigation.&lt;/p&gt;
&lt;p&gt;Sincerely, Jennifer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When frozen then reset, nRF52840 RC osc/RTC doesn't tick and LFCLKSRC, etc  doesn't init correctly</title><link>https://devzone.nordicsemi.com/thread/460261?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2023 16:56:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dca419b4-7847-407a-8d6d-381fb62207fd</guid><dc:creator>rossquatch</dc:creator><description>&lt;p&gt;The nRF52840 is on a &lt;span&gt;BC840M&lt;/span&gt;&amp;nbsp;Fanstel module --- I do not have access to the top of the&amp;nbsp;&lt;span&gt;nRF52840.&amp;nbsp; &amp;nbsp;Please see my previous replies for links to Fanstels site and more information.&lt;br /&gt;&lt;br /&gt;The problem is with the LFCLKRC oscillator within the chip.&amp;nbsp; &amp;nbsp;It happens with every device we tested.&amp;nbsp; &amp;nbsp;We will not be sending you our devices as they&amp;#39;re prototypes and we have a limited number.&amp;nbsp; I suggest you test your chips using some of Nordic&amp;#39;s development boards.&amp;nbsp; If you read back through the replies I have already detailed how to reproduce the bug.&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Also, why has this post been changed to &amp;quot;private?&amp;quot;&amp;nbsp; &amp;nbsp;There is a code work-around at the top of the post, which will be useful to other people that are having the same problem.&amp;nbsp; &amp;nbsp;I made the post public for that reason.&amp;nbsp; &amp;nbsp;Please change the post back to &amp;quot;public.&amp;quot;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When frozen then reset, nRF52840 RC osc/RTC doesn't tick and LFCLKSRC, etc  doesn't init correctly</title><link>https://devzone.nordicsemi.com/thread/460260?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2023 14:55:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9f241c1-f867-4fac-be69-60a2cf932f97</guid><dc:creator>Jennifer Mendoza</dc:creator><description>&lt;p&gt;Hi Ross,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This case&amp;nbsp;is now transferred to Quality.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you&amp;nbsp;indicate the Trace code of the failing nRF52840? This is to be found on the top mark of the device.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1702392503729v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;It would also help if you can send us 2~3 of your failing devices (if possible still board mounted) and we will try to reproduce the failures. Let me know if this is possible and I will give you the shipping instructions.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="rossquatch"]Every chip we tested fails.&amp;nbsp; [/quote]
&lt;p&gt;How many chips have you built and tested?&lt;/p&gt;
&lt;p&gt;Sincerely, Jennifer Mendoza, Field Quality Manager&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When frozen then reset, nRF52840 RC osc/RTC doesn't tick and LFCLKSRC, etc  doesn't init correctly</title><link>https://devzone.nordicsemi.com/thread/460259?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2023 07:44:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9051f9af-2115-47fc-a0e5-d5406288e12c</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Issues with the external clocks on external boards most of the time turns out to be an issue with custom boards.&lt;/p&gt;
&lt;p&gt;The LFCLKSTAT thing sounds wrong so we continue the investigation here at Nordic. &lt;strong&gt;We need to firmware that you tested this&lt;/strong&gt;&amp;nbsp;where we should see that k_sleep hangs when chip is too cold. I will transfer this to the Quality team. Normally customers send faulty boards to us (even if it is on the module), but this you can agree with the Quality team. I will write a note to them.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To the Quality team, the below is the main suspicion about the faulty behavior.&lt;/p&gt;
[quote user=""]// RSW - When the ARM is cold, then reset&amp;nbsp;by Zephyr reset function, debugger reset, etc it will&lt;br /&gt; // not switch the LFCLK source properly between the internal RC and external oscillator.&amp;nbsp;&amp;nbsp;&amp;nbsp; The RC osc&lt;br /&gt; // stays selected, but does not increment the timer count register (RC may or may not be oscillating)&lt;br /&gt; // This causes k_sleeps to hang, because at least according to the ARM hw, there is no LFCLK timer tick[/quote]
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When frozen then reset, nRF52840 RC osc/RTC doesn't tick and LFCLKSRC, etc  doesn't init correctly</title><link>https://devzone.nordicsemi.com/thread/460258?ContentTypeID=1</link><pubDate>Mon, 11 Dec 2023 21:14:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39977d60-6844-4c14-9d36-90a6a64bea2d</guid><dc:creator>rossquatch</dc:creator><description>&lt;p&gt;Every chip we tested fails.&amp;nbsp; &amp;nbsp; You&amp;#39;re the chip manufacturer, I don&amp;#39;t need to send to you your own chips.&amp;nbsp;&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f923.svg" title="Rofl"&gt;&amp;#x1f923;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You can buy the Fanstel BC840M modules &lt;a href="https://www.fanstel.com/bc840m-compact-nrf52840-module"&gt;direct from Fanstel&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you really don&amp;#39;t have any&amp;nbsp;&lt;span&gt;nRF52840-CKAA ARMs like what&amp;#39;s on the Fanstel module. you can &lt;a href="https://www.digikey.com/en/products/filter/rf-transceiver-ics/879?s=N4IgTCBcDaIHYCUBiBWMAOALABgLQGEBpAQWJAF0BfIA"&gt;buy those from DIgikey&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If you need to know specifically which&amp;nbsp;nRF52840-CKAA uses on their BC840M, you can &lt;a href="https://www.fanstel.com/contact-us"&gt;contact FANSTEL&lt;/a&gt;.&amp;nbsp; According to&amp;nbsp;&lt;a href="https://www.fanstel.com/bc840m-compact-nrf52840-module"&gt;their website&lt;/a&gt;&amp;nbsp;they use the &amp;quot;Nordic nRF52840 CKAA (Rev. D silicon) with ARM Cortex M4F&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When frozen then reset, nRF52840 RC osc/RTC doesn't tick and LFCLKSRC, etc  doesn't init correctly</title><link>https://devzone.nordicsemi.com/thread/460257?ContentTypeID=1</link><pubDate>Mon, 11 Dec 2023 14:47:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec8b4512-85a9-432e-8e0b-140282eec902</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Sorry for delayed response rossquatch.&lt;/p&gt;
&lt;p&gt;no, I do not know of any other way to wait for clock stopping.&amp;nbsp;&lt;br /&gt;If you want us to investigate this, then I can forward this ticket to Quality team and you can ship the failing chips to them?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When frozen then reset, nRF52840 RC osc/RTC doesn't tick and LFCLKSRC, etc  doesn't init correctly</title><link>https://devzone.nordicsemi.com/thread/460256?ContentTypeID=1</link><pubDate>Thu, 07 Dec 2023 22:05:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6888f7f6-5d53-4d05-b74c-de57735760fa</guid><dc:creator>rossquatch</dc:creator><description>&lt;p&gt;Thanks for the feedback!&lt;br /&gt;&lt;span&gt;&lt;br /&gt;That was something I&amp;#39;d wanted to do and what you have there looks similar to the implementation in the nrf_clock_is_running HAL function&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Unfortunately when I tried it just now, it&amp;nbsp;didn&amp;#39;t work in this specific situation:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;When the system&amp;#39;s at room temp, it works fine&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;When the system&amp;#39;s frozen and reset, that loops hangs until the board warms.&amp;nbsp; &amp;nbsp;If I take that line with the check for the RUNNING bit back out, it goes back to working fine when frozen&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;From my original notes, it looked to me like the LFSTAT register state might be screwed up when the system was frozen, so that could be why the check for the RUNNING bit cleared isn&amp;#39;t worked after a stop task.&amp;nbsp; &amp;nbsp;&lt;br /&gt;&lt;br /&gt;In any event, do you know any other way to check/wait for the LFCLK stopping?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When frozen then reset, nRF52840 RC osc/RTC doesn't tick and LFCLKSRC, etc  doesn't init correctly</title><link>https://devzone.nordicsemi.com/thread/460255?ContentTypeID=1</link><pubDate>Thu, 07 Dec 2023 11:52:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0893bc90-32ef-47a3-b44f-0279a0b35df6</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user="rossquatch"]Really what I&amp;#39;d like is your feedback on my suggested workaround.[/quote]
&lt;p&gt;Your fix seems harmless, so I do not think adding it will make anything wrong. Just a small suggestion after stopping the clock, it is better to wait.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;   // RSW - they didn&amp;#39;t explicitly stop the clock in the online post, but I think you
   // probably want to stop it before changing the source...?  The reference manual doesn&amp;#39;t
   // say.  There is also no EVENTS_LFCLKSTOPPED flag.
   NRF_CLOCK-&amp;gt;TASKS_LFCLKSTOP = 1;
   
   while((NRF_CLOCK-&amp;gt;LFCLKSTAT &amp;amp;
             CLOCK_LFCLKSTAT_STATE_Msk) &amp;gt;&amp;gt; CLOCK_LFCLKSTAT_STATE_Pos);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When frozen then reset, nRF52840 RC osc/RTC doesn't tick and LFCLKSRC, etc  doesn't init correctly</title><link>https://devzone.nordicsemi.com/thread/460254?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2023 23:23:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cea25036-5c39-4a4c-9408-43565a73de12</guid><dc:creator>rossquatch</dc:creator><description>&lt;p&gt;It seems&amp;nbsp;fairly clear to me it&amp;#39;s the nRF chip, as the RC oscillator and&amp;nbsp;LFCLK controller&amp;nbsp;are internal to the chip, but&amp;nbsp;I encourage you to investigate further.&amp;nbsp; &amp;nbsp;These are the steps to reproduce the issue on my system, which is running&amp;nbsp; a fork of the v2.7.1 branch of Zephyr w/ a stock bootloader, configured to use an external 32.768Khz rail-to-rail external oscillator connected to P0.00/XCL1, with P0.01/XCL2 unconnected:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Cool a running board to -20C&amp;nbsp; &amp;nbsp;(we used a -18C freezer, or freeze spray with temp unknown)&lt;/li&gt;
&lt;li&gt;Reset using either Segger Ozone/J-Link reset or the Zephyr reset function&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Don&amp;#39;t call k_sleep in your test application, it will likely hang when frozen&amp;nbsp;&lt;/li&gt;
&lt;li&gt;When application starts running, check LFCLKSRC (should be &lt;span&gt;LFCLKSRC_EXT_OSC, but I get&amp;nbsp;LFCLKSRC_RC&lt;/span&gt;)&lt;/li&gt;
&lt;li&gt;Also check if&amp;nbsp;clock register is ticking (I used the&amp;nbsp;z_nrf_rtc_timer_get_ticks() function)&amp;nbsp; &amp;nbsp;I see the tick count remain the same until the board warms.&lt;/li&gt;
&lt;li&gt;After the board warms up, z_nrf_rtc_timer_get_ticks shows the clock is ticking again, but it is still using the LFCLKSRC_RC and some of the other status registers are wrong&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Running&amp;nbsp;the same test at room temp, everything worked properly, LFCLKSRC is set to LFCLKSRC_EXT_OSC, clock is ticking, etc...&lt;br /&gt;&lt;br /&gt;Really what I&amp;#39;d like is your feedback on my suggested workaround.&lt;br /&gt;&lt;br /&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When frozen then reset, nRF52840 RC osc/RTC doesn't tick and LFCLKSRC, etc  doesn't init correctly</title><link>https://devzone.nordicsemi.com/thread/460253?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2023 12:31:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2279e9c5-ae3c-48f6-9350-26142d831942</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;rossquatch,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I need some more time to do some internal investigation if we have seen something like this before. And then comment on the workaround you suggested.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It is still not clear if the issue is with the nRF Chip ( including ARM core) or on the Fanstel module. I will update you once I have some info on this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When frozen then reset, nRF52840 RC osc/RTC doesn't tick and LFCLKSRC, etc  doesn't init correctly</title><link>https://devzone.nordicsemi.com/thread/460252?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 19:27:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b86518c2-305d-42ca-9ec6-ff48428ebe70</guid><dc:creator>rossquatch</dc:creator><description>&lt;p&gt;I didn&amp;#39;t say the chip was being tested at the -40C spec limit&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Our freezer is set at -18C.&lt;/li&gt;
&lt;li&gt;Every board tested in the freezer has this issue.&amp;nbsp; &amp;nbsp;They all work fine at room temp.&lt;/li&gt;
&lt;li&gt;I do not have access to the chip&amp;#39;s marking.&amp;nbsp; &amp;nbsp; The chip is on a Fanstel BC840M module, which is also rated for -40C.&amp;nbsp; &amp;nbsp;The&amp;nbsp;areas I have issue with (the RC oscillator and LFCLK module) are all internal to the ARM&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Looks to me like the RC oscillator may be not starting after reset at low temperatures.&amp;nbsp; &amp;nbsp;This is detailed to a great extent in my original post.&amp;nbsp; &amp;nbsp;If this is in fact the issue, I proposed a workaround and was looking for confirmation/comments/etc on the viability of that solution.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Ross&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When frozen then reset, nRF52840 RC osc/RTC doesn't tick and LFCLKSRC, etc  doesn't init correctly</title><link>https://devzone.nordicsemi.com/thread/460251?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 11:22:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b9bbcdd-35a0-4eea-bbad-983890a6d9e7</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Rossquatech,&lt;/p&gt;
&lt;p&gt;This seems to be very close to what we specify as the absolute temperature range for this chip (-40 degree C).&lt;/p&gt;
&lt;p&gt;Can you please confirm if my understanding is right?&lt;br /&gt;So based on your description,&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;the chip is being tested at room temperature and at -40 Celsius.&lt;/li&gt;
&lt;li&gt;Both of them have LFCLKSRC set to LFCLK and then switches to LF XTAL.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Is this being tested only in one board or is it reproducible on every board?&lt;/p&gt;
&lt;p&gt;What is the lazer marking on the nRF52840 chip?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you tested this at -38 degree Celsius and see the same issues?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>