<?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>Writing to flash.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9420/writing-to-flash</link><description>Hello, 
 I want to store some values to flash. What is the best method to store data to flash? 
 I&amp;#39;m trying to get pstorage working but i have no luck, so i&amp;#39;m wondering if there are any other ways... 
 my code for pstorage: 
 static void example_cb_handler</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Sep 2015 05:35:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9420/writing-to-flash" /><item><title>RE: Writing to flash.</title><link>https://devzone.nordicsemi.com/thread/34778?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2015 05:35:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80048dc7-bc14-448c-8970-7576ecade745</guid><dc:creator>nejcokle</dc:creator><description>&lt;p&gt;Thank you for you help. I tried that before but it didn&amp;#39;t work, but now it does :)&lt;/p&gt;
&lt;p&gt;Thanks again, take care.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing to flash.</title><link>https://devzone.nordicsemi.com/thread/34777?ContentTypeID=1</link><pubDate>Sun, 27 Sep 2015 08:14:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c9ac74b-3b7a-4915-9d2e-7f95bd2b7766</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;You need to register system event handler with&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;softdevice_sys_evt_handler_set(sys_evt_dispatch);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and then when the system event handler is called by the softdevice you need to forward it to the pstorage module with&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;pstorage_sys_event_handler(sys_evt);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;as done in ting&amp;#39;s answer on &lt;a href="https://devzone.nordicsemi.com/question/22752/data-saved-different-to-data-read/?answer=22926#post-id-22926"&gt;this thread&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>