<?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>failing while doing the flashwrite example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22322/failing-while-doing-the-flashwrite-example</link><description>hello, i am doing flash read and write in nrf51.for which i have used the C:\nRF5_SDK_12.2.0_f012efa\examples\peripheral\flashwrite\pca10028\blank\arm4 this exampl.
but while doing this my nrf51-DK borad stopped response and it showing errors while programming</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 May 2017 12:43:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22322/failing-while-doing-the-flashwrite-example" /><item><title>RE: failing while doing the flashwrite example</title><link>https://devzone.nordicsemi.com/thread/87765?ContentTypeID=1</link><pubDate>Fri, 26 May 2017 12:43:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e1f04d4-e953-4f33-8561-a8a72ddc941f</guid><dc:creator>pallavi</dc:creator><description>&lt;p&gt;my query is solved.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: failing while doing the flashwrite example</title><link>https://devzone.nordicsemi.com/thread/87764?ContentTypeID=1</link><pubDate>Fri, 26 May 2017 12:43:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:977fe7eb-c3e3-4a66-b6c8-c9cb781b941c</guid><dc:creator>pallavi</dc:creator><description>&lt;p&gt;Thank you sir.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: failing while doing the flashwrite example</title><link>https://devzone.nordicsemi.com/thread/87763?ContentTypeID=1</link><pubDate>Fri, 26 May 2017 12:35:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ea5b507-b20e-4ec8-84e6-cd5a0a4a1f55</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Yes, the flash is shared between the source code, so the 256 kB is the total amount of flash for both the source code and &amp;quot;application stored data&amp;quot;. The source code starts (by default) at address 0x00, and is written continuously from there. After the &amp;quot;end of&amp;quot; the source code, the application can use the rest.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: failing while doing the flashwrite example</title><link>https://devzone.nordicsemi.com/thread/87762?ContentTypeID=1</link><pubDate>Fri, 26 May 2017 12:29:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5aff3c44-c1ed-4dbd-a711-cabecd289149</guid><dc:creator>pallavi</dc:creator><description>&lt;p&gt;thank you sir, i also want to ask that in  flashwrite code it is given that
pg_size = NRF_FICR-&amp;gt;CODEPAGESIZE;
pg_num  = NRF_FICR-&amp;gt;CODESIZE - 1;  // Use last page in flash&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;//while (true)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;// {
// Start address:
addr = (unsigned int *)(pg_size * pg_num);
here it is commented for page no use last page.how can i use first page of flash for writing values
pg_num  = NRF_FICR-&amp;gt;CODESIZE - 1;  // Use last page in flash.
insted on 1 what is the value for writing data on flash memories first page.&lt;/p&gt;
&lt;p&gt;sir in above msg you told that ,
&amp;quot;You can save data in any flash page, as long as it is not used by anything else.&amp;quot;
it means you are saying that all 256 kb memory is available for writing?&lt;/p&gt;
&lt;p&gt;if it is then, i have one question that is,we write the source code what memory nrf51822  uses for strorage of code.is it different from flash memory.
or tell me if there is slots of flash for user and for storage suource code ?means i jast want to ask that is the 256 kbytes of flash is divided in between code and for storage of data ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: failing while doing the flashwrite example</title><link>https://devzone.nordicsemi.com/thread/87761?ContentTypeID=1</link><pubDate>Fri, 26 May 2017 11:13:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dff17d06-82ab-4e38-b58b-97ca8176fd29</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Do you mean that you cannot write to address 0x40000, if so, that&amp;#39;s because of the amount of flash on the nRF51822, 256 kB.&lt;/p&gt;
&lt;p&gt;256 kB = 0x40000 bytes&lt;/p&gt;
&lt;p&gt;You can save data in any flash page, as long as it is not used by anything else.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>