<?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>Could you inspec  my flash function?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1722/could-you-inspec-my-flash-function</link><description>Dear Nordic guy,I&amp;#39;m developing with nrf51822 (6.0 stack binary and 5.0 SDK).
I recently updated the code and stack binary(6.0 stack binary and 5.0 SDK).
My function is not working well.I can&amp;#39;t read and write.
Please inspect my code.My developing environment</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Mar 2014 12:47:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1722/could-you-inspec-my-flash-function" /><item><title>RE: Could you inspec  my flash function?</title><link>https://devzone.nordicsemi.com/thread/7580?ContentTypeID=1</link><pubDate>Tue, 04 Mar 2014 12:47:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99f8d010-0f17-4a48-904b-c4ca0ffa052b</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;On first glance this looks quite ok, but it&amp;#39;s hard to find problems when you&amp;#39;re not detailing how things fail. What exactly doesn&amp;#39;t work, and what actually happens? Do you always get success back from all pstorage function calls? Remember that pstorage is an asynchronous library, so even when the store returns success, data have not been written before you get your callback function. When calling nv_page_write() you must therefore make sure that whatever data struct you pass a pointer to remains in scope until you get this callback, or else you&amp;#39;ll see very strange results.&lt;/p&gt;
&lt;p&gt;Also, what problem do you have with debugging? I&amp;#39;d recommend you trying to get this working, since it should make it easier to find issues. If you need help with this, I suggest that you post these questions separately.&lt;/p&gt;
&lt;p&gt;Finally, if you could supply the complete project, either here or in a support case, I&amp;#39;d be happy to take a look on it and test it out here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>