<?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>repeated write/reads from internal flash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121598/repeated-write-reads-from-internal-flash</link><description>Hi support 
 I am using the app core of the nrf5340 chip and currently testing using a nrf7002dk dev kit. I am compiling code using sdk v3.0.0. 
 I am trying to access the internal flash memory of the nrf5340 using the zephyr flash interface. However</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 May 2025 11:48:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121598/repeated-write-reads-from-internal-flash" /><item><title>RE: repeated write/reads from internal flash</title><link>https://devzone.nordicsemi.com/thread/535967?ContentTypeID=1</link><pubDate>Mon, 19 May 2025 11:48:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47fba96f-a7a0-4737-96ab-cf2d0927306c</guid><dc:creator>th8d</dc:creator><description>&lt;p&gt;Hi Vidar&lt;/p&gt;
&lt;p&gt;Many thanks for your prompt answer. That has resolved the problem. Is there any documentation that describes this ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: repeated write/reads from internal flash</title><link>https://devzone.nordicsemi.com/thread/535960?ContentTypeID=1</link><pubDate>Mon, 19 May 2025 11:20:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fabf904-f50a-4a85-acdd-a079d42fa1ef</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;nor flash&amp;nbsp;requires an erase before each write. This is because&amp;nbsp;the&amp;nbsp;flash can only change bits from 1 to 0 during a write.&amp;nbsp;Resetting bits back to 1 requires an erase. Also, flash can only be erased 4096 bytes at a time (size of flash page on this device).&amp;nbsp; So even if only a few bytes need to be update, the entire 4 KB page must be erased first.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>