<?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 SPI power consumption</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56386/nrf9160-spi-power-consumption</link><description>Hi 
 On my custom board, I have an external flash connected via SPI. . The nrf runs on mfw 1.1.0. 
 Without activating the flash, I get an average current consumption of around 45 &amp;#181;A. As soon as i do a spi_transcieve(...) call, the power consumtion jumps</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 07 Feb 2020 06:56:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56386/nrf9160-spi-power-consumption" /><item><title>RE: nrf9160 SPI power consumption</title><link>https://devzone.nordicsemi.com/thread/233187?ContentTypeID=1</link><pubDate>Fri, 07 Feb 2020 06:56:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e3286a8-d839-46b1-899b-9460804d85b3</guid><dc:creator>Tron</dc:creator><description>&lt;p&gt;Found the solution here, the source code set the polarity of the SPI clock to low on active, but it was the opposite. Reverting the polarity did the trick.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 SPI power consumption</title><link>https://devzone.nordicsemi.com/thread/232993?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2020 09:48:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3eca7cfa-34b4-4bba-abe1-f14ae6ef13d5</guid><dc:creator>Tron</dc:creator><description>&lt;p&gt;After painfully debugging for a forthnite, I come to the following conclusion:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The flash is not the issue, it&amp;#39;s the SPI.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In a test I wrote from the MOSI directly to the MISO, leaving the flash out of the equation, and it seems it&amp;#39;s the SPI device that&amp;#39;s causing the havoc.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As long as I leave the SPI pins alone, the current stays low (around 20&amp;micro;A after some power-optimizations), but as soon as I write to the SPI using spi_transcieve(), the power consumption goes through the roof.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Tron&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 SPI power consumption</title><link>https://devzone.nordicsemi.com/thread/230813?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2020 10:25:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aede2141-d23b-425f-a1fc-42a8c643ce37</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;What version of the nRF91 DK do you have? If you have&lt;strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;v0.7.0, v0.8.2, v0.8.3 or v0.8.4, you should follow the approach explained in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/42387/instructions-for-setting-up-9160-dk-for-current-measurement-are-confusing"&gt;this ticket&lt;/a&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Have you remembered to cut&amp;nbsp;SB44 (i&lt;span&gt;f you have&lt;/span&gt;&lt;strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;v0.7.0, v0.8.2, v0.8.3 or v0.8.4&lt;/span&gt;)&lt;/li&gt;
&lt;li&gt;Measure the current with an ammeter by connection to pins 1 and 2, where pin 3 is closest to the USB connector&amp;nbsp;&lt;span&gt;(i&lt;/span&gt;&lt;span&gt;f you have&lt;/span&gt;&lt;strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;v0.7.0, v0.8.2, v0.8.3 or v0.8.4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;
&lt;div style="left:174px;top:20px;"&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 SPI power consumption</title><link>https://devzone.nordicsemi.com/thread/230802?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2020 09:38:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d76fa45f-5c88-4c8e-8803-70c85109cf67</guid><dc:creator>Tron</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve done voltage measurements on the custom card, and it seems I have left some pins high on the spi interface. These pins supply other spi devices with voltage, and that draws current to those components through those pins.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for bothering you, as usual, the error is between chair and screen &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;. Have a nice weekend.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 SPI power consumption</title><link>https://devzone.nordicsemi.com/thread/230656?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 14:11:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5f5afb8-3cf8-4902-91f4-4f66bf3c8eae</guid><dc:creator>Tron</dc:creator><description>&lt;p&gt;Measuring the described way, I see a current of around 1A&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/m_E500_lepunkter.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;As far as I&amp;#39;ve uerstood, I need to use an external power as well. Which of the pins on the opposide side of the usb connector is +?&lt;/p&gt;
&lt;p&gt;BTW, using usb as power-supply, did i&amp;nbsp;burn the dk?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 SPI power consumption</title><link>https://devzone.nordicsemi.com/thread/230620?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 13:31:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:717312a6-d458-432c-acbe-4ed3cc6f77b5</guid><dc:creator>Simon</dc:creator><description>[quote user="tronwa"]Is there an external flash on the DK?[/quote]
&lt;p&gt;&amp;nbsp;There is no external flash on the DK, only the 1MB flash integrated on the nRF9160 SiP.&lt;/p&gt;
[quote user="tronwa"]How would you recommend me to do current measurements? [/quote]
&lt;p&gt;&amp;nbsp;Check out&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf91_dk/UG/nrf91_DK/hw_measure_current_meter.html?cp=2_0_4_4_2"&gt;Using a current meter for current measurement&lt;/a&gt;&amp;nbsp;on the infocenter.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 SPI power consumption</title><link>https://devzone.nordicsemi.com/thread/230617?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 13:26:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:584f2790-5782-428e-aaf9-e4e50d1ac435</guid><dc:creator>Tron</dc:creator><description>&lt;p&gt;AFAI see, the code doesn&amp;#39;t run properly on the dk. At least, it doesn&amp;#39;t report to my server.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 SPI power consumption</title><link>https://devzone.nordicsemi.com/thread/230613?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 13:17:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25c744a4-9a0c-425e-a736-f6c3330a64a2</guid><dc:creator>Tron</dc:creator><description>&lt;p&gt;On&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the devkit, there are 2 connectors, one marked nRF supply &amp;amp; current measurement, the other external supply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How would you recommend me to do current measurements? My initial reflex is to use the external supply pins, and connect an ampmeter on one of the supply lines.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 SPI power consumption</title><link>https://devzone.nordicsemi.com/thread/230590?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 12:19:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9519792d-1c7c-4c72-90bd-e2f686c29cd1</guid><dc:creator>Tron</dc:creator><description>&lt;p&gt;aah, this explains a lot. Is there an external flash on the DK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 SPI power consumption</title><link>https://devzone.nordicsemi.com/thread/230587?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 12:02:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e348947-fb0a-4992-8511-0f3ab525a28b</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Strange. I tested it with an &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Kits/nRF9160-DK"&gt;nRF91 DK&lt;/a&gt; (I probably should have mentioned this), could you test the code on the DK as well? If the current consumption is high there as well, there is probably something wrong with the code. If not, I will test it on your custom hardware.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 SPI power consumption</title><link>https://devzone.nordicsemi.com/thread/230583?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 11:52:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c43c9216-64e8-4e2c-9da0-f20cf3b79014</guid><dc:creator>Tron</dc:creator><description>&lt;p&gt;I&amp;#39;ve done everything according to recommendations. I&amp;#39;ve tried programming the device directly with nrfjprog (or more precisely nrf91_jflash.exe), as well as through segger and nrfjprog. I have built using segger ide, as well as west. Still, no changes in current consumption. I&amp;#39;m trying with another card now &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 SPI power consumption</title><link>https://devzone.nordicsemi.com/thread/230124?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2020 15:19:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfbddbc1-1a08-4105-8da2-8ee799e68131</guid><dc:creator>Simon</dc:creator><description>&lt;p style="margin-top:0px;"&gt;I tested your application on the developer branch along with NCS v1.1.0.&lt;/p&gt;
&lt;p style="margin-top:0px;"&gt;Try disabling the serial logging from mcuboot. It decreased the current consumption from 1.2mA to 85.8uA when I did it. It can be achieved by doing the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Add the following piece of code to your projects CMakeList.txt (&lt;em&gt;nrftracker\CMakeLists.tx&lt;/em&gt;t)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;set(mcuboot_CONF_FILE
	prj.conf
    ${CMAKE_CURRENT_LIST_DIR}/mcuboot.conf
    )&lt;/pre&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Create the file &lt;em&gt;&lt;span style="background-color:#ffffff;"&gt;nrftracker\mcuboot.conf&lt;/span&gt;&lt;/em&gt;&lt;span style="background-color:#ffffff;"&gt; with the following content:&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_SERIAL=n&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="background-color:#ffffff;"&gt;run west build -b nrf9160_pca10090ns&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="background-color:#ffffff;"&gt;Check if CONFIG_SERIAL is present in &lt;em&gt;\nrftracker\build\mcuboot\zephyr\include\generated\autoconf.h&lt;/em&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="background-color:#ffffff;"&gt;If it is, then something went wrong&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="background-color:#ffffff;"&gt;Run nrfjprog --eraseall&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="background-color:#ffffff;"&gt;Run west flash&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="background-color:#ffffff;"&gt;Reset your chip and measure the current&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 SPI power consumption</title><link>https://devzone.nordicsemi.com/thread/229919?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2020 15:27:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79040fcd-e6fd-483e-ad41-15b959aadc9e</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I am not in the office right now and I&amp;#39;m not able to test this. I will measure it again tomorrow.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 SPI power consumption</title><link>https://devzone.nordicsemi.com/thread/229562?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2020 09:55:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cd53f88-f7a9-4c04-95c1-43a7126215ce</guid><dc:creator>Tron</dc:creator><description>&lt;p&gt;I&amp;#39;ve tested, and still see 1.5mA. Please verify that you have checked out the develop branch, and that LIFO_ENABLED is defined.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 SPI power consumption</title><link>https://devzone.nordicsemi.com/thread/229528?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2020 08:11:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fa1b5e6-8244-45a5-b8a9-7441b10c69af</guid><dc:creator>Tron</dc:creator><description>&lt;p&gt;Check out the comment on line 55, is this fixed now?&lt;/p&gt;
&lt;p&gt;Tron&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 SPI power consumption</title><link>https://devzone.nordicsemi.com/thread/229465?ContentTypeID=1</link><pubDate>Thu, 16 Jan 2020 16:03:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10498da7-9c74-46cf-a0f6-10a206e330b8</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I have done some investigation and figured out what&amp;#39;s causing the high current consumption, could you test it on your end as well?&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;In nrftracker/src/adc.c→adc_init(), comment out NRF_SAADC_NS-&amp;gt;TASKS_CALIBRATEOFFSET&amp;nbsp;=&amp;nbsp;1;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;When I did this, the current consumption dropped from 1.5mA to 85uA.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 SPI power consumption</title><link>https://devzone.nordicsemi.com/thread/229142?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2020 06:29:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46aee65a-122e-4325-940c-e40cdb308cae</guid><dc:creator>Tron</dc:creator><description>&lt;p&gt;Please make sure you check out the develop branch.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 SPI power consumption</title><link>https://devzone.nordicsemi.com/thread/228887?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2020 16:27:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29431da4-8dd4-452d-9e43-275bb8378d2a</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I have sent you an email and I&amp;nbsp;will see if I can get hold of your hardware tomorrow.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 SPI power consumption</title><link>https://devzone.nordicsemi.com/thread/228807?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2020 13:19:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ccf5217-24d5-49ac-9f2b-496e23827cd7</guid><dc:creator>Tron</dc:creator><description>&lt;p&gt;Hi there Simon&lt;/p&gt;
&lt;p&gt;I suggest the following:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;You have my email address, you send me an email, and I will invite you to my bitbucket git repo, and you will be able to clone it&lt;/li&gt;
&lt;li&gt;then it&amp;#39;s up to you to keep the ticket public or not.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Do you have access to our custom hardware? It&amp;#39;s available in Trondheim, afaik. I can provide you with hardware in Oslo as well, or send it by surface mail if desired.&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Wr,&lt;/p&gt;
&lt;p&gt;Tron&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 SPI power consumption</title><link>https://devzone.nordicsemi.com/thread/228781?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2020 12:09:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed271ef9-6d84-416c-ba32-1c3b6ae6a748</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Could you upload your application (I can make the ticket private if you would like to)? Then I can perform some tests myself and figure out what may cause this.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>