<?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>more data in pstorage....?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19528/more-data-in-pstorage</link><description>Hai 
 i am able to store one array in flash memmory of nrf51822. but i need to save more than one set of data into flash and retrieve it separately.
how can i save more than one set of data in pstorage.
actually i need to store the mac address of all</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Feb 2017 16:01:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19528/more-data-in-pstorage" /><item><title>RE: more data in pstorage....?</title><link>https://devzone.nordicsemi.com/thread/75903?ContentTypeID=1</link><pubDate>Wed, 22 Feb 2017 16:01:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17f29462-2936-4d0a-9c4b-a6f76d67c6cd</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Added an answer &lt;a href="https://devzone.nordicsemi.com/question/116731/can-i-store-a-struct-in-flash/"&gt;here&lt;/a&gt;. Maybe you can accept my answer here by clicking the grey circle next to it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: more data in pstorage....?</title><link>https://devzone.nordicsemi.com/thread/75902?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 07:30:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98b65110-416d-415f-becc-5889d24041d4</guid><dc:creator>iqbalpalemad</dc:creator><description>&lt;p&gt;hai&lt;/p&gt;
&lt;p&gt;thank you for all your replays .
my problems are almost solved. now i would like to know that can a store a struct instead of an array in flash..............?
or can i store a two dimensional array in flash.......?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: more data in pstorage....?</title><link>https://devzone.nordicsemi.com/thread/75901?ContentTypeID=1</link><pubDate>Fri, 17 Feb 2017 10:35:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b36deeba-ea6b-4993-baba-9346e9dd38e5</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure I understand the problem here. Maybe you can try to explain a bit more? You only need to give one handle to pstorage_register().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: more data in pstorage....?</title><link>https://devzone.nordicsemi.com/thread/75900?ContentTypeID=1</link><pubDate>Thu, 16 Feb 2017 09:01:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9bceeac-df1a-42e8-8199-df7055713bc4</guid><dc:creator>iqbalpalemad</dc:creator><description>&lt;p&gt;my understanding is that if we want to store 4 data in flash we need 4 handlers and all handlers should be defined while calling  pstorage_register().
please correct me if i am wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: more data in pstorage....?</title><link>https://devzone.nordicsemi.com/thread/75899?ContentTypeID=1</link><pubDate>Thu, 16 Feb 2017 08:55:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc64c985-bbdf-4146-bf7a-e09ab0213814</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I don&amp;#39;t think that should be a problem, but you have to define the maximum number of blocks/block size when you call pstorage_register()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: more data in pstorage....?</title><link>https://devzone.nordicsemi.com/thread/75898?ContentTypeID=1</link><pubDate>Thu, 16 Feb 2017 06:36:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6859d4c-4c61-46fa-9a1c-a189f8b2f910</guid><dc:creator>iqbalpalemad</dc:creator><description>&lt;p&gt;actually i want to store some number of data in flash. but the number of data can&amp;#39;t be pre-determine . it wil be generated depends on program execution. i understand from above comments that  i have to pre define each handler for each data, since the number of data is not constant can i generate a handler when  there is a new data to store in flash....?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: more data in pstorage....?</title><link>https://devzone.nordicsemi.com/thread/75897?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2017 13:35:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1804db76-9c11-4482-bb52-715e6d544021</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Great! What do you mean by dynamically?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: more data in pstorage....?</title><link>https://devzone.nordicsemi.com/thread/75896?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2017 10:30:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b39591b-b4e1-4bd7-9fcb-02b2e8bd8e23</guid><dc:creator>iqbalpalemad</dc:creator><description>&lt;p&gt;@Petter Myhre  thank you . it is working now.
so is it necessary to add a handler for each data. actually i need to add data dynamically...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: more data in pstorage....?</title><link>https://devzone.nordicsemi.com/thread/75895?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2017 10:05:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7ac12eb-745a-42ad-8b2f-d6b84b4cef6c</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Did you try what I suggested? Just get the block identifier/handle of the block you want to write to, if you want to write to third block do something like:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;pstorage_handle_t base_handle;
pstorage_handle_t block_handle2;
static uint8_t source_data[4] __attribute__((aligned(4)));
uint32_t err_code;

err_code = pstorage_block_identifier_get(&amp;amp;base_handle, 2, &amp;amp;block_handle2);
APP_ERROR_CHECK(err_code);

err_code = pstorage_store(&amp;amp;block_handle2, source_data, 0, 4);
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: more data in pstorage....?</title><link>https://devzone.nordicsemi.com/thread/75894?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2017 13:42:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92582d8d-3676-4e75-bbb8-9fdc84983995</guid><dc:creator>iqbalpalemad</dc:creator><description>&lt;p&gt;this is first time ii am working with pstorage. can you get me any example codes showing multiple store  and retrieve ....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: more data in pstorage....?</title><link>https://devzone.nordicsemi.com/thread/75893?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2017 13:17:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9204c788-88b0-4d1b-984f-21f3dd59c94d</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Ok. What if you get the handle of the second block with &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_2#pstorage_get_block_id"&gt;pstorage_block_identifier_get()&lt;/a&gt; and &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_4#pstorage_store"&gt;store&lt;/a&gt; the second address with it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: more data in pstorage....?</title><link>https://devzone.nordicsemi.com/thread/75892?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2017 12:48:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f853efe0-1bd5-4704-9c42-be3e987e8852</guid><dc:creator>iqbalpalemad</dc:creator><description>&lt;p&gt;actually i need to store mac address of all devices connecting to my nrf51822. but i dont know how store data one by one in flash memmory. i am able to store one address in flash using the above example...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: more data in pstorage....?</title><link>https://devzone.nordicsemi.com/thread/75891?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2017 12:23:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8679a584-e44b-4b9b-be7e-5142cb78e3ac</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;What is the problem? What is it you are having trouble with doing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>