<?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>Secure bootloader and Logs</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78863/secure-bootloader-and-logs</link><description>Hello, I am developing an application on nrf52840 using SDK 17. My application has a bootloader and sometimes when my application is restarting due to a command I send (using NVIC_SystemReset() function) it causes a double reset (a second reset while</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 30 Aug 2021 08:28:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78863/secure-bootloader-and-logs" /><item><title>RE: Secure bootloader and Logs</title><link>https://devzone.nordicsemi.com/thread/327129?ContentTypeID=1</link><pubDate>Mon, 30 Aug 2021 08:28:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f3d0859-b62b-422e-9ebe-f5d9c7671593</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Do you have the same &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/power.html#register.RESETREAS"&gt;reset reason&lt;/a&gt; at each startup?&lt;/p&gt;
&lt;p&gt;Try printing the reset reason when you print the first timestamp.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;uint32_t reset_reason = NRF_POWER-&amp;gt;RESETREAS;&lt;/pre&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader and Logs</title><link>https://devzone.nordicsemi.com/thread/326364?ContentTypeID=1</link><pubDate>Tue, 24 Aug 2021 12:05:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8df2b821-effb-4742-9dd7-a3a98d9b3b48</guid><dc:creator>LSz</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;I have a timestamp in every log, the timestamp goes back to 00:00:00 only when a reset has occurred. When I checked the logs after the reset, the timestamp turned to 00:00:00 and a startup process has started. Then another log with the timestamp 00:00:00 is printed and the startup process has started again.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; Moreover, my device has a screen you can clearly see that during the reset using&amp;nbsp; &lt;span&gt;NVIC_SystemReset() a second reset is occurring before the first one is finished.&lt;br /&gt;This doesn&amp;#39;t happen every time I use the&amp;nbsp;NVIC_SystemReset(), and it never happens to me when I disable the logs on my application, or when I am running the application without the bootloader.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have tried to find a connection between the Logs and the bootloader that could cause this reset.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure bootloader and Logs</title><link>https://devzone.nordicsemi.com/thread/326343?ContentTypeID=1</link><pubDate>Tue, 24 Aug 2021 11:19:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d62dee8-10ef-48d7-bc1a-b6371583a0dc</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;How did you determine if a &amp;quot;double reset&amp;quot; is occurring?&lt;/p&gt;
&lt;p&gt;As you might know, default behavior if an error code is passed into&amp;nbsp;APP_ERROR_CHECK() is to do a reset.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>