<?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>Why there is no call back after calling pstorage_clear?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1311/why-there-is-no-call-back-after-calling-pstorage_clear</link><description>Hello, 
 I am testing the sample project under \nrf6310\s310\ble_ant_app_hrm. 
 I just made one modification to bond_manager_init function in main.c:
static void bond_manager_init(void)
{
uint32_t err_code;
ble_bondmngr_init_t bond_init_data;
bool</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Oct 2015 05:13:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1311/why-there-is-no-call-back-after-calling-pstorage_clear" /><item><title>RE: Why there is no call back after calling pstorage_clear?</title><link>https://devzone.nordicsemi.com/thread/6017?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2015 05:13:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1679b85-913b-4057-a083-2f1a40cb5dc9</guid><dc:creator>Honey</dc:creator><description>&lt;p&gt;thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why there is no call back after calling pstorage_clear?</title><link>https://devzone.nordicsemi.com/thread/6016?ContentTypeID=1</link><pubDate>Sat, 11 Jan 2014 07:38:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77665471-e5c1-46dd-83eb-e70a3a9176bd</guid><dc:creator>Joseph</dc:creator><description>&lt;p&gt;The problem is fixed, thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why there is no call back after calling pstorage_clear?</title><link>https://devzone.nordicsemi.com/thread/6015?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2014 15:30:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1786eb1-9895-4e62-ad3f-e03e93569a44</guid><dc:creator>Krishna Shingala</dc:creator><description>&lt;p&gt;Hi Joseph,&lt;/p&gt;
&lt;p&gt;Could you add following code and confirm the changes work for you? I see that system events are not being passed on to pstorage module in S310 example in SDK 5.1.0.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
/**@brief Function for dispatching a system event to interested modules.
 *
 * @details This function is called from the System event interrupt handler after a system
 *          event has been received.
 *
 * @param[in]   sys_evt   System stack event.
 */
static void sys_evt_dispatch(uint32_t sys_evt)
{
    pstorage_sys_event_handler(sys_evt);
}

/**@brief BLE + ANT stack initialization.
 *
 * @details Initializes the SoftDevice and the stack event interrupt.
 */
static void ble_ant_stack_init(void)
{
    // Initialize SoftDevice
    SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, false);
    
    // Subscribe for BLE events.
    uint32_t err_code = softdevice_ble_evt_handler_set(ble_evt_dispatch);
    APP_ERROR_CHECK(err_code);
        
    // Subscribe for ANT events.
    err_code = softdevice_ant_evt_handler_set(on_ant_evt);
    APP_ERROR_CHECK(err_code);

   // Register with the SoftDevice handler module for BLE 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;This should hopefully fix the problem for you, and will be fixed in subsequent SDK release as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>