<?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>How can i write 10kB of data to internal flash?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/3521/how-can-i-write-10kb-of-data-to-internal-flash</link><description>Hi, 
 I use nRF51822 with 256k flash and external sensor, and i want to write the data i receive from it via SPI to internal flash? 
 After the data received i want to send it to iOS application with s110 uart_app. 
 How can i do it? 
 P.S.
I tried</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Nov 2016 09:19:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/3521/how-can-i-write-10kb-of-data-to-internal-flash" /><item><title>RE: How can i write 10kB of data to internal flash?</title><link>https://devzone.nordicsemi.com/thread/12751?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2016 09:19:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84a6ef2d-7edc-450d-a4f8-6f0ffe0ad31e</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;@Thanh Doung Please add a new question and link to this one if it is relevant.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i write 10kB of data to internal flash?</title><link>https://devzone.nordicsemi.com/thread/12752?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2016 23:56:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f8dcef9-4c92-4633-a1b1-6c6644e4d898</guid><dc:creator>Thanh Duong</dc:creator><description>&lt;p&gt;I already had a pstorage callback function. But when I use printing in callback function I just receive callback of pstorage_load function, I don&amp;#39;t know why I can&amp;#39;t see callback of pstorage_store and pstorage_update.&lt;/p&gt;
&lt;p&gt;I sure the device does not reset before storing or updating complete, because after this test pstorage code it run into bluetooth app (with a blinking led for indicator) and I reset board by pressing the &amp;quot;IF BOOT/RESET&amp;quot; button on board so I think there is enough time for pstorage_store and pstorage_update function.&lt;/p&gt;
&lt;p&gt;I will try my code on your example project.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i write 10kB of data to internal flash?</title><link>https://devzone.nordicsemi.com/thread/12750?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2016 20:54:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f940e5d5-d91e-42be-a67e-6bac7ed4702e</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Where is your pstorage callback function. You first know that update is successful when you get a pstorage_callback_success event. My guess is the you reset the device before the pstorage update operation is complete. The pstorage update function is in fact combination of several flash operation, including 2x pstorage clear operations and pstorage clear takes around 22ms each. There are some &lt;a href="https://github.com/NordicSemiconductor/nRF5-flash-storage-examples"&gt;flash storage examples here&lt;/a&gt;, including pstorage example where pstorage callback handler is implemented. It is in fact the same example as posted on this thread for SDK 11.0.0&lt;/p&gt;
&lt;p&gt;Your question is in fact very good and it would be relevant to make a new thread for it in order for others to find the question and answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i write 10kB of data to internal flash?</title><link>https://devzone.nordicsemi.com/thread/12749?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2016 14:16:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bb02f5c-f30c-4918-9ada-8d37d87e73d7</guid><dc:creator>Thanh Duong</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you help me figure out the bug in the code below.&lt;/p&gt;
&lt;p&gt;I have a code to test writing and loading using pstorage (I use nrf51, SDK11).&lt;/p&gt;
&lt;p&gt;When power on, it will load from flash to check:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If data is not existed (=0xFF) it will save the default data to flash&lt;/li&gt;
&lt;li&gt;Else (data is exist) it will change data then update to flash again. So after each reset, the data loaded must be changed.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;But with my code, the data loaded does not change.&lt;/p&gt;
&lt;p&gt;Help me. Thanks.&lt;/p&gt;
&lt;p&gt;My code:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;	pstorage_handle_t       block_handle;
	pstorage_module_param_t param;
	uint8_t					dest_data[4];
	uint8_t					default_data[4];
	uint32_t				retval;
	
	param.block_size  		= 16;
	param.block_count 		= 1;
	param.cb				= app_cb_handler;

	default_data[0] 		= 1;
	default_data[1] 		= 2;
	default_data[2] 		= 3;
	default_data[3] 		= 4;
	
	retval = pstorage_init();							// Initialization
	if(retval == NRF_SUCCESS)
			printf(&amp;quot;\r\nPstorage init success&amp;quot;);
	else
			printf(&amp;quot;\r\nPstorage init failed&amp;quot;);
	retval = pstorage_register(&amp;amp;param, &amp;amp;block_handle);	// Register
	if(retval == NRF_SUCCESS)
			printf(&amp;quot;\r\nPstorage regis success&amp;quot;);
	else
			printf(&amp;quot;\r\nPstorage regis failed&amp;quot;);
	
	// Request to read 4 bytes from block at an offset of 0 bytes.
	retval = pstorage_load(dest_data, &amp;amp;block_handle, 4, 0);
	if(retval == NRF_SUCCESS)
			printf(&amp;quot;\r\nLoad success&amp;quot;);
	else
			printf(&amp;quot;\r\nLoad failed&amp;quot;);
	if(dest_data[1] == 0xFF)
	{
			printf(&amp;quot;\r\nData is not exist, save data...&amp;quot;);
			retval = pstorage_clear(&amp;amp;block_handle, 4);
			if(retval == NRF_SUCCESS)
					printf(&amp;quot;\r\nClear success&amp;quot;);
			else
					printf(&amp;quot;\r\nClear failed&amp;quot;);
			retval = pstorage_store(&amp;amp;block_handle, default_data, 4, 0);
			if(retval == NRF_SUCCESS)
					printf(&amp;quot;\r\nStore success&amp;quot;);
			else
					printf(&amp;quot;\r\nStore failed&amp;quot;);
	}
	else
	{
			printf(&amp;quot;\r\ndata0 = %d&amp;quot;, dest_data[0]);
			printf(&amp;quot;\r\ndata1 = %d&amp;quot;, dest_data[1]);
			printf(&amp;quot;\r\ndata2 = %d&amp;quot;, dest_data[2]);
			printf(&amp;quot;\r\ndata3 = %d&amp;quot;, dest_data[3]);
			dest_data[0] += 1;
			dest_data[1] += 1;
			dest_data[2] += 1;
			dest_data[3] += 1;			
			retval = pstorage_update(&amp;amp;block_handle, dest_data, 4, 0);
			if(retval == NRF_SUCCESS)
					printf(&amp;quot;\r\nUpdate success&amp;quot;);
			else
					printf(&amp;quot;\r\nUpdate failed&amp;quot;);
	}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;On termial:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Pstorage init success
Pstorage regis success
Load success
Data is not exist, save data...
Clear failed
Store success
---Reset---
Pstorage init success
Pstorage regis success
Load success
data0 = 1
data1 = 2
data2 = 3
data3 = 4
Update success
---Reset---
Pstorage init success
Pstorage regis success
Load success
data0 = 1
data1 = 2
data2 = 3
data3 = 4
Update success
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i write 10kB of data to internal flash?</title><link>https://devzone.nordicsemi.com/thread/12748?ContentTypeID=1</link><pubDate>Mon, 01 Aug 2016 13:59:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3738c8a-0720-4c01-9b61-a632c2258556</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;@hawk    I can answer this here. on nRF51, application timer will always block softdevice callbacks. You need to call pstorage operation from main context in order to ever receive the callback for the pstorage operation.&lt;/p&gt;
&lt;p&gt;You could call the scheduler from the application timer handler and let the scheduler task call the pstorage operation in the main context.&lt;/p&gt;
&lt;p&gt;Another option would be simply to set a global flag in the application timer handler. In the main loop you check for that flag every time you wake up from an interrupt, if the flag is true, you call pstorage operation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i write 10kB of data to internal flash?</title><link>https://devzone.nordicsemi.com/thread/12747?ContentTypeID=1</link><pubDate>Mon, 18 Jul 2016 08:40:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f556e2fe-b0f0-4061-9820-39697da78b94</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;@hawk Please add a new question with a detailed description of your problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i write 10kB of data to internal flash?</title><link>https://devzone.nordicsemi.com/thread/12746?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2016 07:59:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dba98169-9b3b-4d28-97b0-3b7e3892f1a1</guid><dc:creator>hawk</dc:creator><description>&lt;p&gt;hi,Stefan: how to call pstorage operation from an app timer  interrupt handler without blocking.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i write 10kB of data to internal flash?</title><link>https://devzone.nordicsemi.com/thread/12745?ContentTypeID=1</link><pubDate>Thu, 26 May 2016 01:22:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10718c86-fba1-4603-aedd-5a463ba343bd</guid><dc:creator>Mark</dc:creator><description>&lt;p&gt;This is might the point. Thanks for your suggestion.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i write 10kB of data to internal flash?</title><link>https://devzone.nordicsemi.com/thread/12742?ContentTypeID=1</link><pubDate>Wed, 25 May 2016 11:35:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:726e718c-7979-477e-ad91-417cd814b7e5</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Make sure you call pstorage operation from the main context. You can not call them from an interrupt handler because operations in the examples provided above are blocking while waiting for a callback. If you call pstorage_test_store_and_update function from interrupt hanlder, the function will block all callbacks, including the pstorage callback but also from peripherals and other BLE services&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i write 10kB of data to internal flash?</title><link>https://devzone.nordicsemi.com/thread/12741?ContentTypeID=1</link><pubDate>Wed, 25 May 2016 10:31:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2adb9223-25b8-4164-b89f-6f54a34ac21d</guid><dc:creator>Mark</dc:creator><description>&lt;p&gt;No, just like system hang-up. Even my UART function also freeze. I refer to another way to use pStorage module &lt;a href="https://developer.mbed.org/users/tumaku/code/BLE_pstorage/file/b8cefa34f89d/main.cpp"&gt;here&lt;/a&gt; and it works fine but I don&amp;#39;t know why? The only different between these two sample is: This sample operate the pStorage module in series of function call and the other sample project above I found call these api step by step(triggered by UART input event). Hope these information can give you some ideas. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i write 10kB of data to internal flash?</title><link>https://devzone.nordicsemi.com/thread/12743?ContentTypeID=1</link><pubDate>Wed, 25 May 2016 09:36:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01a3d8b4-4d57-431e-a80a-e8f18d42571e</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;@Mark&lt;/p&gt;
&lt;p&gt;There is a pstorage bug apparently present in SDK 8.1.0-, see &lt;a href="https://devzone.nordicsemi.com/question/64449/urgently-about-flash-access/"&gt;this thread&lt;/a&gt;. To solve the issue, simply update pstorage module to SDK 9.0.0+. I see that you are using SDK 10.0.0 so that bug should not be present.&lt;/p&gt;
&lt;p&gt;Do you get any error message when calling the &amp;#39;pstorage_test_store_and_update&amp;#39; function. Do you get any pstorage callback from the softdevice in the sys_evt_dispatch callback?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i write 10kB of data to internal flash?</title><link>https://devzone.nordicsemi.com/thread/12744?ContentTypeID=1</link><pubDate>Mon, 23 May 2016 08:53:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:234987d5-f693-4c70-87c8-54ea8c3180d8</guid><dc:creator>Mark</dc:creator><description>&lt;p&gt;I porting your code into my test project with SDK v10.0.0 and works fine before my nRF51800 BLE connected with cellphone. But if I call your &amp;#39;pstorage_test_store_and_update&amp;#39; function after BLE connected with cellphone, the callback function &amp;#39;example_cb_handler&amp;#39; will never be called. I want to confirm if pstorage module can NOT be operated to read/write data into flash when BLE in connected/adv status?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i write 10kB of data to internal flash?</title><link>https://devzone.nordicsemi.com/thread/12740?ContentTypeID=1</link><pubDate>Mon, 08 Jun 2015 07:37:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c71e785-6b98-49b0-8329-82d069e1688b</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi kerem.
You can not halt the softdevice while debugging, so you can not single step past a sd_* function. However, in order to halt interrupts while you single step with the debugger, you need to set the PRIMASK to 1, which you can do when you have hit a breakpoint. Set the PRIMASK to 1 in the Registers window in Keil, expand &amp;quot;System&amp;quot;, and there you can set the PRIMASK.&lt;/p&gt;
&lt;p&gt;When you want to debug past a sd_* function, you simply must set a new breakpoint and restart the debugger.&lt;/p&gt;
&lt;p&gt;Anyhow, the &lt;a href="https://devzone.nordicsemi.com/tutorials/6/debugging-with-real-time-terminal/"&gt;RTT debugger in Keil&lt;/a&gt; is very useful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i write 10kB of data to internal flash?</title><link>https://devzone.nordicsemi.com/thread/12739?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2015 16:15:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39b40645-9c32-4938-9ca7-287f8020c659</guid><dc:creator>kerem</dc:creator><description>&lt;p&gt;Stefan thanks for the example code, I only modified the led definitions and board macro to run this on nrf51-dk (pca10028), I can&amp;#39;t manage to debug it. I get pstorage assert led on, I can catch a breakpoint but once I try to move from there I lose track of what&amp;#39;s going on(can&amp;#39;t read the op code more than once for example or can&amp;#39;t see any error thrown out). What would be a preffered approach to debug pstorage? Do you think this example could have problems with nrf51-dk? It&amp;#39;s same story with my own implementation I prepared looking at SDK doc though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i write 10kB of data to internal flash?</title><link>https://devzone.nordicsemi.com/thread/12738?ContentTypeID=1</link><pubDate>Sun, 03 May 2015 17:47:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff6fec0e-6413-4a92-a212-7e8a2ff71112</guid><dc:creator>wins</dc:creator><description>&lt;p&gt;@stefanbirnir thanks a lot for example, it solve everything!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i write 10kB of data to internal flash?</title><link>https://devzone.nordicsemi.com/thread/12737?ContentTypeID=1</link><pubDate>Fri, 27 Mar 2015 16:03:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e8312c3-9f30-4e38-b4b8-018b95af3d94</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;I lost track of this thread, sorry. I have updated my answer in order to identify what this example is compatible with. I suspect that you have a incompatible SDK, softdevice or hardware&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i write 10kB of data to internal flash?</title><link>https://devzone.nordicsemi.com/thread/12736?ContentTypeID=1</link><pubDate>Wed, 04 Mar 2015 12:36:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf1d0007-661e-4d1c-bc7d-bc5af5afe979</guid><dc:creator>frijj2k</dc:creator><description>&lt;p&gt;I have downloaded your app template and modified it to work with SDK 7.x and PCA10028... It compiles OK but I immediately get a hard fault upon execution.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know what I am doing wrong...  Would it be possible to post a Keil 5 project that uses SDK 7.x and works with the nRF51-DK dev kit (PCA10028) with SoftDevice S110?&lt;/p&gt;
&lt;p&gt;I have been bashing my head over various ways to get persistent storage to work over the last couple of weeks to no avail and there seems very little on the Internet regarding it.&lt;/p&gt;
&lt;p&gt;Any help or pointers in the right direction (other than the SDK documentation that I have been over-and-over) would be very much appreciated! :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i write 10kB of data to internal flash?</title><link>https://devzone.nordicsemi.com/thread/12735?ContentTypeID=1</link><pubDate>Sun, 26 Oct 2014 08:59:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e56738e-be93-4ace-a7a4-ee3af73c6660</guid><dc:creator>max</dc:creator><description>&lt;p&gt;With this solution i cannot write to Page n and then to page n+3&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i write 10kB of data to internal flash?</title><link>https://devzone.nordicsemi.com/thread/12734?ContentTypeID=1</link><pubDate>Tue, 30 Sep 2014 14:03:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99454a3e-adb5-49dd-b349-5082623b1adb</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;You can register for more than one page with a single pstorage_register command. Then you can write to more than one page, but the following rules apply:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;One pstorage_clear command can only clear data within the same page&lt;/li&gt;
&lt;li&gt;One pstorage_update command can only update data within the same page&lt;/li&gt;
&lt;li&gt;One pstorage_store command can only write data to a single block&lt;/li&gt;
&lt;li&gt;One pstorage_load command can only read data from a single block&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Also, when registering for more than a single page, registered blocks must be page aligned.&lt;/p&gt;
&lt;p&gt;E.g. registering 16 blocks each with 128 bytes is registering two whole pages since 128 * 16=2048. It is also page aligned since each page is 1024 bytes and 8*128=1024.&lt;/p&gt;
&lt;p&gt;To clear the two pages you must issue two clear commands:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; pstorage_clear(&amp;amp;block_0_handle, 1024);
 pstorage_clear(&amp;amp;block_8_handle, 1024);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Update 28.10.2014&lt;/strong&gt;
I include a pstorage sample code below. Hopefully you can use that code to overcome your issues. Report back with any complications.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_template_5F00_with_5F00_flash_5F00_operations.zip"&gt;ble_app_template_with_flash_operations.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update 27.3.2015&lt;/strong&gt;
The example above is tested with SDK 6.1, softdevice 7.0.0/7.1.0 and second revision nRF51 harware. It should also work with SDK 6.1, softdevice 7.1.0, and third revision nRF51 hardware. For further compatibility of different SDKs and softdevices, and to see the nRF51 hardware revision of the chip/board you have, see &lt;a href="https://www.nordicsemi.com/eng/nordic/Products/nRF51822/ATTN-51/41917"&gt;nRF51 compatibility matrix&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update 18.8.2015&lt;/strong&gt;
Below is a similar pstorage example made for SDK 8.1 and softdevice S110 8.0.0&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_template_5F00_with_5F00_pstorage_5F00_operations_5F00_nRF51DK.zip"&gt;ble_app_template_with_pstorage_operations_nRF51DK.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update 22.1.2016&lt;/strong&gt;
Below is another pstorage example for SDK 8.1 and softdevice S110 8.0.0. Tested on nRF51-DK board. This example writes pstorage result on UART (instead of Segger RTT as in example from 18.8.2015). You can see the result in a UART terminal as e.g. Realterm (38,400 BAUD; no parity; 1 stop bit; flow control enabled).&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_template_5F00_with_5F00_pstorage_5F00_SDK_5F00_8_5F00_1_5F00_0.zip"&gt;ble_app_template_with_pstorage_SDK_8_1_0.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update 1.9.2016&lt;/strong&gt;
Here is the same pstorage example for nRF5 SDK 11&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_template_5F00_with_5F00_pstorage_5F00_operations.zip"&gt;ble_app_template_with_pstorage_operations.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i write 10kB of data to internal flash?</title><link>https://devzone.nordicsemi.com/thread/12733?ContentTypeID=1</link><pubDate>Tue, 19 Aug 2014 06:11:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c42904ed-d3fd-43be-b279-25c8d8b92019</guid><dc:creator>max</dc:creator><description>&lt;p&gt;How i can move to next page?How it is managed with pstorage?
thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i write 10kB of data to internal flash?</title><link>https://devzone.nordicsemi.com/thread/12732?ContentTypeID=1</link><pubDate>Mon, 18 Aug 2014 21:30:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:262f69a5-6e8a-4fd2-a4fc-bead7a99bb54</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Yes, the size of a page is 0x400 bytes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i write 10kB of data to internal flash?</title><link>https://devzone.nordicsemi.com/thread/12731?ContentTypeID=1</link><pubDate>Mon, 18 Aug 2014 13:44:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ba334f8-4f0f-49cc-be92-1dbc4c03d475</guid><dc:creator>max</dc:creator><description>&lt;p&gt;The size of one page is 0x400 bytes?!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i write 10kB of data to internal flash?</title><link>https://devzone.nordicsemi.com/thread/12730?ContentTypeID=1</link><pubDate>Mon, 18 Aug 2014 13:42:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:095d647b-76e3-43bc-90a7-15b581e40281</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;Have you tried requesting pstorage module for more blocks with smaller size?&lt;/p&gt;
&lt;p&gt;Also, consider that writing to flash in loop is not good idea - product specification says flash endurance is about 20 000 write/erase cycles for each word.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>