<?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>Writing to external Flash over QSPI leaves a 400μA current until bluetooth advertising gets called.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95006/writing-to-external-flash-over-qspi-leaves-a-400-a-current-until-bluetooth-advertising-gets-called</link><description>Hello 
 I&amp;#39;m currently writing a program for an NRF52840 chip which reads some values from an ADC each second and writes them to an external flash chip. I&amp;#39;m trying to run this with a low power consumption. This chip is connected with QSPI. I&amp;#39;m using Zephyr</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Dec 2022 11:54:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95006/writing-to-external-flash-over-qspi-leaves-a-400-a-current-until-bluetooth-advertising-gets-called" /><item><title>RE: Writing to external Flash over QSPI leaves a 400μA current until bluetooth advertising gets called.</title><link>https://devzone.nordicsemi.com/thread/401690?ContentTypeID=1</link><pubDate>Wed, 21 Dec 2022 11:54:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32a2ade2-5985-4895-aded-f9e50097ebbd</guid><dc:creator>Jared</dc:creator><description>[quote user="M.A."]&lt;p&gt;In the meantime I found the actual error.&lt;/p&gt;
&lt;p&gt;We assume it was caused by us calculating the sleep time inside the K_MSEC() macro in a call to k_sleep().&lt;/p&gt;
&lt;p&gt;After moving the calculation out of that call, it appears to finally work.&lt;/p&gt;[/quote]
&lt;p&gt;I see, well, I&amp;#39;m happy that you found the solution.&lt;/p&gt;
&lt;p&gt;Marking this as verified then,&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing to external Flash over QSPI leaves a 400μA current until bluetooth advertising gets called.</title><link>https://devzone.nordicsemi.com/thread/401562?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2022 15:06:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4281b6b-3267-4091-803f-f835b66e9f83</guid><dc:creator>M.A.</dc:creator><description>&lt;p&gt;Hi Jared&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve already tried that earlier. But as the two Edits stated the error actually lied somewhere else.&lt;/p&gt;
&lt;p&gt;In the meantime I found the actual error.&lt;/p&gt;
&lt;p&gt;We assume it was caused by us calculating the sleep time inside the K_MSEC() macro in a call to k_sleep().&lt;/p&gt;
&lt;p&gt;After moving the calculation out of that call, it appears to finally work.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I was gonna delete this, when I saw your reply, since the title now has nothing at all to do with the actual problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing to external Flash over QSPI leaves a 400μA current until bluetooth advertising gets called.</title><link>https://devzone.nordicsemi.com/thread/401549?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2022 14:31:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df407217-f95e-4c92-97c6-4b2bda37a577</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;Could you try the workaround suggested &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Ferrata_nRF52840_Rev3%2FERR%2FnRF52840%2FRev3%2Flatest%2Fanomaly_840_122.html&amp;amp;cp=4_0_1_0_1_7"&gt;here&lt;/a&gt;&amp;nbsp;and see if it lowers the current consumption?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>