<?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>Using flash pages manually</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15984/using-flash-pages-manually</link><description>Hi, 
 I would like to have one page of flash mapped manually to store information critical for the device. Let&amp;#39;s assume I do not trust data preserving by DFU or there is a situation of PSTORAGE corruption after some messed up DFU. 
 Is there a way to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Aug 2016 12:54:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15984/using-flash-pages-manually" /><item><title>RE: Using flash pages manually</title><link>https://devzone.nordicsemi.com/thread/60972?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2016 12:54:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:002a5a05-d840-4df8-8e51-ec0b60daa674</guid><dc:creator>OskarM</dc:creator><description>&lt;p&gt;I hoped for a really constant (hard coded) flash address. This solution puts on a programmer task of keeping pstorage pages under control and awareness of bootloader size (so the whole area doesn&amp;#39;t move). But will have to live with that I assume. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using flash pages manually</title><link>https://devzone.nordicsemi.com/thread/60971?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2016 12:42:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1706dd37-1098-4628-aaf4-52d964dafec5</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;The area is also used by pstorage, but you can allocate as much as you need. You should consider both the number of pages needed by pstorage and needed by your application directly, and reserve the sum. Remember that you need to reserve at least two pages for pstorage (&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/lib_pstorage.html?cp=6_0_0_3_19_1#pstorage_memory_layout"&gt;one swap page&lt;/a&gt;). That means that you need to reserve at least three pages, possibly more, depending on your application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using flash pages manually</title><link>https://devzone.nordicsemi.com/thread/60970?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2016 12:28:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ab40d4d-b49d-420f-9899-0d6c4c48de30</guid><dc:creator>OskarM</dc:creator><description>&lt;p&gt;Is this area not connected with pstorage? I mean if I reserve here 2 pages and use pstorage of X blocks, then this adds up?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using flash pages manually</title><link>https://devzone.nordicsemi.com/thread/60969?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2016 11:24:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63cf981d-c069-4f44-ac29-8c3a22737bac</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;You can reserve flash pages in the memory area between the application and the bootloader, right before the beginning of the bootloader. You can access this flash memory, but remember that it is still a protected resource by the SoftDevice, so you must use &lt;code&gt;sd_flash_*()&lt;/code&gt; calls to access it. The &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/bledfu_memory.html?cp=6_0_0_4_2_3_3"&gt;Memory layout&lt;/a&gt; section of the bootloader documentation, and particularily &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/bledfu_memory_appdata.html?cp=6_0_0_4_2_3_3_3"&gt;Preserving application data&lt;/a&gt; explains the details.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>