<?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>Power consumption cannot be reduced after using hardware encryption</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/125786/power-consumption-cannot-be-reduced-after-using-hardware-encryption</link><description>Hi 
 Nordic engineer 
 Power consumption cannot be reduced after using hardware encryption. Under normal conditions, the device power consumption is 30&amp;#181;A, but after calling aes_cbc_decrypt, it increases to 3.4mA. SDK is nrf5 17.0.0,how can I reduce power</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Nov 2025 10:52:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/125786/power-consumption-cannot-be-reduced-after-using-hardware-encryption" /><item><title>RE: Power consumption cannot be reduced after using hardware encryption</title><link>https://devzone.nordicsemi.com/thread/555725?ContentTypeID=1</link><pubDate>Fri, 28 Nov 2025 10:52:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fa7049f-41d6-4cd4-8a3a-09636f5efedb</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Since I&amp;#39;m not able to reproduce this on my end I suggest you try to troubleshoot this more on your side. For example, you can try to build without FPU enabled&amp;nbsp;(Note: this requires you to link in the non-FP variant of the cc310 runtime lib as well). Or you can try&amp;nbsp;find you why you are not measuring -2-3 ua with the&amp;nbsp;&lt;strong&gt;&lt;/strong&gt;examples\crypto\nrf_cc310\aes example.&lt;/p&gt;
[quote user="mokoysh"]&amp;nbsp; I&amp;#39;m sorry to misread the previous information,the project in the folder&amp;nbsp;aes_test\.MDK_Project\AES_TEST.uvprojx.[/quote]
&lt;p&gt;I see. I&amp;#39;m on macOS where directories with leading dot (.) like .MDK_Project will appear hidden by default.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power consumption cannot be reduced after using hardware encryption</title><link>https://devzone.nordicsemi.com/thread/555677?ContentTypeID=1</link><pubDate>Fri, 28 Nov 2025 01:16:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0953fb64-84d0-4319-a336-5d486ac56fe4</guid><dc:creator>mokoysh</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&amp;nbsp;&lt;span&gt;&amp;nbsp;Vidar&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Clear FPU interrupt before&amp;nbsp;&lt;span&gt;sd_app_evt_wait() can&amp;#39;t resolve the problem, but __WFI resolve it.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power consumption cannot be reduced after using hardware encryption</title><link>https://devzone.nordicsemi.com/thread/555602?ContentTypeID=1</link><pubDate>Thu, 27 Nov 2025 11:53:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12d5a9a9-c76b-463f-9f56-e0ab5fbb4cb3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;&lt;span&gt;sd_app_evt_wait() should behave like __WFE() and return when there is a pending interrupt. Still, the fact that you see lower current with __WFI() suggests that the problem is related to clearing of the FPU event and interrupt as Turbo mentioned. Did you try changing the order so that the FPU interrupt is cleared before the&amp;nbsp;sd_app_evt_wait() and not after?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power consumption cannot be reduced after using hardware encryption</title><link>https://devzone.nordicsemi.com/thread/555583?ContentTypeID=1</link><pubDate>Thu, 27 Nov 2025 09:23:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cd8957f-8567-4af1-b3e2-7aeac32d0dd8</guid><dc:creator>mokoysh</dc:creator><description>&lt;p&gt;Thanks reply&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I use&amp;nbsp;&lt;span&gt;__WFI() can reduce power&amp;nbsp; but&amp;nbsp; use sd_app_evt_wait() is still&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power consumption cannot be reduced after using hardware encryption</title><link>https://devzone.nordicsemi.com/thread/555582?ContentTypeID=1</link><pubDate>Thu, 27 Nov 2025 09:20:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fcf0ebb-4977-4914-bb51-0333beee2176</guid><dc:creator>mokoysh</dc:creator><description>&lt;p&gt;Hi&amp;nbsp; Vidar&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; I&amp;#39;m sorry to misread the previous information,the project in the folder&amp;nbsp;aes_test\.MDK_Project\AES_TEST.uvprojx.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; And i found&amp;nbsp; use&amp;nbsp;sd_app_evt_wait sleep is 3.4mA but&amp;nbsp; use __WFI()&amp;nbsp; will reduce power .&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; Can i use&amp;nbsp;sd_app_evt_wait and&amp;nbsp;__WFI() at same time?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power consumption cannot be reduced after using hardware encryption</title><link>https://devzone.nordicsemi.com/thread/555578?ContentTypeID=1</link><pubDate>Thu, 27 Nov 2025 09:04:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a732ef0-29f0-44ac-8222-515ea9317479</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Wr0ng order of operation in &lt;code&gt;power_manage()&lt;/code&gt; function.&lt;/p&gt;
&lt;p&gt;You need to kill FPU exceptions&amp;nbsp;&lt;em&gt;first&lt;/em&gt;,&amp;nbsp;and&amp;nbsp;&lt;em&gt;then&lt;/em&gt; call &lt;code&gt;sd_app_evt_wait().&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Your order will wait for SD events with FPU enabled, and that may keep the MCU at high consumtion state.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;EDIT: Did not see the ble stuff before posting. But if advertizer was inactive, the sd_app_evt_wait() call might&amp;nbsp; never return.&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power consumption cannot be reduced after using hardware encryption</title><link>https://devzone.nordicsemi.com/thread/555574?ContentTypeID=1</link><pubDate>Thu, 27 Nov 2025 08:29:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a69642b-138f-4ba5-8ab7-65f5f9bb8563</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="mokoysh"]I test the&amp;nbsp;examples\crypto\nrf_cc310\aes ,the power is 1.6mA. [/quote]
&lt;p&gt;I measured ~2 ua with this example. The only change I made was to disable UART logging in sdk_config.h. Did you keep logging enabled?&lt;/p&gt;
[quote user="mokoysh"]&lt;span&gt;&lt;/span&gt;And the project had attach[/quote]
&lt;p&gt;The attachment included the source files, but I didn&amp;#39;t see any actual project files for building the project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power consumption cannot be reduced after using hardware encryption</title><link>https://devzone.nordicsemi.com/thread/555558?ContentTypeID=1</link><pubDate>Thu, 27 Nov 2025 01:59:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b85cca4e-d497-4b33-9a92-e0b3e4e8b493</guid><dc:creator>mokoysh</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&amp;nbsp;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I test the&amp;nbsp;examples\crypto\nrf_cc310\aes ,the power is 1.6mA. Test chip is 52840,and&amp;nbsp; the power is 17uA if no use&amp;nbsp;&lt;span&gt;aes_cbc_decrypt,power&lt;/span&gt;&amp;nbsp;is 3.4mA if use&amp;nbsp; &lt;span&gt;aes_cbc_decrypt.&amp;nbsp; &amp;nbsp;&lt;/span&gt;And the project had attach&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1764208430123v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power consumption cannot be reduced after using hardware encryption</title><link>https://devzone.nordicsemi.com/thread/555514?ContentTypeID=1</link><pubDate>Wed, 26 Nov 2025 13:19:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e158bb4e-10c3-45df-a80e-c8f7cc133724</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I couldn&amp;#39;t find any project files in your attachment, but I copied your decrypt function and ran it from the nRF5 SDK /nrf_cc310/aes/ project and was unable to reproduce the high current issue. Could you please try the same?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power consumption cannot be reduced after using hardware encryption</title><link>https://devzone.nordicsemi.com/thread/555374?ContentTypeID=1</link><pubDate>Tue, 25 Nov 2025 12:24:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f3825a0-3ca4-4023-b856-de8fe8b7210c</guid><dc:creator>mokoysh</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/aes_5F00_test.7z"&gt;devzone.nordicsemi.com/.../aes_5F00_test.7z&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Vidar&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The project is attached&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power consumption cannot be reduced after using hardware encryption</title><link>https://devzone.nordicsemi.com/thread/555316?ContentTypeID=1</link><pubDate>Tue, 25 Nov 2025 07:25:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb65787b-b512-4f48-ab3b-35d41316f498</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for confirming. Are you able to provide me a minimal sample that I can use to reproduce the issue here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power consumption cannot be reduced after using hardware encryption</title><link>https://devzone.nordicsemi.com/thread/555315?ContentTypeID=1</link><pubDate>Tue, 25 Nov 2025 07:14:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14334e6f-556a-4dc1-bd00-2bedc6a22ec7</guid><dc:creator>mokoysh</dc:creator><description>&lt;p&gt;Hi Vidar&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; The&amp;nbsp;aes_cbc_decrypt exe success&amp;nbsp; and &lt;span&gt;I will call sd_app_evt_wait in the main loop&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power consumption cannot be reduced after using hardware encryption</title><link>https://devzone.nordicsemi.com/thread/555202?ContentTypeID=1</link><pubDate>Mon, 24 Nov 2025 12:18:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ccacbcd-7e27-405f-8790-eca8b4c8daf3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Generally&amp;nbsp;we recommend using the nrf_crypto API on top of the cryptocell API (AES samples with cc310 can be found in /crypto/nrf_crypto/aes) which takes care of powering down the cc310 after use, but I see you ahavee&amp;nbsp;SaSi_LibFini() at the end there which should have the same effect. Have you tried to debug your application to&amp;nbsp;verify whether the program returns from this function and starts executing the __WFE()/__WFI() after?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>