<?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 reset and RESETREAS is 0x00000008(LOCKUP)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63942/nrf52832-reset-and-resetreas-is-0x00000008-lockup</link><description>Hi,DevZone 
 I&amp;#39;m not Native English , sometimes can not express exactly, So, I&amp;#39;ll provide a concise description about the question 
 
 1, platform: nRF52832_QFAA _E1, nRF5_SDK_13.0 
 2, question: nRF52832 RESET(erratic and rare) and RESETREAS is 0x00000008</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Jul 2020 09:26:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63942/nrf52832-reset-and-resetreas-is-0x00000008-lockup" /><item><title>RE: nRF52832 reset and RESETREAS is 0x00000008(LOCKUP)</title><link>https://devzone.nordicsemi.com/thread/260953?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 09:26:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99c8e684-9521-4d90-b5b7-724a2c5dedce</guid><dc:creator>Turbo J</dc:creator><description>[quote userid="14621" url="~/f/nordic-q-a/63942/nrf52832-reset-and-resetreas-is-0x00000008-lockup/260871"]why can a new hardfault occur after&amp;nbsp;hardfault&amp;nbsp;was&amp;nbsp;processing already? [/quote]
&lt;p&gt;One example:&amp;nbsp; Corrupted stack pointer register, e.g. in a buffer overflow scenario.&lt;/p&gt;
&lt;p&gt;The hardfault logic does the same register push onto the stack like any other interrupt/exception. If you get a problem here - because SP no longer points to valid RAM - the fault handler code will never be executed, as the core goes into lockup during the stacking.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 reset and RESETREAS is 0x00000008(LOCKUP)</title><link>https://devzone.nordicsemi.com/thread/260943?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 09:02:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:daa05af7-981f-44d7-9cbe-6b808d550909</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;I suggest you also log the cpu registers to flash in the hardfault handler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 reset and RESETREAS is 0x00000008(LOCKUP)</title><link>https://devzone.nordicsemi.com/thread/260902?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 01:52:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10b63108-c2f5-4cf9-abd0-825937c29d26</guid><dc:creator>jacksong</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In thsi case, the Reset was capture from daily use of product instead of simulation debug. I make a simple flash system on extern-SPI-flash, which can save RESETREAS and other necessary message as soon as&amp;nbsp;chip reset. the LUCKUP shown to you is readback from flash.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 reset and RESETREAS is 0x00000008(LOCKUP)</title><link>https://devzone.nordicsemi.com/thread/260884?ContentTypeID=1</link><pubDate>Mon, 20 Jul 2020 19:16:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:862d5efd-33ff-4644-a876-1712c8a142a6</guid><dc:creator>Turbo J</dc:creator><description>[quote userid="14621" url="~/f/nordic-q-a/63942/nrf52832-reset-and-resetreas-is-0x00000008-lockup"]RESETREAS is&amp;nbsp;0x00000008(LOCKUP)[/quote]
&lt;p&gt;How do you know that?&lt;/p&gt;
&lt;p&gt;I am asking because Segger RTT logging internally enables debug registers. Which means those breakpoint instruction will be executed, and directly trigger the Lockup (fault in Hard Fault condition).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 reset and RESETREAS is 0x00000008(LOCKUP)</title><link>https://devzone.nordicsemi.com/thread/260877?ContentTypeID=1</link><pubDate>Mon, 20 Jul 2020 17:28:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a76d9ab9-896c-4484-b4a1-2e955a31d378</guid><dc:creator>haakonsh</dc:creator><description>&lt;ol&gt;
&lt;li&gt;I understand&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;I&amp;#39;m not quite sure how, but it was mentioned in&amp;nbsp;the devzone post&amp;nbsp;you linked to.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;&lt;/li&gt;
&lt;/ol&gt;
[quote user="jackstraw"]do you mean newer SDK is more stabler? [/quote]
&lt;p&gt;Yes, a lot more stable.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user="jackstraw"]and now, Is it necessary to change the SDK before&amp;nbsp; figuring out the Root&amp;nbsp;cause of Reset?[/quote]
&lt;p&gt;The root cause might have been fixed already, SDK13 is very old.&amp;nbsp;&lt;br /&gt;If the issue disappears after a migration to a newer SDK then it&amp;#39;s not really an issue anymore right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 reset and RESETREAS is 0x00000008(LOCKUP)</title><link>https://devzone.nordicsemi.com/thread/260871?ContentTypeID=1</link><pubDate>Mon, 20 Jul 2020 16:34:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d42c87c5-905e-4a8a-bae7-20214c8140bc</guid><dc:creator>jacksong</dc:creator><description>&lt;p&gt;Thanks for your timely reply! and I want to&amp;nbsp;consult you further.&lt;/p&gt;
&lt;p&gt;1) I will try to print, but i&amp;#39;m afraid can not do it, because It&amp;#39;s difficult to reproduce the Reset.&lt;/p&gt;
&lt;p&gt;2)&amp;nbsp;why can a new hardfault occur after&amp;nbsp;hardfault&amp;nbsp;was&amp;nbsp;processing already? I&amp;#39;m confused, my HardFault_Handler is nothing&amp;nbsp;except a empty loop, maybe a new interrupt was generated here, But any interrupt priority can be higher than hardfault?&lt;/p&gt;
&lt;p&gt;3) do you mean newer SDK is more stabler? and now, Is it necessary to change the SDK before&amp;nbsp; figuring out the Root&amp;nbsp;cause of Reset? (maybe i can&amp;#39;t capture reset anymore, therefore, the specific reason cannot be verified)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 reset and RESETREAS is 0x00000008(LOCKUP)</title><link>https://devzone.nordicsemi.com/thread/260844?ContentTypeID=1</link><pubDate>Mon, 20 Jul 2020 14:48:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e550d4f4-f748-4b38-8f86-b8bc40eb34e0</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;You can start by dumping the CPU registers into a log or reading them out via a debugger when you get a hardfault.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;so far the most likely cause of the CPU lockup is a hardfault while the CPU is executing the hardfault handler. So finding the original hardfault is necessary.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Also, why&amp;nbsp;have you not migrated to a newer SDK yet?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>