<?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>Flash Memory Layout for nrf52832 with Mesh and Bootloader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36670/flash-memory-layout-for-nrf52832-with-mesh-and-bootloader</link><description>I am transitioning a project from normal BLE to BLE mesh. 
 Flash space might be an issue. 
 Here is the flash layout I have so far. Purple is for nordic items and yellow is for my items. 
 
 
 
 SoftDevice S132 6.0 
 
 
 Usage 
 Address 
 Size 
 
 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 Jul 2018 14:37:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36670/flash-memory-layout-for-nrf52832-with-mesh-and-bootloader" /><item><title>RE: Flash Memory Layout for nrf52832 with Mesh and Bootloader</title><link>https://devzone.nordicsemi.com/thread/141363?ContentTypeID=1</link><pubDate>Wed, 25 Jul 2018 14:37:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bcc9f44-661f-4c60-8e9e-09752162770f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Jay,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- Yes the bootloader uses the space at the end for MBR and bootloader setting.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- Yes, the mesh stack requires flash to store device state manager data, network state data, access state data. You can have a look at &lt;a href="https://raw.githubusercontent.com/NordicSemiconductor/nRF5-SDK-for-Mesh/b7384b5a500da2357591679f95d53ca175fe1c80/doc/getting_started/how_to_nordicSDK.md"&gt;this&amp;nbsp;document.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Usually the flash manager put the defrag page right after the bootloader. Please have a look at flash_manager_defrag_init()&lt;/p&gt;
&lt;p&gt;You need to configure&amp;nbsp;FLASH_MANAGER_RECOVERY_PAGE_OFFSET_PAGES to give space for your application plus the fstorage if you use fstorage.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>