<?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 Optimization when using the Crypto Cell on nRF5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102877/power-optimization-when-using-the-crypto-cell-on-nrf5340</link><description>Hey, I have been trying to get to the root of additional current draw when crypto drivers are enabled. 
 Without the crypto drivers enabled the current draw between two advertisements is around 3-5uA , with crypto drivers enabled it shoots up to 80uA</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Jun 2024 23:44:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102877/power-optimization-when-using-the-crypto-cell-on-nrf5340" /><item><title>RE: Power Optimization when using the Crypto Cell on nRF5340</title><link>https://devzone.nordicsemi.com/thread/487590?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2024 23:44:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa7616a9-8d86-47c8-b9b4-6d62823e5d70</guid><dc:creator>neo_here</dc:creator><description>&lt;p&gt;Hi, thank you for getting back. I&amp;#39;m finally back on this project and will try this out.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Optimization when using the Crypto Cell on nRF5340</title><link>https://devzone.nordicsemi.com/thread/442814?ContentTypeID=1</link><pubDate>Wed, 23 Aug 2023 15:06:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f9940fe-bfeb-47ba-82dc-01c6c86e0b13</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please add CONFIG_TFM_LOG_LEVEL_SILENCE=y to your prj.conf file. This ensures that TF-M does not enable the UARTE1 peripheral for logging. If UARTE1 is enabled, it could explain the increased floor current you&amp;#39;re observing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Optimization when using the Crypto Cell on nRF5340</title><link>https://devzone.nordicsemi.com/thread/442181?ContentTypeID=1</link><pubDate>Sun, 20 Aug 2023 14:53:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f3746f0-6604-4b8d-b022-fc6fadcd31df</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="neo_here"]Yes, But while advertising we are not doing any crypto operations. Shouldn&amp;#39;t the crypto module go to sleep when not used.&amp;nbsp;[/quote]
&lt;p&gt;I have asked internally about the expected crypto module behavior.&lt;br /&gt;&lt;br /&gt;Please make sure that relevant peripherals are not enabled at the same time. Examples are serial drivers SPIM, TWIM and UART.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If all mentioned peripherals are disabled and you still see increased current draw, you could make a minimal sample which we could use for reproducing your issue on nrf5340-dk. Since I will be out of the office for the next 2 weeks, in case your issue requires urgent attention, you could open a new ticket where you would provide all necessary information.&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: Power Optimization when using the Crypto Cell on nRF5340</title><link>https://devzone.nordicsemi.com/thread/442128?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2023 17:30:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6146aa3b-580b-4d2c-880c-579f36f05cac</guid><dc:creator>neo_here</dc:creator><description>&lt;p&gt;Hey,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes, But while advertising we are not doing any crypto operations. Shouldn&amp;#39;t the crypto module go to sleep when not used.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Advertising current without crypto driver included in the project is 10-15x smaller. We initialize and use crypto APIs only after connection is established.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Optimization when using the Crypto Cell on nRF5340</title><link>https://devzone.nordicsemi.com/thread/442047?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2023 10:02:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3106d16d-cd64-451c-9a44-f95c791ccace</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Cryptographic operations with hardware accelerator are executed faster at the expense of consuming more power.&amp;nbsp;&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: Power Optimization when using the Crypto Cell on nRF5340</title><link>https://devzone.nordicsemi.com/thread/441958?ContentTypeID=1</link><pubDate>Thu, 17 Aug 2023 21:56:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3d9bee6-20de-48c1-bd19-56a832b7f039</guid><dc:creator>neo_here</dc:creator><description>&lt;p&gt;Hey,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am using the Nordic nRF5340 DK and the Nordic PPK II in Ammeter mode. I&amp;#39;m using the supplied CR2032 cell for the measurements.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The BLE application starts advertising after initializing the peripherals needed.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve followed the optimization recommendations and disabled the logging on both the images.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;That&amp;#39;s how I was able to get to about 3-5uA between advertisements. But once the crypto drivers were added to the project it increases this current to about 80uA as shown in the above screenshot.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;CONFIG_TFM_PROFILE_TYPE_NOT_SET&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_PSA_CRYPTO_DRIVER_OBERON&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_PSA_CRYPTO_DRIVER_CC3XX&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;If I get rid of the above configs, the current consumption is back to 3-5uA.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;The current consumption after a connection is established is much more in line with expectation. Just when the device is just advertising, between two advertisements the current consumption is a lot higher with the crypto drivers enabled.&amp;nbsp;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Optimization when using the Crypto Cell on nRF5340</title><link>https://devzone.nordicsemi.com/thread/441859?ContentTypeID=1</link><pubDate>Thu, 17 Aug 2023 12:04:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab1d2c77-e58b-451b-a0d0-62174f3d2da8</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Could you please provide information about your measurement setup?&lt;br /&gt;&lt;br /&gt;EDIT: You can read about &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/test_and_optimize/optimizing/power_general.html#general-power-optimization-recommendations"&gt;general power optimization recommendations&lt;/a&gt;&amp;nbsp;in the documentation. For nRF5340 and multiple images, logging should be disabled on both images. &amp;nbsp;&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: Power Optimization when using the Crypto Cell on nRF5340</title><link>https://devzone.nordicsemi.com/thread/441715?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2023 20:16:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2f6c71e-b1c8-466b-897a-c3792f85a0b9</guid><dc:creator>neo_here</dc:creator><description>&lt;p&gt;I was able to get rid of&amp;nbsp;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NRF_SECURITY&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MBEDTLS_PSA_CRYPTO_C&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MBEDTLS_ENABLE_HEAP&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;from prj.conf and everything still works. Current consumption still the same&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Optimization when using the Crypto Cell on nRF5340</title><link>https://devzone.nordicsemi.com/thread/441709?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2023 18:43:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:597c01cb-a9e0-48fe-a518-52fc71f8da7b</guid><dc:creator>neo_here</dc:creator><description>&lt;p&gt;&lt;img style="max-height:720px;max-width:1040px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/2080x1440/__key/communityserver-discussions-components-files/4/0638.ss2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s another screengrab while advertising, the above screenshot was between connection events.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Optimization when using the Crypto Cell on nRF5340</title><link>https://devzone.nordicsemi.com/thread/441697?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2023 16:33:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b196f87-db97-4346-b7cd-9df11e3edf5a</guid><dc:creator>neo_here</dc:creator><description>&lt;p&gt;I was wondering if there was any cryptocell/mbedtls specific power optimization needs to be done.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Just including the below in the project increases this current draw without calling any crypto APIs&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;CONFIG_TFM_PROFILE_TYPE_NOT_SET&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_PSA_CRYPTO_DRIVER_OBERON&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_PSA_CRYPTO_DRIVER_CC3XX&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NRF_SECURITY&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MBEDTLS_PSA_CRYPTO_C&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MBEDTLS_ENABLE_HEAP&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;n&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Optimization when using the Crypto Cell on nRF5340</title><link>https://devzone.nordicsemi.com/thread/441696?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2023 16:17:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3eabbd5d-33ee-48b5-8682-cc2ee1eb1878</guid><dc:creator>neo_here</dc:creator><description>&lt;p&gt;Hey, we are working with the nRF 5340DK while custom boards are WIP.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Here&amp;#39;s the measurement window.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:306px;max-width:693px;" alt=" " height="306" src="https://devzone.nordicsemi.com/resized-image/__size/1386x612/__key/communityserver-discussions-components-files/4/pastedimage1692202572131v1.png" width="693" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Without crypto this is in the 4-7uA range.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Optimization when using the Crypto Cell on nRF5340</title><link>https://devzone.nordicsemi.com/thread/441590?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2023 11:47:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a830a48c-2791-4f27-905f-d6344cf8e89b</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Which board do you use?&lt;br /&gt;&lt;br /&gt;Could you show full PPK2 measurement window?&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: Power Optimization when using the Crypto Cell on nRF5340</title><link>https://devzone.nordicsemi.com/thread/441468?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2023 20:05:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:899ad822-87ee-4a65-8894-f166e06f05a1</guid><dc:creator>neo_here</dc:creator><description>&lt;p&gt;&lt;img style="max-height:394px;max-width:936px;" alt=" " height="394" src="https://devzone.nordicsemi.com/resized-image/__size/1872x788/__key/communityserver-discussions-components-files/4/8863.ss.png" width="936" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is what it looks like on the PPK II&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>