<?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>read/write flash in 51422</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10569/read-write-flash-in-51422</link><description>Hi, 
 I am using nRF51422 with s130 soft device along with SDK v9.0. I am trying to read/write flash memory using pstorage module. I am using BLE nus service for data transfer. I am following thread as mention below : 
 https://devzone.nordicsemi.com</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Dec 2015 18:36:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10569/read-write-flash-in-51422" /><item><title>RE: read/write flash in 51422</title><link>https://devzone.nordicsemi.com/thread/39322?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2015 18:36:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91fccdc2-6037-4591-bef7-2e31d0423836</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi, have you made sure to pass the SoC events received from the softdevice to pstorage_sys_event_handler() in your application? If not you can do it by adding the following code to your application:&lt;/p&gt;
&lt;p&gt;at the end of ble_stack init() in main.c:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// Register with the SoftDevice handler module for sys events.
err_code = softdevice_sys_evt_handler_set(sys_evt_dispatch);
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then declare the system event handler above stack init:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void sys_evt_dispatch(uint32_t sys_evt)
{
    pstorage_sys_event_handler(sys_evt);
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>