<?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>Flash Erase Suspend</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100385/flash-erase-suspend</link><description>Hi, 
 
 I am using nRF5340-DK board and nRF Connoect SDK 1.9.1. 
 
 It takes ~20mA average for 30ms to erase one page of the external flash (Find below the power profiler screenshot) 
 
 
 
 The amount of power drawn for this duration of time is problematic</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Jun 2023 23:50:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100385/flash-erase-suspend" /><item><title>RE: Flash Erase Suspend</title><link>https://devzone.nordicsemi.com/thread/430589?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2023 23:50:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a97a2eab-79ee-4be5-be0d-279f2831d1f4</guid><dc:creator>kerko</dc:creator><description>&lt;p&gt;Thanks haakonsh.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;After a few days of fiddling around I finally get erase suspend/resume working properly.&lt;/p&gt;
&lt;p&gt;It works within a sector erase as well.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/erase_5F00_page_5F00_suspend.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash Erase Suspend</title><link>https://devzone.nordicsemi.com/thread/429285?ContentTypeID=1</link><pubDate>Mon, 05 Jun 2023 12:06:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5b56124-eeea-49ce-9c49-cadd7edc9cd5</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;From the&amp;nbsp;MX66L1G45G datasheet chapter&amp;nbsp;9-41. Erase Suspend:&amp;nbsp;&lt;br /&gt;&amp;quot;If the system issues an Erase Suspend command after the sector erase operation has already begun, the device will not enter Erase-Suspended mode until tESL has elapsed.&amp;quot;&lt;/p&gt;
&lt;p&gt;Looks like you won&amp;#39;t be able to lower power peaks with Erase Suspend unless you are erasing multiple sectors, but then you could also just erase one sector at a time without using the Erase Suspend feature.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As for the difference in current consumption I&amp;nbsp;assume to be attributed to&amp;nbsp;the different operating voltages and sector erase times:&amp;nbsp;~7mA for 65ms @1.8V vs ~19mA for 30ms @3.3V.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As for mitigating the load peaks with regard to your power supply I think you need to consider adding a small supercap to your power supply.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash Erase Suspend</title><link>https://devzone.nordicsemi.com/thread/429128?ContentTypeID=1</link><pubDate>Mon, 05 Jun 2023 03:11:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bce69eca-0ed7-40cf-a65c-1502ca11176e</guid><dc:creator>kerko</dc:creator><description>&lt;p&gt;My apologies haakonsh. I&amp;#39;ve been&amp;nbsp;taking measurements&amp;nbsp;with our custom board as well as nRF5340-DK board and I messed up the measurement screenshots.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;So below is the single page erase power measurement I&amp;#39;ve taken, using our custom FW on the nRF5340-DK board. The average current is 7.9mA, but the baseline current was around 0.7mA, so if we deduct that, it takes 7.2mA for 65mS to erase 1 page of flash.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/erase_5F00_page_5F00_nRF53DK.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We also have our own custom board which uses&amp;nbsp;&lt;span&gt;MX66L1G45G AS THE FLASH CHIP. When I measure the erase page power consumption with the same FW, I get 19.5mA for ~29mS. Screenshot below.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/erase_5F00_page_5F00_emulator.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Erase page peak power drawing characteristics are much different to each other. When I check the datasheets of the flash chips, erase currents seems to be same. Is such a difference normal?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash Erase Suspend</title><link>https://devzone.nordicsemi.com/thread/429067?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2023 17:46:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04b914d9-70fb-49b6-9cf5-ceab6990f396</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;I&amp;#39;m a bit confused as the maximum current consumption of the&amp;nbsp;mx25r64 flash device on the nRF5340 while erasing should be 3.1mA typ and 6mA max. Are you using the on-board mx25r64?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;In order to support more flash opcodes you need to expand&amp;nbsp;drivers/flash/spi_nor.c. Se f.ex.&amp;nbsp;spi_nor_cmd_write().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>