<?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>nrf9160 &amp;amp; NCS: reset reason CTRLAP</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89847/nrf9160-ncs-reset-reason-ctrlap</link><description>Hi, 
 While developing my application for my company on a nRF9160 on a custom board, I came to use the nrfx_reset_reason.h to get my reset cause. 
 RESETREAS looks as follows: 
 
 https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf9160%2Fpower</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Jul 2022 14:18:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89847/nrf9160-ncs-reset-reason-ctrlap" /><item><title>RE: nrf9160 &amp; NCS: reset reason CTRLAP</title><link>https://devzone.nordicsemi.com/thread/376807?ContentTypeID=1</link><pubDate>Wed, 13 Jul 2022 14:18:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85105107-8f4a-408f-ab50-8c58f58bf413</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Yes, you are right! Thanks for pointing out. Happy to hear that it works.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 &amp; NCS: reset reason CTRLAP</title><link>https://devzone.nordicsemi.com/thread/376695?ContentTypeID=1</link><pubDate>Wed, 13 Jul 2022 04:49:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74cf2d0e-2e64-405b-9e13-4a1579a2bc6b</guid><dc:creator>MaLu</dc:creator><description>&lt;p&gt;Probably a typo, but I believe the define to be checked and assigned should be&amp;nbsp;&lt;code&gt;&lt;strong&gt;POWER&lt;/strong&gt;_RESETREAS_CTRLAP_Msk&lt;/code&gt;, as that is actually bit 18.&amp;nbsp;&lt;code&gt;&lt;strong&gt;RESET&lt;/strong&gt;_RESETREAS_CTRLAP_Msk&lt;/code&gt; would be bit 2 and that define would not be available anyways.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;but other than that, it would work, yes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you very much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 &amp; NCS: reset reason CTRLAP</title><link>https://devzone.nordicsemi.com/thread/376643?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2022 13:53:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7eae2d6c-57c3-4930-9cf6-abd0bc306c16</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;I&amp;#39;ve got some feedback from our developers.&lt;/p&gt;
&lt;p&gt;The &lt;span&gt;this value is indeed missing. The flag is not available in other SoCs that have the RESETREAS register (nRF9160 seems to be the only one that has this flag there), that&amp;#39;s why probably it was not added there yet. We need to add:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#if defined(RESET_RESETREAS_CTRLAP_Msk)
    NRFX_RESET_REASON_CTRLAP_MASK    = RESET_RESETREAS_CTRLAP_Msk,
#endif&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;after the else on the top the screenshot you provided.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Let me know how that works compared to the workaround you have.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 &amp; NCS: reset reason CTRLAP</title><link>https://devzone.nordicsemi.com/thread/376379?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2022 10:01:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67c4ad46-449d-4bde-bdb8-dfd5099679ea</guid><dc:creator>MaLu</dc:creator><description>&lt;p&gt;I&amp;#39;m on NCS 1.8.0, but the enum is the same in 1.9.1.&lt;/p&gt;
&lt;p&gt;Well, this isn&amp;#39;t available because of the&amp;nbsp;&lt;code&gt;&lt;span&gt;#if&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;!&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;NRF_POWER_HAS_RESETREAS&lt;/code&gt; above.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When the RESETREAS register is available, the enum entries get mapped to the&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;strong&gt;POWER&lt;/strong&gt;_RESETREAS_XXX_Msk&lt;/code&gt; defines.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;But somehow the CtrlAp reset isn&amp;#39;t in this enum.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;As a workaround, I am directly checking against the define&amp;nbsp;&lt;/span&gt;&lt;span&gt;&lt;code&gt;POWER_RESETREAS_CTRLAP_Msk&lt;/code&gt;, which should work in my application, but I still think that CTRLAP should also get an entry in the enum.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 &amp; NCS: reset reason CTRLAP</title><link>https://devzone.nordicsemi.com/thread/376375?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2022 09:31:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44a57b07-43eb-4c73-9aee-af89eec0f84e</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p style="color:rgba(0, 0, 0, 1);font-family:Arial;font-size:9pt;margin:0;"&gt;&lt;span style="background-image:initial;background-size:initial;background-attachment:initial;background-color:rgba(255, 255, 255, 1);"&gt;the DevZone team and Nordic Semiconductor are currently in a summer vacation period, some delays in answers must be expected due to lower staffing during this period. We apologize for the inconvenience.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;What version of nRF Connect SDK are you working on?&lt;/p&gt;
&lt;p&gt;In &lt;em&gt;modules\hal\nordic\nrfx\helpers\nrfx_reset_reason.h&amp;nbsp;&lt;/em&gt;there is:&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    NRFX_RESET_REASON_CTRLAP_MASK    = RESET_RESETREAS_CTRLAP_Msk,
    /**&amp;lt; Reset from application CTRL-AP detected. */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>