<?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>problem with pstorage and bonding..........?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20725/problem-with-pstorage-and-bonding</link><description>hai 
 i am working with nrf51822 and mbed . 
 in my application i have requested one page in flash for data store using pstorage. 
 pstorage_module_param_t param;
 param.block_size = 1024;
 param.block_count = 1;
 param.cb = cb_handler;
 retval</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Apr 2017 13:55:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20725/problem-with-pstorage-and-bonding" /><item><title>RE: problem with pstorage and bonding..........?</title><link>https://devzone.nordicsemi.com/thread/80878?ContentTypeID=1</link><pubDate>Wed, 12 Apr 2017 13:55:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d5d1820-f881-46ab-9e1f-a434f16c63fa</guid><dc:creator>iqbalpalemad</dc:creator><description>&lt;p&gt;hai&lt;/p&gt;
&lt;p&gt;the problem is fixed . i have changed the DEVICE_MANAGER_MAX_BONDS in device_manager_cnfg.h.&lt;/p&gt;
&lt;p&gt;thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with pstorage and bonding..........?</title><link>https://devzone.nordicsemi.com/thread/80877?ContentTypeID=1</link><pubDate>Wed, 12 Apr 2017 11:53:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6399e20-1752-4341-a640-e0244a32ad62</guid><dc:creator>iqbalpalemad</dc:creator><description>&lt;p&gt;hai that was 7 . but that is due to i have requested 5 pages . but there is no error when i request one page. but i cant bond more than two devices. when a third device is bonded the nrf51822 gets hang&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with pstorage and bonding..........?</title><link>https://devzone.nordicsemi.com/thread/80876?ContentTypeID=1</link><pubDate>Wed, 12 Apr 2017 11:48:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7e42103-b08e-44ed-a8b6-98751f102a2d</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;What is the error code returned from the registration call?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with pstorage and bonding..........?</title><link>https://devzone.nordicsemi.com/thread/80875?ContentTypeID=1</link><pubDate>Wed, 12 Apr 2017 10:53:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e82c59fb-bab5-46db-b4ac-9a7d68aa6300</guid><dc:creator>iqbalpalemad</dc:creator><description>&lt;p&gt;i have tried it.but the register module is failed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with pstorage and bonding..........?</title><link>https://devzone.nordicsemi.com/thread/80880?ContentTypeID=1</link><pubDate>Tue, 11 Apr 2017 12:32:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc2ea419-a522-4a3b-96c9-b416ee979131</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Try removing the call to &lt;code&gt;pstorage_init()&lt;/code&gt; in your code. As described in &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/lib_pstorage.html?cp=4_0_3_3_19_2#pstorage_api_overview"&gt;the documentation&lt;/a&gt;, initialization should be performed only once. From the source code of the &lt;a href="https://github.com/ARMmbed/mbed-os/blob/729ef153076ea9db4a9c9f81e90076960e035213/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/source/btle/btle_security.cpp#L65"&gt;mbed-os source code for SecurityManager&lt;/a&gt;, &lt;code&gt;pstorage_init()&lt;/code&gt; is called inside &lt;code&gt;SecurityManager().init()&lt;/code&gt;. This issue is also discussed in &lt;a href="https://devzone.nordicsemi.com/question/60018/pstorage-and-device-manager/"&gt;this thread&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with pstorage and bonding..........?</title><link>https://devzone.nordicsemi.com/thread/80879?ContentTypeID=1</link><pubDate>Thu, 06 Apr 2017 07:28:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df40717f-1f84-4723-aab3-bddaa0b9a8f5</guid><dc:creator>iqbalpalemad</dc:creator><description>&lt;p&gt;i have an another issue . i have edited the question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with pstorage and bonding..........?</title><link>https://devzone.nordicsemi.com/thread/80874?ContentTypeID=1</link><pubDate>Fri, 24 Mar 2017 06:40:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d57b6e8c-2bfe-4077-aebb-fd8e26d659b7</guid><dc:creator>iqbalpalemad</dc:creator><description>&lt;p&gt;@Jørgen Holmefjord&lt;/p&gt;
&lt;p&gt;i have tried &lt;em&gt;&amp;quot;Could you try ti increase PSTORAGE_MAX_APPLICATIONS to 4 pages and then only request 1 page for pstorage?&amp;quot;&lt;/em&gt;  but the result was not as expected. i have changed the question with the result at this situation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with pstorage and bonding..........?</title><link>https://devzone.nordicsemi.com/thread/80873?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2017 14:25:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f65d6e3f-5e11-4f48-8531-1690146deb31</guid><dc:creator>iqbalpalemad</dc:creator><description>&lt;p&gt;ok let me try that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with pstorage and bonding..........?</title><link>https://devzone.nordicsemi.com/thread/80872?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2017 14:24:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e9b7889-8304-4c8e-9b0a-7cf45674a47a</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Could you try ti increase PSTORAGE_MAX_APPLICATIONS to 4 pages and then only request 1 page for pstorage? Most likely security manager is using pstorage as well to store bonding information, but you have allready requested all available pages for your flash storage, leaving no available pages for bonding storage.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with pstorage and bonding..........?</title><link>https://devzone.nordicsemi.com/thread/80869?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2017 14:22:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fccadd3-6937-42dc-a347-508b4319d3c2</guid><dc:creator>iqbalpalemad</dc:creator><description>&lt;p&gt;no  PSTORAGE_MAX_APPLICATIONS is increased only when 4 pages are requested. PSTORAGE_MAX_APPLICATIONS is one when one page requested.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with pstorage and bonding..........?</title><link>https://devzone.nordicsemi.com/thread/80868?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2017 14:20:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51109985-ef55-44c8-a972-15e1624de61f</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;But did you increase PSTORAGE_MAX_APPLICATIONS to 4 before you only requested 1 page?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with pstorage and bonding..........?</title><link>https://devzone.nordicsemi.com/thread/80871?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2017 14:19:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdf51559-6fdc-4f17-9675-c2fb2b98b6e1</guid><dc:creator>iqbalpalemad</dc:creator><description>&lt;p&gt;i have requested 1 page first. that is shown in the attached images . first i stored my data in that page.that is shown in first image. but after bonding the data is overwritten by bonding information shown in second image.&lt;/p&gt;
&lt;p&gt;when four pages are requested. when one device bonded the data will store at the starting of first page just like the second image .  after that if a second device is bonded that bonding information will store at the starting of second page and so on..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with pstorage and bonding..........?</title><link>https://devzone.nordicsemi.com/thread/80870?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2017 14:12:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8958a4a1-3fc3-460c-b3ec-4cc502f06388</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;&lt;code&gt;PSTORAGE_MAX_APPLICATIONS&lt;/code&gt; set the number of pages to be allocated for the pstorage module. Have you tried requesting less than 4 pages in pstorage to allow security manager to request the pages it needs as well? By &lt;em&gt;&amp;quot;after that each time a new device is bonded, the bonding information are stored at the starting of each page.&amp;quot;&lt;/em&gt;, do you mean that for each connected device, the bonding information is stored on a new page in flash?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>