<?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>URGENT : NRF52840 hanging up after working for some time!!!</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103156/urgent-nrf52840-hanging-up-after-working-for-some-time</link><description>Hi, 
 THIS IS AN URGENT REQUEST. PLEASE HELP ASAP. 
 After deploying our sensors based on nRF52840 running coap client on OpenThread and powered by 3V 2032 Lithium coin cell, we have noticed that two out of about 50 sensors just not sending data to the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 Oct 2023 12:51:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103156/urgent-nrf52840-hanging-up-after-working-for-some-time" /><item><title>RE: URGENT : NRF52840 hanging up after working for some time!!!</title><link>https://devzone.nordicsemi.com/thread/448658?ContentTypeID=1</link><pubDate>Tue, 03 Oct 2023 12:51:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9057c8dd-a861-4c69-93f3-f7370b69c8a9</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Kaushalya&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I responded to you in the private ticket, and will park this case for now.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: URGENT : NRF52840 hanging up after working for some time!!!</title><link>https://devzone.nordicsemi.com/thread/448235?ContentTypeID=1</link><pubDate>Fri, 29 Sep 2023 02:58:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b3a414b-a99d-4ef7-a34b-77a6cec44be1</guid><dc:creator>kaushalyasat</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Stian,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Did you happen to have a look at the code? Is there anything that could lead to hang-ups?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Cheers,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kaushalya&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: URGENT : NRF52840 hanging up after working for some time!!!</title><link>https://devzone.nordicsemi.com/thread/446965?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2023 02:45:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5f17aa8-1277-411d-b699-c98ecb6bb62d</guid><dc:creator>kaushalyasat</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Stian,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Got you. Please let me know what you think about the code. This is based on CoAP &lt;span style="font-size:12px;"&gt;client&lt;/span&gt;&amp;nbsp;example code, so there are still certain sections of it remaining in the code, which we &lt;span style="font-size:12px;"&gt;don&amp;#39;t&lt;/span&gt;&amp;nbsp;need. I &lt;span style="font-size:12px;"&gt;don&amp;#39;t&lt;/span&gt;&amp;nbsp;know if that could cause things like this.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have got another sensor in the lab, which has hung up. Hung up in the sense no &lt;span style="font-size:12px;"&gt;response&lt;/span&gt;&amp;nbsp;of the LED to button press and no radio comms. When you connected your power &lt;span style="font-size:12px;"&gt;analyzer&lt;/span&gt;, how did you do it without disrupting the power to the module? I have tried parallel powering and then remove the battery, but it caused a POR &lt;span style="font-size:12px;"&gt;every time&lt;/span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Cheers,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kaushalya&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: URGENT : NRF52840 hanging up after working for some time!!!</title><link>https://devzone.nordicsemi.com/thread/446796?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2023 08:12:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be629c87-1a91-4862-837f-7487ad9f50d4</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi, I think I&amp;#39;m the only one who can make this ticket private. Anyways, now that you have shared the code in the other ticket, I can just get it from there, and we can keep this one public. I can access the ticket.&lt;/p&gt;
[quote user="kaushalyasat"]How could we know its doing the LFRC clock calibration? Just by looking at the 4 sec current draws?[/quote]
&lt;p&gt;Yes, 4 second interval and the length + current during the calibration event. Debugging using the current consumption profile is very useful, as you can see exactly what is going in (as long as you know what to look for of course)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: URGENT : NRF52840 hanging up after working for some time!!!</title><link>https://devzone.nordicsemi.com/thread/446752?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2023 03:07:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae92d97a-d984-4b86-9b03-1cea2b86f8bb</guid><dc:creator>kaushalyasat</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Stian,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have created a private ticket under the same name to &lt;span style="font-size:12px;"&gt;include&lt;/span&gt;&amp;nbsp;the FW. I dont know how to share it with you. If you cant access it, please let me know how to add you to that ticket.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Cheers,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kaushalya&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: URGENT : NRF52840 hanging up after working for some time!!!</title><link>https://devzone.nordicsemi.com/thread/446579?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2023 07:10:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:233a83ab-94b0-4dbe-b0e5-63cbc62d39ee</guid><dc:creator>kaushalyasat</dc:creator><description>&lt;p&gt;Thanks Wendell, I tried looking for ways to move this to private, but couldn&amp;#39;t find. I can move my original post, but there is no &amp;#39;private&amp;#39; section in the list. Could you please elaborate a bit?&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Kaushalya&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: URGENT : NRF52840 hanging up after working for some time!!!</title><link>https://devzone.nordicsemi.com/thread/446548?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2023 04:54:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e71865a-7d0f-4c94-ba85-74ff822cd558</guid><dc:creator>WENDELL V BOYD</dc:creator><description>&lt;p&gt;&lt;span&gt;Kaushalya,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You should be able to move the DevZone ticket to &amp;#39;Private&amp;#39; this will allow you to post any more sensitive or confidential materials such as your code&amp;nbsp;directly to the Nordic team. Regards.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: URGENT : NRF52840 hanging up after working for some time!!!</title><link>https://devzone.nordicsemi.com/thread/446539?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2023 02:03:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05ead02d-4ade-4cf8-b645-4870f8f78dc4</guid><dc:creator>kaushalyasat</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Stian,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;All your support much appreciated. That is a good news. How could we know its doing the LFRC clock calibration? Just by looking at the 4 sec current draws?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;To send the project, by PM, you mean as a personal message ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Cheers,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kaushalya&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: URGENT : NRF52840 hanging up after working for some time!!!</title><link>https://devzone.nordicsemi.com/thread/446120?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2023 16:23:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:839cb3d8-6578-402b-925a-b6c99cf462ed</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I was able to power the devices from a power analyzer without resetting them. And I can clearly see that they are in system ON idle, consuming around 2 uA and doing the LFRC clock calibration every 4 seconds. So everything looks normal. Except that it is not advertising.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think there are any reasons to suspect any battery issues, or any hardware issues, as the CPU is waking up to calibrate the LFRC, which means that the LFRC, RTC, CPU interrupts, etc, are working as normal. So this looks to me like a software issue.&lt;/p&gt;
&lt;p&gt;I will continue to investigate, but it would be nice if you could share your software project, so I can build the code here. Maybe zip it and send it in a PM or similar. Thanks.&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/pastedimage1694708612049v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Stian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: URGENT : NRF52840 hanging up after working for some time!!!</title><link>https://devzone.nordicsemi.com/thread/444596?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2023 01:03:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df7b8867-bdbd-4821-9af0-f5757610d027</guid><dc:creator>kaushalyasat</dc:creator><description>&lt;p&gt;Hi Stian,&lt;/p&gt;
&lt;p&gt;Ok, I see. Unfortunately the two hung-up sensors are packaged to be send to you, so I cant run this anymore. You can try when you get the devices, hopefully soon. I have the other sensors which showed this behavior with me, but with WDT fw. So I dont know if if the WDT will heal the issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am will do an IR test for the batteries on the failed ones to see how bad the IR is.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Kaushalya&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: URGENT : NRF52840 hanging up after working for some time!!!</title><link>https://devzone.nordicsemi.com/thread/444454?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2023 10:11:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de65f401-e5a1-4d57-893a-900063b10def</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>[quote user="kaushalyasat"]So if this is what happened, is it possible to recover when power cycled? If the battery is discharged, the internal resistance should have increased to a level which cannot sustain the current draw from the SoC isn&amp;#39;t it? So if not immediate, we should see another hang-up quite soon from the same device. (we didn&amp;#39;t replace batteries in these devices)[/quote]
&lt;p&gt;Yes, I agree. So not likely the cause. (But I don&amp;#39;t think we should rule out anything at this point)&lt;/p&gt;
[quote user="kaushalyasat"]As you can see, after the command is executed, it does seem to affect the current draw and the device seems locked up. The reset I was seeing earlier was due to the WDT. So I have not done this on the hang-up sensor I have, which we may ship to you for further analysis, as you suggest. If you&amp;nbsp; have any thoughts on this, please let me know.[/quote]
&lt;p&gt;So after issuing the nrfjprog --readregs command, the chip will enter debug mode, and the CPU will halt. Hence the change in current consumption. But it should not do a reset. It will connect to the running target, halt the CPU, read out the registers, then print them to the screen. Not sure if it is possible to resume the CPU and exit debug mode again without resetting, but you should already have the relevant register information printed to the screen.&lt;/p&gt;
&lt;p&gt;You can try to resume the CPU with nrfjprog --run.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: URGENT : NRF52840 hanging up after working for some time!!!</title><link>https://devzone.nordicsemi.com/thread/444406?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2023 05:00:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5d4a675-0589-4825-8732-38147b778544</guid><dc:creator>kaushalyasat</dc:creator><description>&lt;p&gt;Thanks again&amp;nbsp;&lt;span&gt;hmolesworth, From where you get the above graph? I couldn&amp;#39;t find that in any of the documents. From it, I can see worst case IR could go up to ~130R when the battery is near end of juice.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am looking at ways to add bulk capacitance. The only way I can do is multiple ceramic caps in parallel due to space restrictions. This will also reduce the ESR of the bulk capacitance.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Cheers,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kaushalya&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: URGENT : NRF52840 hanging up after working for some time!!!</title><link>https://devzone.nordicsemi.com/thread/444206?ContentTypeID=1</link><pubDate>Mon, 04 Sep 2023 02:47:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f173fba-19a3-43e3-b2be-c0b7280401cc</guid><dc:creator>kaushalyasat</dc:creator><description>&lt;p&gt;Hi Stian,&lt;/p&gt;
&lt;p&gt;Ok, so the sequence of events are like this as you suggest,&lt;/p&gt;
&lt;p&gt;1. SoC enters a BOR and doesn&amp;#39;t recover or hang-up&lt;/p&gt;
&lt;p&gt;2. Due to this hang-up, no current drawn from the coin cell.&lt;/p&gt;
&lt;p&gt;3. Due to no current draw, the coin cell voltage jumps back to 3V.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;4. Because the SoC is in a hang-up state, the coin cell remains at 3V, which we see now.&lt;/p&gt;
&lt;p&gt;So if this is what happened, is it possible to recover when power cycled? If the battery is discharged, the internal resistance should have increased to a level which cannot sustain the current draw from the SoC isn&amp;#39;t it? So if not immediate, we should see another hang-up quite soon from the same device. (we didn&amp;#39;t replace batteries in these devices)&lt;/p&gt;
&lt;p&gt;When I tried &amp;#39;&amp;#39;&lt;span&gt;nrfjprog --readregs&amp;quot; on a working device, it seemed reset, even after I disconnect the nReset line from the nRF52840K. I dug bit deeper into this. I downloaded the original release fw version to a sensor powered via a profiler and I was monitoring the current draw.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1693788590692v1.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As you can see, after the command is executed, it does seem to affect the current draw and the device seems locked up. The reset I was seeing earlier was due to the WDT. So I have not done this on the hang-up sensor I have, which we may ship to you for further analysis, as you suggest. If you&amp;nbsp; have any thoughts on this, please let me know.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I am thinking of using the battery from another sensor which hang-up earlier, but is now working after power cycling to a test to compare the IR with a brand new coin cell. I will keep you posted.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Kaushalya&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: URGENT : NRF52840 hanging up after working for some time!!!</title><link>https://devzone.nordicsemi.com/thread/444020?ContentTypeID=1</link><pubDate>Fri, 01 Sep 2023 08:24:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b91238d7-6e7b-4bbb-94a0-621ff57636ef</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi, thanks for the answers.&lt;/p&gt;
&lt;p&gt;If you are measuring a constant 3V on the failing device, I doubt that we are looking at a brown out reset (BOR) loop or similar. At 3V the device will recover, and you would have seen VDD dips below BOR threshold if the battery was not able to supply enough current for the boot sequence (i.e. reset loop). The only thing I can think of is that the device ended up in a BOR loop and because of that enters an unresponsive state, where it does not consume much current, so that the battery recovers back to 3V, but the device is still unresponsive.&lt;/p&gt;
&lt;p&gt;The comment regarding nRESET was to check if the internal pullup resistor had been enabled, which it is, according to your measurements. But I would still like you to disable pin reset at some point, to see if the changes anything. So please try this after the WDT test.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;nrfjprog --readregs&lt;/code&gt;&lt;strong&gt; &lt;/strong&gt;should not reset the device. I think that should be the next debugging step.&lt;/p&gt;
&lt;p&gt;You are also welcome to send a couple of devices to our lab. I understand that it takes a long time to reproduce, so I guess you want to keep the unresponsive devices. But if you want, you can send me one of these unresponsive devices, and I can take a look, or you can send one that has not yet failed, and I can leave it running and see if it fails. It&amp;#39;s up to you. I will send you a PM with the address.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: URGENT : NRF52840 hanging up after working for some time!!!</title><link>https://devzone.nordicsemi.com/thread/443829?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2023 06:57:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a47011b8-ea55-41ea-a8f6-34e521900fdc</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;We measured even higher than 300R on some discharged cells, I&amp;#39;ll see if I can find our old work; another source is shown below. Some App Notes on pulse discharge of coin cells might prove useful in case you haven&amp;#39;t come across them:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.ti.com/lit/wp/swra349/swra349.pdf"&gt;TI App Note swra349&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.mouser.com/datasheet/2/161/AN4573-222228.pdf"&gt;Freescale App Note AN4573&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Coin-Cell-Internal-Resistance.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;Edit: Came across the original Nordic paper:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1263.High-pulse-drain-impact-on-CR2032-coin-cell-battery-capacity.pdf"&gt;High-pulse-drain-impact-on-CR2032-coin-cell-battery-capacity&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: URGENT : NRF52840 hanging up after working for some time!!!</title><link>https://devzone.nordicsemi.com/thread/443816?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2023 03:18:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5d8ac7d-c90a-4d42-8af8-872769f1dafd</guid><dc:creator>kaushalyasat</dc:creator><description>&lt;p&gt;Hi Stian,&lt;/p&gt;
&lt;p&gt;Many thanks for your reply, much appreciated.&lt;/p&gt;
&lt;p&gt;To answer your questions.&lt;/p&gt;
&lt;p&gt;1. No this is a super rare event. We have seen three sensors done this in lab. None of them showed the behavior again. Having said that, we have restarted two devices last week and one this week. So dont know if it may pop up again in the future. We are observing these three.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There was a one reported from field about two weeks back. That one also working so far.&lt;/p&gt;
&lt;p&gt;2. No we haven&amp;#39;t. Now we have implemented WDT using the task wdt API with HW foldback enabled.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3. Yes it recover from power cycle.&lt;/p&gt;
&lt;p&gt;4. I have one sensor in this state I am keeping without power cycle yet. Following are the voltages.&lt;/p&gt;
&lt;p&gt;VDD : 3.02V (No drops detected on Oscilloscope, dont know if any tx is happening)&lt;/p&gt;
&lt;p&gt;nRESET : 3.02V (No drops detected)&lt;/p&gt;
&lt;p&gt;DEC1 &amp;amp; DEC4 : I am using Raytac MDBT50Q module, so these signals are not exposed for measurements.&lt;/p&gt;
&lt;p&gt;5.&amp;nbsp;&lt;span&gt;CONFIG_GPIO_AS_PINRESET is enabled. You reckon a false reset happening on the nRESET? If after enabling WDT&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;we get this issue, I will try this.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;6. &amp;#39;CONFIG_&lt;span dir="ltr"&gt;RESET_ON_FATAL_ERROR&amp;#39; in .config file is enabled.&lt;/span&gt;&amp;nbsp;I guess this means our sensor would reset for FW asserts.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;7. When I tried this on a different sensor, it seems like the sensor got reset. Is there a way to read the registers without resetting the SoC? I have only one sensor in this state and the issue is not recreatable as of yet.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;8. Unfortunately, to connect the profiler, I need to disconnect the onboard battery, which will take the sensor out of this state.&amp;nbsp;I tried powering another sensor from the profiler with the sensor battery on board and then removing the sensor battery very carefully, but it reseted the sensor, no matter how saftely I tried to do it.&lt;/p&gt;
&lt;p&gt;If there are no other tests you want me to carry out on this locked-up sensor, I will try to read the registers as in Step 7.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Kaushalya&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: URGENT : NRF52840 hanging up after working for some time!!!</title><link>https://devzone.nordicsemi.com/thread/443812?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2023 02:32:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ffc5055-fa79-4b9e-8428-388311cb03b1</guid><dc:creator>kaushalyasat</dc:creator><description>&lt;p&gt;Thanks&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/hmolesworth"&gt;hmolesworth&lt;/a&gt;. Good point you raised to increase the bulk cap. I have obtained pulse characteristic data from the battery manufacturer and that showed that we should be able to handle the kind of pulse current demand we have for more than 1 year. So I didnt think that I would need any larger bulk capacitance . Unfortunately I don&amp;#39;t have internal resistance data for pulse discharge for long time like an year. I will try to get that from the manufacturer.&lt;/p&gt;
&lt;p&gt;I guess size of capacitance depends on what is the worst battery internal resistance we want to tolerate. You recon the worst would be like 300R?&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Kaushalya&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: URGENT : NRF52840 hanging up after working for some time!!!</title><link>https://devzone.nordicsemi.com/thread/443806?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2023 00:30:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45e8f6bd-2bbe-41e2-a980-bbe7f573ab37</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Good idea to try series resistance, though the coin cell can have an internal resistance much higher than 86R. As an aside, better to use 6.3V rating ceramics on a 3V coin cell due to the ceramic capacitor derating effect which can be as much as 50% of the rated capacitance. 4u7 is way, way too small in any case :-) Try just&amp;nbsp;loading good and used coin cells with (say) 300R to get about 10mA drain and observe the coin cell voltage (which gives an indication of internal resistance) and how quickly each decays.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.murata.com/en-us/support/faqs/capacitor/ceramiccapacitor/char/0005"&gt;faq: ceramic capacitor derating&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: URGENT : NRF52840 hanging up after working for some time!!!</title><link>https://devzone.nordicsemi.com/thread/443803?ContentTypeID=1</link><pubDate>Wed, 30 Aug 2023 23:27:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b2d9b3f-61b2-4a98-85c2-b465652d8076</guid><dc:creator>kaushalyasat</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/hmolesworth"&gt;hmolesworth&lt;/a&gt;, Thanks again. Yesterday I did test the sensor which failed and as I mentioned earlier, I only saw about 0.2V drop from the oscilloscope. I dont think that is high enough to disrupt the radio behavior. I didnt see any voltage drops higher or closer to 1.7V. This is with the same battery that showed the hangup behavior earlier.&lt;/p&gt;
&lt;p&gt;I will hookup a low power voltage detector to see if any such voltage drops can be detected.&lt;/p&gt;
&lt;p&gt;The total capacitance on battery side is 4u7 at the moment. I can see what is the largest I can get in the same footprint so that it&amp;#39;s just a BoM change. I will add up more bulk capacitance in the next rev of the PCB.&lt;/p&gt;
&lt;p&gt;We have an LED that gets activated on button presses. It is not activated on any Tx cycles. When these devices lockup, most probably none of the LED or the button would have been activated.&lt;/p&gt;
&lt;p&gt;I am thinking of running a test with a series resistor of around 86R inserted to simulate a weak battery and see if I can recreate the issue.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Kaushalya&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: URGENT : NRF52840 hanging up after working for some time!!!</title><link>https://devzone.nordicsemi.com/thread/443688?ContentTypeID=1</link><pubDate>Wed, 30 Aug 2023 10:16:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bec4455-d8a8-4c8e-9035-0c9c73d3031e</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi Kaushalya,&lt;/p&gt;
&lt;p&gt;Just a FYI first:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;HFINT is the internal high frequency clock, and has nothing to do with the 32k clock&lt;/li&gt;
&lt;li&gt;LFRC is the internal 32k low frequency clock&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Your questions:&lt;/strong&gt;&lt;/p&gt;
[quote user=""]1. What possible causes could be there for the hang-up of nRF52840? As mentioned, it is powered by a 3V coin cell, which is not discharged and running off the internal HFINT oscillator.&amp;nbsp;[/quote]
&lt;ul&gt;
&lt;li&gt;As&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/hmolesworth"&gt;hmolesworth&lt;/a&gt;&amp;nbsp; mentions, voltage dips can lead to the device being stuck in a reset loop&lt;/li&gt;
&lt;li&gt;Or it could be software related. How has the device been configured to handle software asserts? Is it resetting on assert? If not, it will be stuck and not recover when an assert occurs.&lt;/li&gt;
&lt;/ul&gt;
[quote user=""]&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2. Can the 32k external oscillator being present in the sensor affect the stability of HFINT oscillator?&lt;/p&gt;[/quote]
&lt;p&gt;No, it will not affect the stability of the LFRC oscillator&lt;/p&gt;
[quote user=""]3. Is the way in which we have enabled the internal oscillator good enough? Do we need to do any calibrations for it?[/quote]
&lt;p&gt;Calibration should be automatically set when you enable LFRC in the configs. If you look through the &lt;strong&gt;build/zephyr/.config&lt;/strong&gt; file you can check if calibration has been enabled or not. This file shows the status for all configs after build.&lt;/p&gt;
[quote user=""]4. Can the internal WDT restart the HFINT oscillator, if it has stopped for whatever reason?[/quote]
&lt;p&gt;The WDT must be enabled. It will reset the chip if a hardfault/CPU lockup has occurred.&lt;/p&gt;
[quote user=""]5. How to enable, load and hit the internal WDT from application FW?[/quote]
&lt;p&gt;Here is a sample that shows how to use the WDT:&lt;br /&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/drivers/watchdog"&gt;https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/drivers/watchdog&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;API:&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/hardware/peripherals/watchdog.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/hardware/peripherals/watchdog.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Questions for you:&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Has the failure occurred multiple times on the same device?&lt;/li&gt;
&lt;li&gt;Have you been able to reproduce this on the returned devices?&lt;/li&gt;
&lt;li&gt;Does it recover after a power on reset?&lt;/li&gt;
&lt;li&gt;When the device is in this lockup state, are you able to probe voltage levels on different pins and post the results here? Pins of interest are, DEC1, DEC4 and nRESET as well as VDD.&lt;/li&gt;
&lt;li&gt;Is pin-reset enabled (Look for this in the &lt;strong&gt;build/zephyr/.config&lt;/strong&gt; file: &lt;span&gt;CONFIG_GPIO_AS_PINRESET)? If so, can you try to disable it and see if the lockup still occurs?&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;How is a software assert being handled? Is it resetting? More specifically is &lt;span&gt;&lt;span dir="ltr"&gt;RESET_ON_FATAL_ERROR&lt;/span&gt;&lt;/span&gt; being set?&lt;/li&gt;
&lt;li&gt;Are you able to connect a debugger and see where in the program is when the device stops working? You can use &lt;code&gt;nrfjprog --readregs&lt;/code&gt; to read out the relevant registers. Note that starting a debug session may reset the device, unless you choose to connect to running target. So I will suggest using &lt;code&gt;nrfjprog --readregs&lt;/code&gt; which will not reset the device.&lt;/li&gt;
&lt;li&gt;Can you post the current profile (.ppk file) of the device when it is in this lockup state?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Stian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: URGENT : NRF52840 hanging up after working for some time!!!</title><link>https://devzone.nordicsemi.com/thread/443620?ContentTypeID=1</link><pubDate>Tue, 29 Aug 2023 21:45:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05520831-cf13-4cf1-882f-93f7b86828f7</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;OpenThread or BLE, same issue. Power Profiler II unfortunately only measures current and not&amp;nbsp;voltage, although I believe this option has been requested. That means really a &amp;#39;scope is required to show both current and voltage decay; no obvious voltage dips is highly improbable, if you&amp;#39;ll pardon me suggesting that. The difference between a depleted battery and new is a much higher internal impedance in the former, leading to more problematic voltage dips for a given current spike. Ironically network traffic of unrelated devices in the immediate physical vicinity in the 2.4GHz band - BLE, OT, Wi-Fi, ... will cause&amp;nbsp;greater problems as a retransmission attempt due to a transmit interfered with can effectively double the voltage dip time which deepens the dip as&amp;nbsp;the coin cell voltage falls at a pretty constant rate during transmission and recovers slowly, even more so on a depleted battery.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Power Profiler II has a slow sample rate, 100KHz if I remember correctly. That&amp;#39;s too slow to see fast spikes which can trigger the reset.&amp;nbsp;Using brown-out detection or a comparator at a higher voltage level can capture progressively lower voltage drops which may occur prior to a reset, worth considering, as these can indicate the chance of a reset in the near future.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The side effect of these voltage dips even if no reset issue if using any form of analogue sensor is easily seen by taking an FFT on the data stream, where the periodic transmit pulse will show as a frequency spike at the update rate of the transmission assuming regular transmission intervals. That&amp;#39;s a bit of a nuisance when diagnosing medical conditions from biometric sensors, for example.&lt;/p&gt;
&lt;p&gt;What is the total capacitance on the coin cell? Are there any other circuits (maybe LEDs or flash memory) which can have current spikes coincident with a transmission (typically asynchronous spikes to transmission but periodically coinciding)? It is possible to suppress all other current pulses during a transmission pulse by using radio events.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: URGENT : NRF52840 hanging up after working for some time!!!</title><link>https://devzone.nordicsemi.com/thread/443480?ContentTypeID=1</link><pubDate>Tue, 29 Aug 2023 03:13:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61a7b0c0-1e94-45fe-beab-a766a0ee9a22</guid><dc:creator>kaushalyasat</dc:creator><description>&lt;p&gt;Hi Kazi,&lt;/p&gt;
&lt;p&gt;Thanks for your help. We dont use the external oscillator now, even though the actual parts are still present in the PCB. We use the internal oscillator by having the following in the prj.conf&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_CLOCK_CONTROL&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The 32k crystal we used is Abracon&amp;nbsp;ABS05-32.768KHZ-9-T. Data sheet&amp;nbsp;&lt;a href="https://abracon.com/Resonators/ABS05.pdf?src-supplier=Digi-Key"&gt;Abracon ABS05-32.768KHZ-9-T&lt;/a&gt;. The load caps are 8pF.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We may not have selected any accuracy settings. Please let us know what to set and how to set it.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Kaushalya&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: URGENT : NRF52840 hanging up after working for some time!!!</title><link>https://devzone.nordicsemi.com/thread/443477?ContentTypeID=1</link><pubDate>Tue, 29 Aug 2023 03:03:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92140e83-1c57-4588-9607-6d3685d5b116</guid><dc:creator>kaushalyasat</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;hmolesworth, &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for this. We use OpenThread, not BLE, if that matters. We have used the power profiler to check the peak current demand on transmit periods, and didnt see any voltage drops. Having said that, the coin cells probably are newish. But the ones we have seen hanging up, the batteries are pretty much brand new. I have attached a current profile I have taken from Power Profiler.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:16px;max-width:16px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/32x32/__key/communityserver-discussions-components-files/4/pastedimage1693277891510v1.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Also the two sensors which failed in the lab, after power cycling they seem to be going on. Do you reckon if a depleted&amp;nbsp;battery can show this kind of behavior&amp;nbsp;for like a week?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have tested one of these sensors. The 3V drops to about 2.8V when the TX is active and the sensor is wakeup. But I haven&amp;#39;t seen any drops like close to 1.7V.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I will see how to have a bulk capacitance&amp;nbsp;in parallel to the VBAT, but due to space limitations, it would be tricky to get something like 150u. We use the nRF52 DC-DC regulator by&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BOARD_ENABLE_DCDC_HV&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BOARD_ENABLE_DCDC&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;in prj.conf.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Cheers,&lt;/div&gt;
&lt;div&gt;Kaushalya&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: URGENT : NRF52840 hanging up after working for some time!!!</title><link>https://devzone.nordicsemi.com/thread/443444?ContentTypeID=1</link><pubDate>Mon, 28 Aug 2023 16:43:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f596bb93-7f47-417c-8430-e31f34a67a87</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;As an aside, a single CR2032 coin cell will not be able to support BLE transfers for very long without the voltage dip on BLE transmit (even if just advertising) leading to repeated resets and eventual hang-up of the nRF52 as the voltage recovery rise time of the coin call slows down and eventually violates the VCC rise time. When the CR2032 coin cell is new this may not be an issue, but with time the internal impedance of the coin call increases so much that the transmit power pulse causes a large voltage dip. This can be confusing to debug as a coin cell - even when nearly fully discharged - can recover to 2.9 volts while the nRF52 is in reset.&lt;/p&gt;
&lt;p&gt;Avoid this by increasing the size of the bulk capacitance on the coin cell; typically 150uF is a minimum using ceramic capacitors rated at double the coin cell voltage, 10 volt rating preferred. More is better. Ensure the nRF52 DC-DC is enabled, which can halve the required pulse current drain from the coin cell which can in turn reduce the voltage dip on transmit.&lt;/p&gt;
&lt;p&gt;Edit: More info in these 2 posts:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/102193/nrf52810-using-cr2032-in-freezing-temps"&gt;nrf52810-using-cr2032-in-freezing-temps&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/103072/issues-with-power-on-reset-in-nrf52840---the-chip-hangs"&gt;issues-with-power-on-reset&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: URGENT : NRF52840 hanging up after working for some time!!!</title><link>https://devzone.nordicsemi.com/thread/443291?ContentTypeID=1</link><pubDate>Mon, 28 Aug 2023 07:22:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3e8d262-19d5-45d3-a5cc-35277d8dcedb</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Kaushlya,&lt;/p&gt;
&lt;p&gt;I have started looking into the case. How have you made sure &amp;#39;&amp;#39;&lt;span&gt;Now we&amp;nbsp;have an external 32k oscillator in our design, which showed stopping after some time&amp;nbsp;probably due to capacitor loading not being correct.&amp;#39;&lt;/span&gt;&amp;#39;?&amp;nbsp;&lt;span&gt;The HFXO must be running to use the RADIO,&amp;nbsp;or the calibration mechanism associated with the 32.768 kHz RC oscillator.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When you turned to internal oscillator&amp;nbsp;did you select the correct accuracy of the crystal? For higher LFCLK accuracy (when better than +/- 500 ppm accuracy is required), the low frequency crystal oscillator (LFXO) must be used. I can not see these seatings&amp;nbsp;in your prj.conf file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you please share your crystal datasheet with us?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;Kazi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>