<?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>Current consumption on flash erase/write and timing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45676/current-consumption-on-flash-erase-write-and-timing</link><description>Hello 
 I&amp;#39;m looking for some information about flash erase/write currents for the nRF52840. 
 Somewhere here in the forum there where values mentioned about 4mA for flash erase/write of the nRF52832. Also in this posting it was said that timing should</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Apr 2019 16:48:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45676/current-consumption-on-flash-erase-write-and-timing" /><item><title>RE: Current consumption on flash erase/write and timing</title><link>https://devzone.nordicsemi.com/thread/183585?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2019 16:48:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdadabdb-d39a-40ed-a6a2-2f5bad824aa3</guid><dc:creator>rgrr2</dc:creator><description>&lt;p&gt;Hi cbd&lt;/p&gt;
&lt;p&gt;thanks for your suggestions.&amp;nbsp; Writing to flash is actually not the problem.&amp;nbsp; Erasing a page is.&amp;nbsp; And as long as partial erase is not supported by the softdevice I can see no way to get around the 4mA*80ms.&lt;/p&gt;
&lt;p&gt;You are right: an external serial flash is also no option.&amp;nbsp; There exists a single device which has comparable low erase currents. but this would be another &amp;quot;single source&amp;quot;.&lt;/p&gt;
&lt;p&gt;And yes: flash is really required for persistent parameters of the device and also as data storage for an application update.&lt;/p&gt;
&lt;p&gt;Regards Hardy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption on flash erase/write and timing</title><link>https://devzone.nordicsemi.com/thread/180661?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2019 08:20:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb7b4acb-1653-499f-a8be-209c3f44bae2</guid><dc:creator>cbd</dc:creator><description>&lt;p&gt;I see that you&amp;#39;ve marked one of Kenneth&amp;#39;s replies as an answer.&lt;/p&gt;
&lt;p&gt;Some more points to consider:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;BLE listening times (e.g. if you need to wait for a message response or notification) will likely be more power hungry than flash writes.&lt;/li&gt;
&lt;li&gt;If you perform bonding then the SoftDevice will write bonding information to internal flash. I don&amp;#39;t know if this can be circumvented without looking.&lt;/li&gt;
&lt;li&gt;An external flash will eat into your power budget and likely not save you anything.&lt;/li&gt;
&lt;li&gt;For internal flash, data must be erased before the third write of the same 32bit block.&lt;/li&gt;
&lt;li&gt;Beware of leakage currents and internal resistance with &amp;quot;booster&amp;quot; caps, they will also impose a delay on your start-up.&lt;/li&gt;
&lt;li&gt;Consider using a low power state with full RAM retention e.g. do you really need flash?&lt;/li&gt;
&lt;li&gt;Consider storing data in flash in small chunks over an extended period - this will allow you to use smaller &amp;quot;booster&amp;quot; caps and allow for recharge time.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption on flash erase/write and timing</title><link>https://devzone.nordicsemi.com/thread/180389?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2019 19:52:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d8ed148-5d85-4180-9ceb-e00bfa9d8349</guid><dc:creator>rgrr2</dc:creator><description>&lt;p&gt;Thanks Kenneth for your help.&amp;nbsp; I&amp;#39;m yet not sure how to continue.&amp;nbsp; I think that Nordic should specify the flash in more detail.&amp;nbsp; Also a minor extension to the Softdevice flash API would be very helpful.&amp;nbsp; In fact this partial erase feature could be completely hidden inside.&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Hardy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption on flash erase/write and timing</title><link>https://devzone.nordicsemi.com/thread/180378?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2019 17:17:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fa4ca45-fc48-490a-9e9c-f0108b3b1aa7</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Then I am not sure if I have any good suggestion other than possible an external I2C EEPROM.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption on flash erase/write and timing</title><link>https://devzone.nordicsemi.com/thread/180204?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2019 08:26:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b72c212-077e-4078-a893-f69c23708b1c</guid><dc:creator>rgrr2</dc:creator><description>&lt;p&gt;Unfortunately this is not feasible: we use the internal flash for persistent configuration data changed via BLE and also for something like file I/O also done via BLE.&amp;nbsp; So the softdevice should remain switched on.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption on flash erase/write and timing</title><link>https://devzone.nordicsemi.com/thread/180113?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2019 19:35:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c8b1130-0881-413c-9e59-54e1cbf3a7f3</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The datasheet does not contain any electrical data on the flash erase (or write) currents, so 4mA is basically just measurements done on a few DK while doing erase operation.&lt;/p&gt;
&lt;p&gt;The softdevice api does not have any feature that support partial erase no, however if you don&amp;#39;t need to erase the flash frequently, you can always disable the softdevice and erase the flash as you see fit, and then enable the softdevice again afterwards.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption on flash erase/write and timing</title><link>https://devzone.nordicsemi.com/thread/180087?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2019 16:21:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c5203df-b1cc-473b-9a9e-1c0192c790d5</guid><dc:creator>rgrr2</dc:creator><description>&lt;p&gt;Other idea to avoid these large capacitors, could be to use the partial erase feature of the nRF52840.&amp;nbsp; This would allow to split the erase operation into e.g. 10 chunks.&amp;nbsp; Unfortunately there is no API in the softdevice S140 for this&amp;nbsp; (Nordic?&amp;nbsp; Anybody??&amp;nbsp; Would be great, if this could be added somehow)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption on flash erase/write and timing</title><link>https://devzone.nordicsemi.com/thread/180072?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2019 15:25:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ca67fd0-6f5b-49cc-a9eb-6d6790f63e27</guid><dc:creator>rgrr2</dc:creator><description>&lt;p&gt;yes, that&amp;#39;s my idea as well.&amp;nbsp; But where are those 4mA from?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption on flash erase/write and timing</title><link>https://devzone.nordicsemi.com/thread/180057?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2019 14:40:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b506ca7b-6511-454a-af66-58d82da0e92f</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In terms of timing to erase or write, you should calculate based on the worst case numbers, so if you need 1mA on average I suspect you will need rather large caps to handle approx. ~4mA for ~90ms, and stay idle for approx ~270ms &amp;nbsp;before that.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption on flash erase/write and timing</title><link>https://devzone.nordicsemi.com/thread/179838?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2019 16:36:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0716145-b720-40c8-b39c-c63ed0fd34cd</guid><dc:creator>rgrr2</dc:creator><description>&lt;p&gt;No, we are not running from battery.&amp;nbsp; We have a power source with almost constant 1mA which is buffered by a load of capacitors.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption on flash erase/write and timing</title><link>https://devzone.nordicsemi.com/thread/179821?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2019 15:09:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7cf7c86-8cca-4f73-aaa2-10a6977a19d4</guid><dc:creator>cbd</dc:creator><description>&lt;p&gt;If you&amp;#39;re running on a very small battery, especially a non-lithium based one, just be aware that the peak current draw by the BLE may dip the voltage supply voltage below the chip reset level earlier than you expect. I&amp;#39;ve seen this happen with batteries that had a no load voltage of 2.7V&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption on flash erase/write and timing</title><link>https://devzone.nordicsemi.com/thread/179810?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2019 14:37:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88e75764-836d-4183-ba4d-28e63ba1156e</guid><dc:creator>rgrr2</dc:creator><description>&lt;p&gt;You are right with that.&amp;nbsp; Fortunately one can send the MCU to sleep most of the time.&amp;nbsp; There is even some spare current for BLE operation ;-)&lt;/p&gt;
&lt;p&gt;Believe me: the device is working with the 1mA.&amp;nbsp; The questions regarding flash erase current is just fine-tuning.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumption on flash erase/write and timing</title><link>https://devzone.nordicsemi.com/thread/179807?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2019 14:33:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c83f43e4-79f0-469b-9a17-b73c2a9cd9ce</guid><dc:creator>cbd</dc:creator><description>&lt;p&gt;Section 5.2.1.3 of the datasheet shows a maximum 6.3mA with an active CPU, external clock, internal flash access and no DC/DC regulator or 3.1mA with DC/DC regulator and internal oscillator.&lt;/p&gt;
&lt;p&gt;This is obviously more than your 1mA budget (if it is a total).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>