<?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>What is the Module ID and Block ID</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13451/what-is-the-module-id-and-block-id</link><description>I am using the nrf51822 and I want to use the pstorage library to save some data which is &amp;quot;power lost can save&amp;quot;,but I cloud not find the example of it.I am using the SDK 8.1.0 and after init the pstorage by pstorage_init() function.I got error when I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Apr 2016 07:32:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13451/what-is-the-module-id-and-block-id" /><item><title>RE: What is the Module ID and Block ID</title><link>https://devzone.nordicsemi.com/thread/51340?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 07:32:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d5d2959-e843-4e5a-b5cc-d7c6ca4da995</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Please accept my answer and add this as a new question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the Module ID and Block ID</title><link>https://devzone.nordicsemi.com/thread/51339?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 02:21:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f70844e-0ee3-42e5-bb28-ee444f1be1db</guid><dc:creator>Jacksonlv</dc:creator><description>&lt;p&gt;Yes ,you are right!!&lt;br /&gt;
Now I want to transplant the pstorage function to the BLE mesh.But I found it stucked in  &lt;code&gt;while(pstorage_wait_flag) { power_manage(); } //Sleep until store operation is finished.&lt;/code&gt;&lt;br /&gt;
Here is my main function:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    /** @brief main function */
int main(void)
{   	
		uint32_t err_code;

    /* Enable Softdevice (including sd_ble before framework */
    SOFTDEVICE_HANDLER_INIT(MESH_CLOCK_SOURCE, NULL);
		
    // Enable BLE stack 
    ble_enable_params_t ble_enable_params;
    memset(&amp;amp;ble_enable_params, 0, sizeof(ble_enable_params));
    ifdef S130
    ble_enable_params.gatts_enable_params.attr_tab_size   = BLE_GATTS_ATTR_TAB_SIZE_DEFAULT;
 
    endif
    ble_enable_params.gatts_enable_params.service_changed = IS_SRVC_CHANGED_CHARACT_PRESENT;
    err_code = sd_ble_enable(&amp;amp;ble_enable_params);
    APP_ERROR_CHECK(err_code);
    endif
    err_code = softdevice_ble_evt_handler_set(sd_ble_evt_handler); 
    APP_ERROR_CHECK(err_code);
	err_code = softdevice_sys_evt_handler_set(rbc_mesh_sd_evt_handler);
	APP_ERROR_CHECK(err_code);

		scheduler_init();       
		pstorage_test_store_and_update();

    while (true)
    {
        app_sched_execute();			
        power_manage();
    }    
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the Module ID and Block ID</title><link>https://devzone.nordicsemi.com/thread/51338?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2016 09:00:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a636924-5306-4e80-a20a-1c32c6a7c3b6</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;If you remove ble_stack_init() SoftDevice handler for system events is not registered:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;err_code = softdevice_sys_evt_handler_set(sys_evt_dispatch);
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Could that be the causing the issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the Module ID and Block ID</title><link>https://devzone.nordicsemi.com/thread/51334?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2016 07:08:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88a87835-d2f5-4ef1-91f0-2c02cbf956a1</guid><dc:creator>Jacksonlv</dc:creator><description>&lt;p&gt;Yes, I just change the main function as below&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;int main(void)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;uint32_t err_code;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// Initialize
timers_init();
	uart_config();
//ble_stack_init();
//bsp_module_init();
scheduler_init();
/*gap_params_init();
advertising_init();
services_init();
conn_params_init();
sec_params_init();*/

// Start execution
/*timers_start();
err_code = ble_advertising_start(BLE_ADV_MODE_FAST);
APP_ERROR_CHECK(err_code);*/

	pstorage_test_store_and_update();

// Enter main loop
for (;;)
{
    app_sched_execute();			
    power_manage();
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the Module ID and Block ID</title><link>https://devzone.nordicsemi.com/thread/51337?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2016 07:06:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8015c261-e09d-4797-8775-778320d54ce8</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;This &lt;a href="https://github.com/NordicSemiconductor/nRF51-ble-bcast-mesh"&gt;mesh&lt;/a&gt;? I dont&amp;#39; know why it always prints &amp;quot;pstorage&amp;quot;. I don&amp;#39;t know exactly what you have done. Maybe you get a reset because of an error code returned somewhere?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the Module ID and Block ID</title><link>https://devzone.nordicsemi.com/thread/51336?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2016 06:33:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:812bb5d4-8c9f-4b94-9a9c-11e9c83ae2c3</guid><dc:creator>Jacksonlv</dc:creator><description>&lt;p&gt;I am using SDK 8.1.0 and I using the example in &lt;a href="https://devzone.nordicsemi.com/question/15271/how-can-i-write-10kb-of-data-to-internal-flash/?answer=17300#post-id-17300"&gt;here&lt;/a&gt;.It worked fine.Now I want to use the pstorage function with BLE mesh but I found that after I comment the &amp;quot;ble_stack_init();&amp;quot; function ,the Serail always prints  &amp;quot;pstorage ?&amp;quot;.Can you tell me why?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the Module ID and Block ID</title><link>https://devzone.nordicsemi.com/thread/51335?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2016 06:09:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d15724e-a7e1-406d-8156-515561783eed</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;What SDK example are you using? How are you using pstorage? Please edit your question and include some code. What error is returned?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>