<?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>NVM usage in nrf51422</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8268/nvm-usage-in-nrf51422</link><description>I&amp;#39;m currently want to use the NVM with ble device, when I tried to send values from the mobile app to be stored to the NVM, it doesn&amp;#39;t work, I guessed that the problem that it didn&amp;#39;t recieve the data but it&amp;#39;s not that , the problem appear when I use the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Jul 2015 09:04:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8268/nvm-usage-in-nrf51422" /><item><title>RE: NVM usage in nrf51422</title><link>https://devzone.nordicsemi.com/thread/29787?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2015 09:04:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3c2ac8d-c6aa-4379-a90a-dcb02a4a17fa</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Could you edit your question and include this? Try to use answers for answers. You should also try elaborate on what &amp;quot;I can&amp;#39;t read the data written again&amp;quot; means.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NVM usage in nrf51422</title><link>https://devzone.nordicsemi.com/thread/29786?ContentTypeID=1</link><pubDate>Mon, 20 Jul 2015 11:01:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fda512db-7736-4c71-8eb6-f24778c2cd03</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;pre&gt;&lt;code&gt;           void edit_speed_ID(uint8_t speed)
           {		
       //pattern_ID_3();
        uint32_t value, err_code;
       value=0x00000000 | speed;
         err_code=sd_flash_write(address,(uint32_t *) &amp;amp; value,1);
       APP_ERROR_CHECK(err_code);
           flag=false;
           //	flash_init();
            }
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;in the main function&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;	if (flag==false)
	{
	speed = * address;
	//speed = 5 *speed;
	}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and flag is global identifier.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NVM usage in nrf51422</title><link>https://devzone.nordicsemi.com/thread/29785?ContentTypeID=1</link><pubDate>Mon, 20 Jul 2015 10:59:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:811d2310-4e08-444e-b94b-ead6d57684a5</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;first of all, thank you for trying helping me,
I solved a part of my problem by using the sd_flash_write function, it works &amp;amp; I doesn&amp;#39;t loose the connection, another problem appeared that I can&amp;#39;t read the data written again,
I&amp;#39;ll post this part of code in an answer
just a minute&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NVM usage in nrf51422</title><link>https://devzone.nordicsemi.com/thread/29784?ContentTypeID=1</link><pubDate>Mon, 20 Jul 2015 10:11:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0917bda7-fbfa-4e01-a7aa-7c3c3601f2f8</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;still no code - just some sketchy &amp;#39;I write values and it doesn&amp;#39;t work&amp;#39;. Nobody can help you if you don&amp;#39;t provide some reasonable details of &lt;em&gt;exactly&lt;/em&gt; what you&amp;#39;re doing and where it&amp;#39;s failing.&lt;/p&gt;
&lt;p&gt;Are you in the error handler? I&amp;#39;m guessing since the connection breaks you may well be, which would mean you did get an error and APP_ERROR_CHECK() failed and called the error handler. Have you put a breakpoint in there?&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re not there, where are you? Hit break in the debugger, are you in the hardfault handler, some other fault handler?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NVM usage in nrf51422</title><link>https://devzone.nordicsemi.com/thread/29783?ContentTypeID=1</link><pubDate>Mon, 20 Jul 2015 08:57:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25e838e3-4a77-4b32-80b4-33e915dc6962</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;I didn&amp;#39;t get any errors or even warnings, what I got that when I try to write values sent from the mobile  to the NVM in nrf51422 development kit, it caused to lost the connection &amp;amp; I get an error 133 (0x85): GATT ERROR while if I sent values and don&amp;#39;t try to store in the nvm it works fine with me&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NVM usage in nrf51422</title><link>https://devzone.nordicsemi.com/thread/29782?ContentTypeID=1</link><pubDate>Mon, 20 Jul 2015 01:45:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb7ad845-7794-4e37-aefb-a134f9bc2869</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;There&amp;#39;s nowhere near enough information in this question for anyone to be able to help you. You don&amp;#39;t say what isn&amp;#39;t working, you don&amp;#39;t post even a single line of code showing what you&amp;#39;re doing, haven&amp;#39;t said if you get error messages, nothing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>