<?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 Key management error 528 – Not allowed when power off warning is active.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116010/nrf9160-key-management-error-528-not-allowed-when-power-off-warning-is-active</link><description>Using Modem FW 1.3.6. Using NCS 2.6.0. 
 We&amp;#39;re experiencing an issue in a test setup where we are getting this error reported (528) when trying to clear/set root certificates via modem_key_mgmt_delete() / modem_key_mgmt_write(). 
 We haven&amp;#39;t yet found</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Nov 2024 15:43:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116010/nrf9160-key-management-error-528-not-allowed-when-power-off-warning-is-active" /><item><title>RE: nRF9160 Key management error 528 – Not allowed when power off warning is active.</title><link>https://devzone.nordicsemi.com/thread/508990?ContentTypeID=1</link><pubDate>Mon, 04 Nov 2024 15:43:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c64d36d7-63d6-4787-90a5-51db2e69a3e4</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Looking at&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/support-private/support/335437/Hi,%20%20Looking%20at%20t%20seems%20to%20me%20that%20your%20problem%20is%20related%20to"&gt;AT%CMNG set command&lt;/a&gt;, it seems to me that your problem is related to&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ref_at_commands/page/REF/at_commands/mob_termination_ctrl_status/xpofwarn.html"&gt;%XPOFWARN&lt;/a&gt;&amp;nbsp;warning. When this warning is active, it blocks read, write and delete operations on keys and certificates. In addition, write and delete operations are allowed only when modem is not active.&amp;nbsp;&lt;br /&gt;Relevant register for power failure warning is EVENTS_POFWARN which you can find described in the chapter 5.7.1.1 of the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf9160/page/nRF9160_html5_keyfeatures.html"&gt;nrf9160 product specification&lt;/a&gt;. You can read more about&amp;nbsp;external power failure warning in the chapter 5.3.1 of the same product specification. The POFWARN event to the CPU can be cleared in the event register.&amp;nbsp;&lt;br /&gt;There is also register&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf9160/page/uicr.html#register.APPNVMCPOFGUARD"&gt;APPNVMCPOFGUARD&lt;/a&gt;&amp;nbsp;which enables blocking of NVM write and aborting NVM erase.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Key management error 528 – Not allowed when power off warning is active.</title><link>https://devzone.nordicsemi.com/thread/508878?ContentTypeID=1</link><pubDate>Sun, 03 Nov 2024 08:01:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d482f0bc-c025-4c89-9fc7-dfff8cbc779f</guid><dc:creator>MortenK</dc:creator><description>&lt;p&gt;There&amp;#39;s not really much to it. The application is built on top of the Memfault example.&lt;/p&gt;
&lt;p&gt;The fault we&amp;#39;re seeing has only been seen when on a factory test jig, but consistently occurs.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;gt;[00:00:00.554,168] &amp;lt;inf&amp;gt; mflt: Removing Root CA 1004&lt;br /&gt;&amp;gt;[00:00:00.563,476] &amp;lt;wrn&amp;gt; modem_key_mgmt: Not allowed when power off warning is active&lt;br /&gt; &amp;gt;[00:00:00.563,537] &amp;lt;err&amp;gt; mflt: Failed to delete cert, err -140&lt;br /&gt;&amp;gt;[00:00:00.611,053] &amp;lt;inf&amp;gt; mflt: Cert 1001 in storage is not up-to-date&lt;br /&gt;&amp;gt;[00:00:00.611,114] &amp;lt;inf&amp;gt; mflt: Installing Root CA 1001&lt;br /&gt;&amp;gt;[00:00:00.615,814] &amp;lt;wrn&amp;gt; modem_key_mgmt: Not allowed when power off warning is active&lt;br /&gt;&amp;gt;[00:00:00.615,875] &amp;lt;err&amp;gt; mflt: Failed to provision certificate, err -140&lt;br /&gt;&lt;br /&gt;Ultimately the modem is returning 528 as the error code for the AT command as documented here.&lt;br /&gt;&lt;a id="" href="https://docs.nordicsemi.com/bundle/ref_at_commands/page/REF/at_commands/security/cmng_set.html"&gt;https://docs.nordicsemi.com/bundle/ref_at_commands/page/REF/at_commands/security/cmng_set.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Is this related to POFWARN? If so, is this latched/clearable, or does it indicate the power supply is currently at too low a voltage?&lt;br /&gt;We do not use/adjust this feature off of any default settings at the moment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Key management error 528 – Not allowed when power off warning is active.</title><link>https://devzone.nordicsemi.com/thread/508842?ContentTypeID=1</link><pubDate>Fri, 01 Nov 2024 15:51:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7db29a9-b54d-42d5-95b3-d44ada3d6ac9</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Can you please provide more information about your application?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Can you show the error? Please provide full error log.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>