<?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>nRF52832: RESETREAS = 10, DOG | LOCKUP?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42565/nrf52832-resetreas-10-dog-lockup</link><description>We&amp;#39;re reading RESETREAS at startup from our nRF52832 cpu, and getting the value 10. The docs show that this refers to DOG and LOCKUP bits both being set. We don&amp;#39;t have the debug interface enabled, so core lockup should be resetting immediately. Similarly</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Jan 2019 14:30:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42565/nrf52832-resetreas-10-dog-lockup" /><item><title>RE: nRF52832: RESETREAS = 10, DOG | LOCKUP?</title><link>https://devzone.nordicsemi.com/thread/167143?ContentTypeID=1</link><pubDate>Tue, 22 Jan 2019 14:30:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c9b4e21-ed09-4146-967f-962eae007229</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Charles,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes, I think that these are the two plausible scenarios that will result in &lt;span&gt;LOCKUP | DOG set in RESETREAS..&amp;nbsp;&lt;/span&gt;I cannot find any errata that&amp;nbsp;describes RESETREAS registers erroneously indicating LOCKUP | DOG or&amp;nbsp;&lt;span&gt;LOCKUP&amp;nbsp;or DOG&lt;/span&gt;&amp;nbsp;individually&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832: RESETREAS = 10, DOG | LOCKUP?</title><link>https://devzone.nordicsemi.com/thread/166959?ContentTypeID=1</link><pubDate>Mon, 21 Jan 2019 17:58:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:039a636f-47c8-42fa-9e83-dc4d9b859adf</guid><dc:creator>charles</dc:creator><description>&lt;p&gt;I see, so if there isn&amp;#39;t any errata that applies here, two possible scenarios are:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1. We&amp;#39;re in an infinite loop somewhere, WDG resets us, and we enter a core lockup before we check + clear RESETREAS.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2. We experience a core lockup, and when we reset, we enter an infinite loop before we check + clear RESETREAS.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In both scenarios, the end result is LOCKUP | DOG set in RESETREAS.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is plausible; we save state in a section of RAM that we retain across resets; if that&amp;#39;s getting corrupted we might see issues like this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Anyway, it sounds like there aren&amp;#39;t any errata that apply, and that if we see LOCKUP | DOG in RESETREAS, it&amp;#39;s real and being correctly reported.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If that&amp;#39;s the case, then let&amp;#39;s close this ticket. Thanks for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832: RESETREAS = 10, DOG | LOCKUP?</title><link>https://devzone.nordicsemi.com/thread/166542?ContentTypeID=1</link><pubDate>Fri, 18 Jan 2019 15:27:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:880294eb-b468-44e2-84b9-0fe56050daf1</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;HI Charles, I just realized that a reset caused by a CPU lockup will &lt;strong&gt;&lt;span style="text-decoration:underline;"&gt;not&lt;/span&gt;&lt;/strong&gt;&amp;nbsp;clear the Watchdog. So if the CPU lockup occurs and then the WDT will still be running after the reset and then timeout.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-b5dfff5822d34489af5e796a877c4bea/pastedimage1547825208328v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832: RESETREAS = 10, DOG | LOCKUP?</title><link>https://devzone.nordicsemi.com/thread/166295?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2019 15:06:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:171befca-63b3-40c3-80a0-6776049a56cd</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Charles,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Q1: According to the &lt;a href="http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0553a/BGBFCHGC.html"&gt;ARM&amp;nbsp;Cortex-M4 Devices Generic User Guide&amp;nbsp;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The processor enters a lockup state if a fault occurs when executing the NMI or HardFault handlers. When the processor is in lockup state it does not execute any instructions. The processor remains in lockup state until either: &lt;br /&gt;&amp;nbsp; • it is reset &lt;br /&gt;&amp;nbsp; • an NMI occurs &lt;br /&gt;&amp;nbsp; • it is halted by a debugger.&lt;/p&gt;
&lt;p&gt;as the lockup it self will cause a the chip to reset and you do not have a debugger connected then I would have to say no, its not possible for the core to remain in a locked up state with no debug hardware connected.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Q2: Do not think that this is possible as stated in Q2. Will confirm this internally.&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832: RESETREAS = 10, DOG | LOCKUP?</title><link>https://devzone.nordicsemi.com/thread/166139?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2019 08:05:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:372e5c66-5b16-4b94-80d7-7e3228b6d84f</guid><dc:creator>charles</dc:creator><description>&lt;p&gt;Update: we&amp;#39;ve identified a potential path through the code where we do not read + clear the RESETREAS immediately, so we could be seeing the signals accumulate up. Still looking into it, though answers to the previous questions would still be appreciated if possible!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832: RESETREAS = 10, DOG | LOCKUP?</title><link>https://devzone.nordicsemi.com/thread/166116?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2019 02:39:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdfec4d5-7490-4c9c-92ea-2c2faf1a6962</guid><dc:creator>charles</dc:creator><description>&lt;p&gt;Heya&amp;nbsp;&lt;span&gt;Bj&amp;oslash;rn, I&amp;#39;ve confirmed that we do immediately read and clear RESETREAS.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;We&amp;#39;re trying to understand a scenario where LOCKUP and DOG could both be set. Our understanding is that entering core&amp;nbsp;lockup immediately resets the part unless the debug interface is enabled. The units exhibiting LOCKUP | DOG are enclosed and in use in the field, with no debugging hardware attached to the SWD pins.&lt;/p&gt;
&lt;p&gt;If we&amp;#39;re wrong here, and the devices somehow have their debug interfaces enabled, then the datasheet specifies that the CPU will simply halt during a core lockup.&lt;/p&gt;
&lt;p&gt;Could you help us understand these questions please?&lt;/p&gt;
&lt;p&gt;1. nRF52832 v1.0 16.3 says&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;As long as the debugger is requesting power via CxxxPWRUPREQ, the device will be in debug interface mode. If the debugger is not requesting power via CxxxPWRUPREQ, the device will be in normal mode.&amp;quot;&lt;/p&gt;
&lt;p&gt;Is it possible to stand in core lockup with no debugging hardware attached?&lt;/p&gt;
&lt;p&gt;2. If the unit is somehow standing in core lockup without a debugger attached, and the watchdog expires, would RESETREAS at startup be LOCKUP | DOG?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832: RESETREAS = 10, DOG | LOCKUP?</title><link>https://devzone.nordicsemi.com/thread/166037?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 14:48:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7989ad66-cf7d-412d-8eb3-a8f1b7c0e677</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Charles,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not aware of any known Erratas with the LOCKUP and DOG bits in RESETREAS being set when they shouldnt be.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you seeing this consistently or is occurring randomly? Are you reading the RESETREAS register immediately after entering main(), printing it/storing the value and then clearing the RESETREAS register?&lt;/p&gt;
&lt;p&gt;Unless cleared, the RESETREAS register will be cumulative,&amp;nbsp;so it could be that this is two resets in sequence, e.g. either the CPU_LOCK occurs first and then at a later point the watchdog fires, or vice versa.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832: RESETREAS = 10, DOG | LOCKUP?</title><link>https://devzone.nordicsemi.com/thread/166002?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 13:57:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e49543ca-1dfe-4220-95a3-43ff88afc0d9</guid><dc:creator>charles</dc:creator><description>&lt;p&gt;Thanks for the quick response,&amp;nbsp;&lt;span&gt;Bj&amp;oslash;rn.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The errata you linked only mentions RESETPIN. In our case, we&amp;#39;re not seeing RESETPIN, just LOCKUP | DOG. Would you mind being a little more explicit and confirm or clarify:&lt;/p&gt;
&lt;p&gt;1. Is seeing LOCKUP | DOG also an errata? If not, is there a scenario where both could occur simultaneously? If there is, could you walk us through it please?&lt;/p&gt;
&lt;p&gt;2. If we can&amp;#39;t trust LOCKUP | DOG, which individual signal should we assume triggered the reset?&lt;/p&gt;
&lt;p&gt;These signals are very important for failure analysis, so knowing which one (or both) are correct is critical.&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Charles&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832: RESETREAS = 10, DOG | LOCKUP?</title><link>https://devzone.nordicsemi.com/thread/165985?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 13:25:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6788f77e-0869-435d-95c4-2ffe7887ac8a</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;HI Charles,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think this could be related to Errata&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://www.nordicsemi.com/DocLib/Content/Errata/nRF52832_Rev2/latest/ERR/nRF52832/Rev2/latest/anomaly_832_136"&gt;[136] System: Bits in RESETREAS are set when they should not be&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832: RESETREAS = 10, DOG | LOCKUP?</title><link>https://devzone.nordicsemi.com/thread/165835?ContentTypeID=1</link><pubDate>Tue, 15 Jan 2019 20:57:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b59effc4-f820-4771-bb0d-8aa1ed0f305b</guid><dc:creator>charles</dc:creator><description>&lt;p&gt;We&amp;#39;re using&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/pdf/nRF52832_PS_v1.4.pdf"&gt;http://infocenter.nordicsemi.com/pdf/nRF52832_PS_v1.4.pdf &lt;/a&gt;as a reference, 18.9.3 RESETREAS&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>