<?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>SPI master 0 uses 300uA upon first transfer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35127/spi-master-0-uses-300ua-upon-first-transfer</link><description>My SPIM0 starts to use 300uA upon first usage of nrf_drv_spi_transfer. Why? Even when the transfer finishes and I uninitialize SPI or turn the MOSI, MISO and CLK pins to the &amp;quot;default&amp;quot; GPIO config, nRF52832 will still permanently use 300uA. Only in SYSTEM_OFF_MODE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Jun 2018 12:32:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35127/spi-master-0-uses-300ua-upon-first-transfer" /><item><title>RE: SPI master 0 uses 300uA upon first transfer</title><link>https://devzone.nordicsemi.com/thread/135153?ContentTypeID=1</link><pubDate>Thu, 07 Jun 2018 12:32:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:725630aa-4fac-4e08-a3b9-16821c20dcac</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Let&amp;#39;s continue here &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/35174/spi-master-0-uses-100ua-after-first-transfer-even-after-workaround"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/35174/spi-master-0-uses-100ua-after-first-transfer-even-after-workaround&lt;/a&gt; &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI master 0 uses 300uA upon first transfer</title><link>https://devzone.nordicsemi.com/thread/135031?ContentTypeID=1</link><pubDate>Thu, 07 Jun 2018 02:55:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d458ec2-ea26-45e6-bcde-03a779fb9858</guid><dc:creator>Andrew Ong</dc:creator><description>&lt;p&gt;Actually, this did not completely solve the issue. I still get a average power usage of 113uA that goes away if I never use the SPI.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Using SPI with the &amp;quot;power cycle&amp;quot; workaround&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/IMG_5F00_0080.JPG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Not using the SPI at all:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/IMG_5F00_0083.JPG" alt=" " /&gt;&amp;#39;&lt;/p&gt;
&lt;p&gt;I even tried pasting in all the &amp;quot;power cycle&amp;quot; workarounds simultaneously, but it did not fix the phantom 130uA power usage.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;spi_master_uninit();
*(volatile uint32_t *)0x40003FFC = 0;
*(volatile uint32_t *)0x40003FFC;
*(volatile uint32_t *)0x40003FFC = 1;

*(volatile uint32_t *)0x40004FFC = 0;
*(volatile uint32_t *)0x40004FFC;
*(volatile uint32_t *)0x40004FFC = 1;

*(volatile uint32_t *)0x40023FFC = 0;
*(volatile uint32_t *)0x40023FFC;
*(volatile uint32_t *)0x40023FFC = 1;
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI master 0 uses 300uA upon first transfer</title><link>https://devzone.nordicsemi.com/thread/135019?ContentTypeID=1</link><pubDate>Wed, 06 Jun 2018 23:06:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3051f7f-db6e-4f01-b676-5ebc595e492a</guid><dc:creator>Andrew Ong</dc:creator><description>&lt;p&gt;I looked at that and didn&amp;#39;t implement it because it was titled &amp;quot;GPIOTE&amp;quot; instead of SPI. But i did it anyway now that you mentioned it again. For&amp;nbsp;anyone in the future, I used these lines to power cycle the peripheral&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*(volatile uint32_t *)0x40003FFC = 0;
*(volatile uint32_t *)0x40003FFC;
*(volatile uint32_t *)0x40003FFC = 1;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI master 0 uses 300uA upon first transfer</title><link>https://devzone.nordicsemi.com/thread/134909?ContentTypeID=1</link><pubDate>Wed, 06 Jun 2018 11:35:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94044697-9d38-4678-81da-3eb5dcc7230c</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi, can you try this workaround while uninitializing the SPI? &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.Rev2.errata/dita/errata/nRF52832/Rev2/latest/err_832_new.html"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.Rev2.errata/dita/errata/nRF52832/Rev2/latest/err_832_new.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This power cycles the peripheral and the current consumption goes down.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>