<?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>NRF52840 SPIM3 power consumption high after de-init</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100110/nrf52840-spim3-power-consumption-high-after-de-init</link><description>Hi! I&amp;#39;m using NRF52840 in a schematic with several ICs connected. NRF SDK version is 17. 
 One of the connected ICs is SPI-slave wired to the SPIM3 of NRF52840. I do the following: 
 1. Init SPIM3 (via nrfx_spim_init) 2. Exchange data with slave (via</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 31 May 2023 08:18:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100110/nrf52840-spim3-power-consumption-high-after-de-init" /><item><title>RE: NRF52840 SPIM3 power consumption high after de-init</title><link>https://devzone.nordicsemi.com/thread/428344?ContentTypeID=1</link><pubDate>Wed, 31 May 2023 08:18:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1872c398-a7f4-4775-8a3e-d4ae2f921589</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>[quote user="IvanS"]Are there any other known issues related to this SPIM3 module or any other connected one?[/quote]
&lt;p&gt;I&amp;#39;m not aware of other issues related to SPIM3 than the ones listed in the errata document.&lt;/p&gt;
[quote user="IvanS"]Unfortunately this is a custom made PCB but I&amp;#39;ll look into porting some of this onto DK board in case no other solution will appear.[/quote]
&lt;p&gt;It would be very helpful if you could reproduce it on a DK and share an example, it would be hard for us to debug the issue and find the root cause if we are not able to reproduce it internally.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 SPIM3 power consumption high after de-init</title><link>https://devzone.nordicsemi.com/thread/427618?ContentTypeID=1</link><pubDate>Thu, 25 May 2023 22:50:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:996f645f-c841-45fc-b859-69c4e3f08d6c</guid><dc:creator>IvanS</dc:creator><description>[quote userid="14926" url="~/f/nordic-q-a/100110/nrf52840-spim3-power-consumption-high-after-de-init/427551"]Do you always wait for the transfer(s) to complete before you uninit the driver?[/quote]
&lt;p&gt;Yes, since I initiate them on NRF side.&lt;/p&gt;
[quote userid="14926" url="~/f/nordic-q-a/100110/nrf52840-spim3-power-consumption-high-after-de-init/427551"]I would expect the current consumption to be in the few uA range average current. What are you using to measure this?[/quote]
&lt;p&gt;Yes, the overall consumption is pretty high, but I do not intend to go into a deep sleep right now. I use a resistor to measure consumption and simple watt measure.&lt;/p&gt;
[quote userid="14926" url="~/f/nordic-q-a/100110/nrf52840-spim3-power-consumption-high-after-de-init/427551"]Have you verified with a debugger that the line is executed when uniniting the driver?[/quote]
&lt;p&gt;Unfortunately the whole system relies on another IC so I cannot do conventional step-debugger on NRF. I just verified it with the log lines and static variable assignment before and after the workaround in the NRF lib. They were in place, so I pretty sure that workaround is working for me.&lt;/p&gt;
[quote userid="14926" url="~/f/nordic-q-a/100110/nrf52840-spim3-power-consumption-high-after-de-init/427551"]Have you reproduced this on a nRF52840 DK? Can you share a minimal application we can use to reproduce the problem?[/quote]
&lt;p&gt;Unfortunately this is a custom made PCB but I&amp;#39;ll look into porting some of this onto DK board in case no other solution will appear.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Are there any other known issues related to this SPIM3 module or any other connected one?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 SPIM3 power consumption high after de-init</title><link>https://devzone.nordicsemi.com/thread/427551?ContentTypeID=1</link><pubDate>Thu, 25 May 2023 13:49:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3268d31-2984-45ed-bf22-f641ab9821e8</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]&lt;p&gt;I do the following:&lt;/p&gt;
&lt;p&gt;1. Init SPIM3 (via nrfx_spim_init)&lt;br /&gt;2. Exchange data with slave (via nrfx_spim_xfer)&lt;br /&gt;3. Deinit SPIM3 (via nrfx_spim_uninit)&lt;br /&gt;4. Suspend other peripherals and go to standby mode for several seconds.&lt;/p&gt;[/quote]
&lt;p&gt;Do you always wait for the transfer(s) to complete before you uninit the driver?&lt;/p&gt;
[quote user=""]I&amp;#39;m also measuring power consumption via a resistor placed between our power source and Nordic VDD[1-5] pins and the typical value is around 7 mW.[/quote]
&lt;p&gt;7mW sounds like a lot if you have disabled all peripherals and put the chip in sleep mode. I would expect the current consumption to be in the few uA range average current. What are you using to measure this?&lt;/p&gt;
[quote user=""]But I&amp;#39;ve noticed that from time to time (approx 1/5) in the operational mode described above power consumption is 3 mW higher in standby mode.[/quote]
&lt;p&gt;This could correlate with the ~900uA increased current from Errata 195.&lt;/p&gt;
[quote user=""]While investigating the issue I&amp;#39;ve checked that errata item 195 is already applied in the SDK I&amp;#39;m using.[/quote]
&lt;p&gt;Have you verified with a debugger that the line is executed when uniniting the driver?&lt;/p&gt;
[quote user=""]&lt;p&gt;I&amp;#39;ve also tried to read-out chip registers and noticed that register 0x4002f518: has value 0x00 during normal consumption and 0x3e during increased level. But I was not able to find this register description in Datasheet.&lt;/p&gt;
&lt;p&gt;Maybe someone can share this register description so I can check if it can be related to my power consumption issue?&lt;/p&gt;[/quote]
&lt;p&gt;This is an internal register, the description is not available publicly. I do not think this is related to the power consumption issue.&lt;/p&gt;
&lt;p&gt;Have you reproduced this on a nRF52840 DK? Can you share a minimal application we can use to reproduce the problem?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>