<?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>Write data into internal flash on Zephyr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107295/write-data-into-internal-flash-on-zephyr</link><description>Hi, I want to write data into internal flash. 
 
 I used these code, but it not work(Reboot infinitely) 
 
 
 Reading data is okay, but writing part has problems. 
 When cpu execute 
 
 readAddress [ 0 ] = 0x01 ; 
 
 to write data into flash, device has</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Jan 2024 11:11:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107295/write-data-into-internal-flash-on-zephyr" /><item><title>RE: Write data into internal flash on Zephyr</title><link>https://devzone.nordicsemi.com/thread/463718?ContentTypeID=1</link><pubDate>Thu, 11 Jan 2024 11:11:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad4aed04-f962-44c7-b484-394db7a44c64</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Flash usage is dependent and is automatically managed by Zephyr &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html"&gt;partition management&lt;/a&gt;&amp;nbsp; &lt;a href="https://docs.zephyrproject.org/latest/hardware/peripherals/flash.html"&gt;NVMS drivers&lt;/a&gt;, &lt;a href="https://docs.zephyrproject.org/latest/services/settings/index.html"&gt;Settings&amp;nbsp;&lt;/a&gt;&amp;nbsp;Trying to access the flash directly using NVMC registers and bypassing all the layers in the Zephyr which might also be accessing the page you are trying to access will most likely cause corruptions at best and unpredicted behavior at worst.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please use the supported libraries/drivers to access flash instead of writing to registers directly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>