<?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 to flash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29351/write-data-to-flash</link><description>Hi 
 I&amp;#39;m trying to write data to flash and access it via declared const variable. 
 I can&amp;#39;t use UICR because we are on NRF51 and this does not allow to change data in UICR.
I want to write a base configuration to the device and read it from an array</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Jan 2018 12:36:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29351/write-data-to-flash" /><item><title>RE: write data to flash</title><link>https://devzone.nordicsemi.com/thread/116763?ContentTypeID=1</link><pubDate>Fri, 12 Jan 2018 12:36:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9564c618-7355-498e-a529-83c74b41cf6e</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Is the issue that the variable is 0 in your application? Have you tried reading back the flash address using nrfjprog and the command &lt;code&gt;nrfjprog --memrd 0x00035C00&lt;/code&gt;? In my test this gives correct reading both before and after reset of the board with the same settings you have. Also make sure you that your FLASH and conf01 memory sections does not overlap.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>