<?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>Measure current of nRF52840-DK with a connected secure element via I2C</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57832/measure-current-of-nrf52840-dk-with-a-connected-secure-element-via-i2c</link><description>Hi, I use the nRF52840-DK together with a secure element (Infineon Trust X) and want to measure current/powerconsumption of this whole setup during certain operations. At the moment my setup looks like this: 
 
 OPTIGA Trust X connected to the nRF52840</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Feb 2020 11:38:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57832/measure-current-of-nrf52840-dk-with-a-connected-secure-element-via-i2c" /><item><title>RE: Measure current of nRF52840-DK with a connected secure element via I2C</title><link>https://devzone.nordicsemi.com/thread/235423?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 11:38:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9a77c2b-f737-44a4-9cc8-4766cf145398</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Yes, the USB cable has to be plugged in to power the VDD domain on the DK, this includes the debugger MCU, the IC switches, etc. If they are not powered they will be floating and you get unpredictable behavior, and you will get leakage through the SWD pins.&lt;/p&gt;
&lt;p&gt;I tried a Zephyr example now, just putting the k_sleep(1000) in the main loop, and not initializing anything more and I get a current draw of 3 uA on the external supply header. With the same setup as I described below. Without the SE.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Measure current of nRF52840-DK with a connected secure element via I2C</title><link>https://devzone.nordicsemi.com/thread/234726?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 15:54:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:085d3ab8-10c0-4e75-be3f-60f7aa61879c</guid><dc:creator>MarDor</dc:creator><description>&lt;p&gt;The J2 must be pluged in for the measurement, even though when the debugger MCU is not powered?&lt;br /&gt;&lt;br /&gt;I took a mseaurement with this setup. Average values were:&lt;br /&gt;&lt;br /&gt;During Access of the SE: 20mA&lt;br /&gt;During Zephyr&amp;#39;s k_sleep(): 7mA&lt;br /&gt;Complete Average: 8mA&lt;br /&gt;&lt;br /&gt;Are there any experience on your side of power consumption during Zephyr k_sleep() on the nRF52840-DK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Measure current of nRF52840-DK with a connected secure element via I2C</title><link>https://devzone.nordicsemi.com/thread/234713?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 15:26:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3bb3662-3de8-4ed7-b924-6e8b79d0a9e9</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Ok, let me know how it goes. That is correct.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Measure current of nRF52840-DK with a connected secure element via I2C</title><link>https://devzone.nordicsemi.com/thread/234699?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 15:07:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3adc023d-e4e6-4a26-9b6c-22859d84980b</guid><dc:creator>MarDor</dc:creator><description>&lt;p&gt;Thanks, for your support. I will try it with this setup.&lt;br /&gt;If SB40 is not cut I do not need any additional jumper right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Measure current of nRF52840-DK with a connected secure element via I2C</title><link>https://devzone.nordicsemi.com/thread/234697?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 14:57:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:997c8470-5dd1-492d-a850-4407596d82b9</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi, not sure if that&amp;#39;s going to work. You need to set the SW10 to &amp;quot;ON&amp;quot; in order to isolate the debugger MCU from the nRF chip. Then the USB cable will have to be plugged in to power the debugger MCU, and the P21 will power only the nRF chip. But, If you use the Arduino headers for the Infineon board, it will be powered from the same domain as the debugger MCU on the DK, which is now powered from the USB, and thus measurements on P21 will not include the infineon board.&lt;/p&gt;
&lt;p&gt;If you leave SW10 in the &amp;quot;OFF&amp;quot; position, you will measure the whole setup including the debugger MCU which will add several mA to the measurements.&lt;/p&gt;
&lt;p&gt;I think the only solution is to remove the Infineon board from the Arduino headers, and do the wiring manually. Here&amp;#39;s what you can try:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Power analyzer connected to P21&lt;/li&gt;
&lt;li&gt;SW10 -&amp;gt; ON&lt;/li&gt;
&lt;li&gt;SW9 -&amp;gt; VDD&lt;/li&gt;
&lt;li&gt;SW6 -&amp;gt; nRF only&lt;/li&gt;
&lt;li&gt;J2 plugged in&lt;/li&gt;
&lt;li&gt;Add jumper to P22 if SB40 was previously cut&lt;/li&gt;
&lt;li&gt;Connect VDD_nRF on P20 to VDD on Infineon board&lt;/li&gt;
&lt;li&gt;Connect GND from DK to Infineon&lt;/li&gt;
&lt;li&gt;Connect I2C wires from DK to Infineon&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>