<?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>Hard vs. Soft Reset, regarding the bootloader + RAM off</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73584/hard-vs-soft-reset-regarding-the-bootloader-ram-off</link><description>Hi, Below is the mapping of RAM on the 840 from the infocenter. We want to utilize the functionality to turn off unused RAM (via sd_power_ram_power_clr), but we see that if we turn off sections 4 and 5 of RAM8 (2 blocks of 32 KB each), our soft reset</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Apr 2021 14:49:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73584/hard-vs-soft-reset-regarding-the-bootloader-ram-off" /><item><title>RE: Hard vs. Soft Reset, regarding the bootloader + RAM off</title><link>https://devzone.nordicsemi.com/thread/303237?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 14:49:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc89e6d7-2f40-4893-a4de-577983eef929</guid><dc:creator>Roiger</dc:creator><description>&lt;p&gt;OK, thanks Einar!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hard vs. Soft Reset, regarding the bootloader + RAM off</title><link>https://devzone.nordicsemi.com/thread/303192?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 13:37:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34e93000-34db-42c1-9895-072415eb4af9</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user=""]1) Is my conclusion correct in that the call to&amp;nbsp;&lt;span&gt;APP_ERROR_CHECK triggered a hard reset?&lt;/span&gt;[/quote]
&lt;p&gt;No. The default SDK error handler will trigger a soft reset via&amp;nbsp;NVIC_SystemReset().&lt;/p&gt;
[quote user=""]2) Will all assertions/faults on a release board lead to a hard reset, resetting the RAM and allowing the bootloader --&amp;gt; app sequence to run w/o taking the battery out of the board and putting it back?[/quote]
&lt;p&gt;No. There is no reset that clears RAM explicitly (see &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/power.html?cp=4_0_0_4_2_5_7#concept_res_behav"&gt;reset behavior&lt;/a&gt;: &amp;quot;&lt;em&gt;The RAM is never reset, but depending on a reset source the content of RAM may be corrupted&lt;/em&gt;.&amp;quot;). The only way to confidently clear the RAM is to power-cycle the device or clear (parts of) the RAM from SW.&lt;/p&gt;
[quote user=""]3) The assumed hard reset after this call takes a pretty long time - around 3-3.5 minutes. Any idea why this is? Could it be because we use a watchdog?[/quote]
&lt;p&gt;I do not see how that would be related.&lt;/p&gt;
[quote user=""]4) Besides our calls to soft resets via&amp;nbsp;sd_nvic_SystemReset, are there any other soft resets initiated by the SD that we should be aware of to turn on the turned off RAM beforehand?[/quote]
&lt;p&gt;The SoftDevice will not to a reset by itself, so if you have a soft reset, it is because your code (including any SDK code) does it. I cannot say which part of the SDK is relevant for you, but you can see all relevant parts by searching for&amp;nbsp;NVIC_SystemReset() and&amp;nbsp;sd_nvic_SystemReset() in the SDK code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>