<?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>nRF52833 spi nor causing extra current ~300uA</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101416/nrf52833-spi-nor-causing-extra-current-300ua</link><description>Hello I have a board that we added spi nor to and functionally it is working but I am seeing odd behavior. When I erase and flash the device I have an extra 300uA of current if I don&amp;#39;t enable the rtt terminal and it looks like the first image after being</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Aug 2023 12:08:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101416/nrf52833-spi-nor-causing-extra-current-300ua" /><item><title>RE: nRF52833 spi nor causing extra current ~300uA</title><link>https://devzone.nordicsemi.com/thread/439697?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2023 12:08:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9aa426dc-9973-4c7b-94da-93f551dd58ae</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I have contacted the IC product support team to see if we have more to add to this. Hopefully we&amp;#39;ll be able to add some information on why SPI3 doesn&amp;#39;t behave the same as the others and what you can do to implement a good workaround.&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: nRF52833 spi nor causing extra current ~300uA</title><link>https://devzone.nordicsemi.com/thread/439515?ContentTypeID=1</link><pubDate>Wed, 02 Aug 2023 13:11:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80aa929b-dcdf-4bdb-908c-fd0065113803</guid><dc:creator>edmcnicholas</dc:creator><description>&lt;p&gt;Simon,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So what I am hearing is that the spi3 device is not properly managed for power in either zephyr or mcuboot as it is a high speed peripheral and there is only one spi driver that does not take that into account.&amp;nbsp;&amp;nbsp;The fact that I have to manually power manage the spi3 just like the errata on the nrf53840 makes me think that there is a bug in the code or that there is an errata.&amp;nbsp; Either way this does not happen with the other spi ports so it would be expected that spi3 would have the same level of power management.&lt;/p&gt;
&lt;p&gt;To use spi3 in any way it has to be manually shut down using either of the below calls with the top one being from the nrf52840 errata.&amp;nbsp; The issue I have with the mcuboot utils is that I dont know when it is going to run the check as it does it on next connection.&amp;nbsp; The only workaround i could think of is to disable the spi after every connection which is not ideal and the mcubootutil is a library so i would have to do a lot of digging to find where to edit and hope i can make any pm call in mcuboot code.&lt;/p&gt;
&lt;p&gt;I would imagine for this type of peripheral some sort or semaphore would be used like the one used for the external clock being enabled and disabled.&amp;nbsp; At this point it seems spi3 is not useful since it has to be manually shut down every time it is touched.&lt;/p&gt;
&lt;pre class="pre codeblock"&gt;&lt;code&gt;*(volatile uint32_t *)0x4002F004 = 1;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt; #if DT_NODE_HAS_STATUS(DT_NODELABEL(spi3), okay)&lt;br /&gt; pm_device_action_run(spi_dev, PM_DEVICE_ACTION_SUSPEND);&lt;br /&gt; #endif&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 spi nor causing extra current ~300uA</title><link>https://devzone.nordicsemi.com/thread/439504?ContentTypeID=1</link><pubDate>Wed, 02 Aug 2023 12:49:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:386676f7-19a8-45f1-8bae-35b2a132f2a0</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Sorry about the late reply, but we&amp;#39;re not able to find anything in the MCUBoot or low power mode that should be leaving the SPI3 instance on after use if it&amp;#39;s shut down correctly. I think this should be possible to solve in your application, by finding out which check is running and do some cleanup on the SPI3 instance.&lt;/p&gt;
&lt;p&gt;I also did some digging to see if there were any errata on the nRF52833 or v2.0.0 of the NCS that could cause this, but the only one I could see causing this is the u&lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF52833_Rev2/ERR/nRF52833/Rev2/latest/anomaly_833_87.html"&gt;nexpected wakes from System ON idle mode if you&amp;#39;re using the FPU&lt;/a&gt;.&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: nRF52833 spi nor causing extra current ~300uA</title><link>https://devzone.nordicsemi.com/thread/437989?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2023 07:15:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e5cece8-b57e-4ef3-b4d4-ef2769373432</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Okay, waiting for a reply in the internal ticket with our devs. I&amp;#39;ll let you know when I hear back from them.&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: nRF52833 spi nor causing extra current ~300uA</title><link>https://devzone.nordicsemi.com/thread/437634?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2023 10:39:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:912b11bb-5f51-423a-8c22-af7f403f403a</guid><dc:creator>edmcnicholas</dc:creator><description>&lt;p&gt;That is correct after mcuboot finishes once you reconnect via ble it runs some sort of utility check and checks the swap which leaves the spi on&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 spi nor causing extra current ~300uA</title><link>https://devzone.nordicsemi.com/thread/437583?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2023 07:42:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8a2d734-b4e7-4376-8b3f-f6d6b255cd45</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Sorry, I&amp;#39;m just trying to get this straight so we can get to the bottom of this most efficiently. The SPI3 is&amp;nbsp;&lt;strong&gt;only&amp;nbsp;&lt;/strong&gt;used by the MCUBoot in your project, is that so? And MCUBoot is using this to communicate with an external flash. And after it&amp;#39;s done communicating with it it just does not go to a low power mode?&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: nRF52833 spi nor causing extra current ~300uA</title><link>https://devzone.nordicsemi.com/thread/437235?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2023 11:58:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f3c6de1-5aed-47a7-8ba6-a43a80770885</guid><dc:creator>edmcnicholas</dc:creator><description>&lt;p&gt;Simonr&lt;/p&gt;
&lt;p&gt;I do believe you are mistaken as this is happening after it boots into zephyr and after BLE connection is reestablished to the phone.&amp;nbsp; If it were merely before zephyr then the pm call suggested above would have been adequate as I do not use spi3 in my code and it is only for mcuboot.&amp;nbsp; It is waking back up and what I see in the rtt log is that mcuboot_util is checking swap type.&amp;nbsp; I have no control over that code as it is brought in as a library.&amp;nbsp; It also does not happen in the most deterministic way so it would be hard to see how that would help.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Looking at what you intend to be modded the fact that is in mcu boot would require me to patch the sdk and as stated this is happening while in zephyr the spi is low power untill mcuboot_util as shown and stated in my post from 2 weeks ago.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 spi nor causing extra current ~300uA</title><link>https://devzone.nordicsemi.com/thread/437228?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2023 11:46:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33e9a681-8588-4df1-9d94-d7c4e129e304</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Edward&lt;/p&gt;
[quote user="edmcnicholas"]Well how would this call be triggered as the power comes back after the phone reconnects to the module not right after boot.[/quote]
&lt;p&gt;If that&amp;#39;s the case, we struggle to see how this is an MCUBoot issue.&lt;/p&gt;
&lt;p&gt;Excuse me if I&amp;#39;ve misunderstood, but isn&amp;#39;t your issue that when your MCUBoot goes to low power, it re-enables SPIM3 causing this extra current consumption?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If the device is set in a low power state and goes through MCUBoot, then enabling clean up may affect it (You will have to implement clean up for the SPI). If clean up is not enabled, MCUBoot may leave the peripheral in an undesired power state. But if you&amp;#39;re not willing to investigate this possibility, the issue might&amp;nbsp; as well be in the device tree, power management system of Zephyr, or your application. We&amp;#39;re just trying to narrow down what exactly causing this issue.&lt;/p&gt;
&lt;p&gt;It could also be that you need to configure the MCUBoot to set SPI NOR to have the same config as in the application, as child images don&amp;#39;t automatically inherit settings from DTS exclusively. If it&amp;#39;s a DTS overlay you need to also make a child image overlay with the same SPI config or a Kconfig overlay.&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: nRF52833 spi nor causing extra current ~300uA</title><link>https://devzone.nordicsemi.com/thread/436730?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2023 11:50:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:662def66-05b0-4372-9c69-2c926e7c23ac</guid><dc:creator>edmcnicholas</dc:creator><description>&lt;p&gt;Well how would this call be triggered as the power comes back after the phone reconnects to the module not right after boot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 spi nor causing extra current ~300uA</title><link>https://devzone.nordicsemi.com/thread/436727?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2023 11:47:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c1c7239-e04c-493d-9048-336fecffb65b</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I got a suggestion from the developers today. Have you enabled peripheral clean-up in MCUBoot? Perhaps some form of SPI cleanup needs to be added into this file if external flash with an SPI node is enabled as it probably uses Zephyr&amp;#39;s subsystem to enable it. This could be a different configuration than what you expect it to be configured in.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/main/boot/zephyr/nrf_cleanup.c"&gt;https://github.com/nrfconnect/sdk-mcuboot/blob/main/boot/zephyr/nrf_cleanup.c&lt;/a&gt;&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: nRF52833 spi nor causing extra current ~300uA</title><link>https://devzone.nordicsemi.com/thread/435747?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2023 13:08:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1df8c426-a613-475e-9858-cae5e1033b82</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Due to the summer vacation period we are currently understaffed, so delayed replies must be expected. I am sorry about any inconvenience this might cause. Håkon is currently on vacation now, and I have been assigned to this case in his place. And it took me a while to read up on your discussion.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not an expert on MCUBoot or what it is doing, but I have asked internally if one of the developers have an explanation to what is going on here and whether the workaround you suggest&amp;nbsp;or something similar is already added to the newer SDK versions or if we will have to do so.&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: nRF52833 spi nor causing extra current ~300uA</title><link>https://devzone.nordicsemi.com/thread/435044?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2023 15:10:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c2da946-ea72-4614-8349-c922031e1188</guid><dc:creator>edmcnicholas</dc:creator><description>&lt;p&gt;I don&amp;#39;t believe it has anything to do with the flash but it has to do with mcuboot checking something under the hood after an update.&amp;nbsp; The suspend works but mcuboot is waking it back up.&amp;nbsp; I did update firmware to check function and after the reconnection of bluetooth to the nrf connect app the mcuboot utility runs something under the hood.&amp;nbsp; i tried to search but this is compiled into the mcuboot library and is supplied to my project as binary.&lt;/p&gt;
&lt;p&gt;As for updating sdk that is planned but there is a lot uf custom code and the project configs keep changing a lot between releases making this a time-consuming task.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The really crazy part is the power going away when i enable the rtt terminal.&lt;/p&gt;
&lt;p&gt;The only workaround I can think of for this is add a delayed suspend at boot to ensure the spi goes to sleep.&amp;nbsp; If this is not managed in this or a later sdk then spi3 is basically an unusable peripheral with zephyr and with it being the only high speed spi this seems to be the peripheral that would be intended for spinor updates.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 spi nor causing extra current ~300uA</title><link>https://devzone.nordicsemi.com/thread/435038?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2023 14:53:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ed05657-85a9-46ad-b974-0cdb98bbaab5</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="edmcnicholas"]I get a message about swap revert&amp;nbsp;[00:00:01.116,821] &amp;lt;inf&amp;gt; mcuboot_util: Swap type: revert.[/quote]
&lt;p&gt;Is this intended behavior, Ie. did the updated firmware not run and verify itself?&lt;/p&gt;
&lt;p&gt;Have you tried running a newer version of NCS to see if the behavior is similar?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="edmcnicholas"]So after MCUBOOT the device goes to low power for about 1s then something in mcuboot kicks it back on.[/quote]
&lt;p&gt;I understand that mcuboot will communicate with the flash here, especially if it is reverting an image.&lt;/p&gt;
&lt;p&gt;It seems very strange that the current consumption comes back after a reboot. Is your application is running&amp;nbsp;PM_DEVICE_ACTION_SUSPEND for both the flash_dev and the spi_dev?&lt;/p&gt;
[quote user="edmcnicholas"]There is definitely something wrong down to the driver level at least for spi3.&amp;nbsp;[/quote]
&lt;p&gt;I agree that spim3 is trickier than the other lower speed SPIM modules, especially since the PS also states that the peripheral should be disabled for lowest possible current consumption:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52833/spim.html?cp=5_1_0_5_22_4#concept_twi_low_power"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf52833/spim.html?cp=5_1_0_5_22_4#concept_twi_low_power&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This is something that&amp;nbsp;Nordic can improve upon, spi_nor/spi_nrfx_spim driver-wise.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 spi nor causing extra current ~300uA</title><link>https://devzone.nordicsemi.com/thread/434802?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 20:26:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a37df855-b617-4499-a312-c58f1598e34d</guid><dc:creator>edmcnicholas</dc:creator><description>&lt;p&gt;So after MCUBOOT the device goes to low power for about 1s then something in mcuboot kicks it back on. I get a message about swap revert&amp;nbsp;[00:00:01.116,821] &amp;lt;inf&amp;gt; mcuboot_util: Swap type: revert.&amp;nbsp; There is definitely something wrong down to the driver level at least for spi3.&amp;nbsp; This power management should all be handled at the driver level.&amp;nbsp; I even went to the point of trying to add it to the driver but that did not work&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1688574332186v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 spi nor causing extra current ~300uA</title><link>https://devzone.nordicsemi.com/thread/434714?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 13:09:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd9f0e24-1adb-4d4c-8f6f-21d360786de0</guid><dc:creator>edmcnicholas</dc:creator><description>&lt;p&gt;So while that works when I return from mcuboot the power is back and I would have to power cycle the device to get to the appropriate power level.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1688562442702v2.png" alt=" " /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1688561930163v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 spi nor causing extra current ~300uA</title><link>https://devzone.nordicsemi.com/thread/434653?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 10:17:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2329a9eb-3baa-4fbb-9707-05f4b439b122</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="edmcnicholas"]It appears likely that there is an inherited errata from the nrf52840 in the nrf52833 given their similarities.&amp;nbsp; I applied the workaround for errata 195 on the nrf52840 and the power went away.&amp;nbsp; This is a rev 1 nrf52833 that I am working with so it is likely engineering needs to investigate all nrf52840 spim spi3 errata on the nrf52833.[/quote]
&lt;p&gt;The workaround in Errata #195 for nRF52840 will effectively&amp;nbsp;suspend the peripheral, which again improves your theory of the added consumption coming from the peripheral.&lt;/p&gt;
&lt;p&gt;I am sorry, but I thought my former suggestion also disabled the peripheral, but that is not true. My apologies for this.&lt;/p&gt;
&lt;p&gt;My former suggestion only handles your external flash, while keeping the SPIM peripheral enabled.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="edmcnicholas"]I could try that but that would not explain why it works fine on spi2 and not spi3.[/quote]
&lt;p&gt;NRF_SPIM3 is a high speed peripheral, which is internally in the chip clocked differently compared to the &amp;quot;lower speed&amp;quot; SPIM instances. It will require that you disable it to obtain lowest possible current consumption.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I recreated your current consumption by setting up SPIM3 and sending data in a loop.&lt;/p&gt;
&lt;p&gt;When adding pm_device_action_run(spi_dev, PM_DEVICE_ACTION_SUSPEND);, I saw the current drop:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1688551937481v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The code is running 1 sec SPIM3 on, 1 sec SPIM3 off:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/hello_5F00_world_5F00_spi3.zip"&gt;devzone.nordicsemi.com/.../hello_5F00_world_5F00_spi3.zip&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try to disable the SPIM3 peripheral as well using the PM_DEVICE API?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 spi nor causing extra current ~300uA</title><link>https://devzone.nordicsemi.com/thread/434503?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 14:36:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f01f13c-6f46-4ab7-9166-732134182f58</guid><dc:creator>edmcnicholas</dc:creator><description>&lt;p&gt;It appears likely that there is an inherited errata from the nrf52840 in the nrf52833 given their similarities.&amp;nbsp; I applied the workaround for errata 195 on the nrf52840 and the power went away.&amp;nbsp; This is a rev 1 nrf52833 that I am working with so it is likely engineering needs to investigate all nrf52840 spim spi3 errata on the nrf52833.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fstruct_nrf52%2Fstruct%2Fnrf52840.html"&gt;infocenter.nordicsemi.com/index.jsp&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 spi nor causing extra current ~300uA</title><link>https://devzone.nordicsemi.com/thread/434492?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 14:19:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abd21513-fc06-4065-8451-07a074017ad3</guid><dc:creator>edmcnicholas</dc:creator><description>&lt;p&gt;That has no effect as expected.&amp;nbsp; There is a bug in the spi3 block&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 spi nor causing extra current ~300uA</title><link>https://devzone.nordicsemi.com/thread/434486?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 13:58:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ead19e48-907f-4a19-9cb8-399c37e191cc</guid><dc:creator>edmcnicholas</dc:creator><description>&lt;p&gt;I could try that but that would not explain why it works fine on spi2 and not spi3.&amp;nbsp; I have instrumented the spinor code and get a print that the device is entering deep power down and I do not see it exit.&amp;nbsp; That also would not explain why the power goes away when i connect rtt terminal and returns when i remove it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 spi nor causing extra current ~300uA</title><link>https://devzone.nordicsemi.com/thread/434484?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 13:50:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:674df74c-592a-402f-bc7e-0631472145d8</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could it be that the external flash ic is not set in a low power state?&lt;/p&gt;
&lt;p&gt;Could you try to suspend the device using pm_device to see if this has a impact on the current consumption?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;pm_device_action_run(my_flash_dev, PM_DEVICE_ACTION_SUSPEND);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 spi nor causing extra current ~300uA</title><link>https://devzone.nordicsemi.com/thread/434305?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2023 19:47:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18e40d8a-bff7-4184-b275-983c4bc87e89</guid><dc:creator>edmcnicholas</dc:creator><description>&lt;p&gt;I also tried errata 246 and that did not help.&amp;nbsp; But every time i enable the RTT terminal the power goes down and when I disable it it comes back.&amp;nbsp; This is very odd.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 spi nor causing extra current ~300uA</title><link>https://devzone.nordicsemi.com/thread/434268?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2023 14:57:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5942aaba-4dbc-4dbd-9408-42432288cc96</guid><dc:creator>edmcnicholas</dc:creator><description>&lt;p&gt;The power on spi3 also goes back up after removing the debug connection&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 spi nor causing extra current ~300uA</title><link>https://devzone.nordicsemi.com/thread/434267?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2023 14:55:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:824ed7c8-7fb8-4548-bd6d-788d8ab87f49</guid><dc:creator>edmcnicholas</dc:creator><description>&lt;p&gt;No I tried turning off all logging and no change.&amp;nbsp; Once I changed to spi2 the issue went away so I assume it has something to do. With the spi3 block since it is different from the other 3&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 spi nor causing extra current ~300uA</title><link>https://devzone.nordicsemi.com/thread/434265?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2023 14:52:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b748a3d7-e43e-4ef9-98c5-f477a329126f</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]&amp;nbsp; If I enable the RTT terminal then the extra consumption goes away which is the very odd part.&amp;nbsp; It also goes away if I disable spinor but that is necessary for expanded bootloader space.&amp;nbsp;[/quote]
&lt;p&gt;Does the added current consumption also go away if you only disable RTT?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 spi nor causing extra current ~300uA</title><link>https://devzone.nordicsemi.com/thread/434245?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2023 13:41:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:128e7f72-a46f-4307-984b-f7366069980a</guid><dc:creator>edmcnicholas</dc:creator><description>&lt;p&gt;As an update I see that there might be an issue with spi3 or the high speed spi on the nrf52833 implementation as when I move the norspi to spi2 then the extra power goes away.&amp;nbsp; I would prefer to use the high speed spi for the extra throughput but there seems to be a bug in at least the 2.0 version of the sdk.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>