<?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>How to count the number of reset ? (WDT)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98349/how-to-count-the-number-of-reset-wdt</link><description>Hi Nordic , 
 
 As my firmware is 99.9% stable now, i add the wadtchdog in my code. 
 
 As it is possible to be 24h in sleep mode without wake up, I set my watchdog behavior to 8 ( pause during sleep). It works fine. 
 
 To simulate the issue, i placed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Apr 2023 15:53:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98349/how-to-count-the-number-of-reset-wdt" /><item><title>RE: How to count the number of reset ? (WDT)</title><link>https://devzone.nordicsemi.com/thread/419088?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2023 15:53:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:279b16f0-c4c2-4daf-a0d9-5c33af0e774e</guid><dc:creator>Olfox</dc:creator><description>&lt;p&gt;Thanks Kenneth. I tried on the devBoard to disconnect all my sensors pin, without effect.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tried to un init the spi too but no impact.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using a isp1907ht module, so i can&amp;#39;t really access the pins directly on my custom board.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Ok thanks , i will create a new ticket i think :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to count the number of reset ? (WDT)</title><link>https://devzone.nordicsemi.com/thread/419084?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2023 15:24:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f232f9e-3ff5-4abb-8ae3-50546c9327c8</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;The issue could still be due to floating pin, if you have a 1Mohm resistor you can try to ground one end and try to access the pins with the other end as see if the current suddenly changes.&lt;/p&gt;
&lt;p&gt;Not sure of the other issue you have no with the power profiler app, you can try to make a new case for it (though I know there is a problem with the latest, but not sure if it&amp;#39;s related to the description you have).&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to count the number of reset ? (WDT)</title><link>https://devzone.nordicsemi.com/thread/419067?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2023 13:40:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6db5c6b-29eb-4df5-a587-f189b9590f62</guid><dc:creator>Olfox</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I make new measurement with my product ( not the devBoard this time), and i don&amp;#39;t have the same strange value anymore.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;My sleep current measure is arround 3.5uA. And i don&amp;#39;t have the increasing of the average affect.&lt;/p&gt;
&lt;p&gt;So may be linked to my custom devboard...&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp; &amp;nbsp;But I have a problem with the Power Profil softaware. The X time scale is false. when i have 10sec between advertising, the software indicate somethink like 5sec. It is like the X scale is corrupted. I tried to play with sampling rate , enable disable timestamp etc but nothing solve the issue. The value are still corrupted in the export csv.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I searched on the info center, some people had the issue but there is no real solution apparently. Did you face the issue too ?&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/pastedimage1680615638954v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2. Concerning ram retention, how to identify in whitch block my data are saved to disable the other block during sleep ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks a lot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to count the number of reset ? (WDT)</title><link>https://devzone.nordicsemi.com/thread/418889?ContentTypeID=1</link><pubDate>Mon, 03 Apr 2023 15:08:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdfd1313-ed1c-40cf-a4a4-31169785e7cc</guid><dc:creator>Kenneth</dc:creator><description>[quote user="Olfox"]Thank you for your answer. So i should write&amp;nbsp;into flash in&amp;nbsp;wdt_event_handler ?[/quote]
&lt;p&gt;No, you should on power up check the NRF_POWER-&amp;gt;RESETREAS register, and if it indicate watchdog reset, then you can update the counter value.&lt;/p&gt;
[quote user="Olfox"]Sometimes i measure 60-80 sometimes, 70-90uA it depends. Please find some screenshoot below:[/quote]
&lt;p&gt;Could be something floating? Such as an input not connected to a defined level (all inputs should be logic low or high). Also check out:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/optimizing-power-on-nrf52-designs"&gt;Optimizing Power on nRF52 Designs&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to count the number of reset ? (WDT)</title><link>https://devzone.nordicsemi.com/thread/418875?ContentTypeID=1</link><pubDate>Mon, 03 Apr 2023 13:58:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c60c48ce-0b4c-4b27-b761-9cc89896fae0</guid><dc:creator>Olfox</dc:creator><description>&lt;p&gt;When the device is totally cold, current oscillate between 20uA and 30uA. And by the time, it start to increase:&amp;nbsp;&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/pastedimage1680529749758v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;There is also a period in between when there is a lot of noise ( nrf52833 is sleeping after the first 3seconde after boot so it is no linked to any software acitivty).&lt;/p&gt;
&lt;p&gt;&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/pastedimage1680529920149v2.png" alt=" " /&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/pastedimage1680529982069v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After around 3min , the current is stabilized between 60-80uA.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;According to the Product specifications, i should be more arround max 20uA with my accelerometer. I can wake on up on Interupt accelerometre pin and clock timer (24h).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to count the number of reset ? (WDT)</title><link>https://devzone.nordicsemi.com/thread/418868?ContentTypeID=1</link><pubDate>Mon, 03 Apr 2023 13:39:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88c5fd9b-a58e-4715-97a5-d0f7aa8bdeb0</guid><dc:creator>Olfox</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your answer. So i should write&amp;nbsp;into flash in&amp;nbsp;wdt_event_handler ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have another question concerning my power cunsumption. I find it a bit high ( between 60 and 80uA during sleep. I only have an accelerometre and the nrf52 in gpio wake up mode. I&amp;#39;m using PPK II to monitor it. there is a small shift too. Sometimes i measure 60-80 sometimes, 70-90uA it depends. Please find some screenshoot below:&lt;/p&gt;
&lt;p&gt;&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/sleep-current_5F00_80_2D00_100uA.png" alt=" " /&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/sleep-current_5F00_70_2D00_90uA.png" alt=" " /&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/sleep-current_5F00_60_2D00_80uA.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to count the number of reset ? (WDT)</title><link>https://devzone.nordicsemi.com/thread/418826?ContentTypeID=1</link><pubDate>Mon, 03 Apr 2023 11:31:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ba12f47-6c29-4589-935e-1ce21e10acf5</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;There is no retained registers after watchdog, ref:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52833/power.html#concept_res_behav"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf52833/power.html#concept_res_behav&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So you would need to store the counter in flash.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>