<?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>Mesh SDK - NRF52840 flash page issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42632/mesh-sdk---nrf52840-flash-page-issue</link><description>I am setting up a programming script for our devices. Memory layout is as follows: 
 
 
 
 
 Address 
 Size 
 
 
 
 MBR+SoftDevice 
 0x00000 
 0x26000 
 
 
 
 Application 
 0x26000 
 0x66000 
 
 
 
 DFU Swap Space 
 0x8C000 
 0x66000 
 
 
 
 Persistent</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 May 2019 16:36:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42632/mesh-sdk---nrf52840-flash-page-issue" /><item><title>RE: Mesh SDK - NRF52840 flash page issue</title><link>https://devzone.nordicsemi.com/thread/190093?ContentTypeID=1</link><pubDate>Thu, 30 May 2019 16:36:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:169dae1b-7144-4a0f-967c-8b7b04a83241</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;I have reserved 5 pages, which I believe is the minimum.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Address&lt;/td&gt;
&lt;td&gt;Size&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MBR+SoftDevice&lt;/td&gt;
&lt;td&gt;0x00000&lt;/td&gt;
&lt;td&gt;0x26000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;em&gt;&amp;lt;your stuff here&amp;gt;&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;&lt;em&gt;0x26000&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;&lt;em&gt;0x4C000&lt;/em&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Nordic Mesh Info&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0x72000&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0x5000&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MBR&lt;/td&gt;
&lt;td&gt;0x77000&lt;/td&gt;
&lt;td&gt;0x1000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nordic Bootloader&lt;/td&gt;
&lt;td&gt;0x78000&lt;/td&gt;
&lt;td&gt;0x6000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bootloader Settings&lt;/td&gt;
&lt;td&gt;0x7E000&lt;/td&gt;
&lt;td&gt;0x2000&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh SDK - NRF52840 flash page issue</title><link>https://devzone.nordicsemi.com/thread/190090?ContentTypeID=1</link><pubDate>Thu, 30 May 2019 15:43:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb32eedb-1520-4807-962a-f25445ff1432</guid><dc:creator>bart</dc:creator><description>&lt;p&gt;I&amp;#39;m also searching for how many pages to reserve for the mesh, but the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v3.1.0/md_doc_getting_started_how_to_nordicSDK.html"&gt;documentation&lt;/a&gt; still says: &lt;em&gt;2 + ACCESS_FLASH_PAGE_COUNT + DSM_FLASH_PAGE_COUNT&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;So can anyone tell us the actual value?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh SDK - NRF52840 flash page issue</title><link>https://devzone.nordicsemi.com/thread/170346?ContentTypeID=1</link><pubDate>Mon, 11 Feb 2019 12:39:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20806bea-e0e5-4522-a565-de471710880c</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Yes, it seems that part is outdated. This has been reported and we will fix this documentation error as soon as possible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh SDK - NRF52840 flash page issue</title><link>https://devzone.nordicsemi.com/thread/169597?ContentTypeID=1</link><pubDate>Tue, 05 Feb 2019 18:27:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e20378d5-bca5-42c4-91a5-38de103c9d9a</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;Thanks, i was referencing&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/36670/flash-memory-layout-for-nrf52832-with-mesh-and-bootloader"&gt; a previous forum post,&lt;/a&gt; which is why i thought MBR was &lt;strong&gt;after&lt;/strong&gt; the bootloader:&lt;br /&gt;&lt;em&gt;&amp;quot;Yes the bootloader uses the space at the end for MBR and bootloader setting.&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Looking at the bootloader code, I see that it sets MBR in the UICR to the page&amp;nbsp;&lt;strong&gt;before&lt;/strong&gt;.&lt;br /&gt;The bootloader is using 2 pages at the end for info and bank info.&lt;/p&gt;
&lt;p&gt;You previously mentioned i was looking at outdated information.&amp;nbsp; Was that for the&amp;nbsp;&lt;em&gt;flash_manager.md&lt;b&gt;?&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;/b&gt;&lt;/em&gt;Is the following equation outdated:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;&lt;b&gt;x = 2 + ACCESS_FLASH_PAGE_COUNT + DSM_FLASH_PAGE_COUNT&lt;br /&gt;&lt;/b&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Where can i find the &lt;strong&gt;current&lt;/strong&gt; documentation for configuring mesh flash usage?&lt;br /&gt;I understand that the mesh components are using 5 pages, starting at 0xF2000, but I would like to understand how my configuration is driving that.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh SDK - NRF52840 flash page issue</title><link>https://devzone.nordicsemi.com/thread/169354?ContentTypeID=1</link><pubDate>Mon, 04 Feb 2019 15:37:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72d13885-888d-4b9a-b046-b83d6ea839c7</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;You can place the MBR wherever you want, but the mesh bootloader put it right before the bootloader starts.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh SDK - NRF52840 flash page issue</title><link>https://devzone.nordicsemi.com/thread/169117?ContentTypeID=1</link><pubDate>Fri, 01 Feb 2019 17:48:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98f42bfb-137b-484c-aee3-e2c332c01dde</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;I thought the MBR and bootloader settings were the last two pages in flash, FE000-FF000?&amp;nbsp; Has this changed?&lt;/p&gt;
&lt;p&gt;Note that this is for the NRF52840 device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh SDK - NRF52840 flash page issue</title><link>https://devzone.nordicsemi.com/thread/169104?ContentTypeID=1</link><pubDate>Fri, 01 Feb 2019 15:11:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98346533-a98b-4c0c-abb7-f3420ebf4477</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the late response.&lt;/p&gt;
&lt;p&gt;It seems like you found some outdated documentation, I have reported this internally. It is the MBR that are using 0xF7000. You can have a look at the &lt;a href="https://www.nordicsemi.com/DocLib/Content/SoftDevice_Spec/s132/latest/SDS/s1xx/mbr_bootloader/mbr" rel="noopener noreferrer" target="_blank"&gt;SDS&lt;/a&gt;&amp;nbsp;for more information. The extra page you are seeing are for mesh_config.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh SDK - NRF52840 flash page issue</title><link>https://devzone.nordicsemi.com/thread/168775?ContentTypeID=1</link><pubDate>Wed, 30 Jan 2019 22:52:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:263899c0-3f47-4fac-8d51-9c8abbf77280</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;can you offer any additional comments on this? thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh SDK - NRF52840 flash page issue</title><link>https://devzone.nordicsemi.com/thread/167471?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2019 19:25:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cb39a34-d8b9-44c3-b838-34b721e5d879</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;In &lt;em&gt;mesh_sdk/doc/how_to_nordicSDK.md&lt;/em&gt; there is the following information:&lt;br /&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="markdown"&gt;Furthermore, when writing to flash, ensure to not write or erase areas utilized by the mesh stack
modules and the bootloader (if present). By default, the mesh modules utilize the last `x` number of
pages before the start of the bootloader, if present, or the last `x` number of pages of the
available flash on the Nordic SoC.
The value of `x` depends on the configuration of the mesh stack and can be calculated by:

    x = 2 + ACCESS_FLASH_PAGE_COUNT + DSM_FLASH_PAGE_COUNT&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Based on my mesh sdk configuration, &lt;em&gt;x = 4&lt;/em&gt;, which is why I have allocated 4 pages in my layout.&lt;/p&gt;
&lt;p&gt;In&amp;nbsp;&lt;em&gt;mesh_sdk/doc/libraries/flash_manager.md&lt;/em&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;there is the following information:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;By default, &lt;strong&gt;the defrag recovery page is the last page before the bootloader starts&lt;/strong&gt;, or the last page in device flash if the bootloader is not present (determined by the `UICR-&amp;gt;BOOTLOADERADDR` register). This location can be overriden by defining `FLASH_MANAGER_RECOVERY_PAGE` in the compiler defines. Note that the recovery page should be the same page in every iteration of the firmware, to avoid loss of backed up recovery data.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;So, this recovery page is&amp;nbsp;&lt;strong&gt;not&lt;/strong&gt; part of the 4 pages mentioned earlier in&amp;nbsp;&lt;em&gt;how_to_nordicSDK.md&lt;/em&gt;?&lt;br /&gt;Also, I expect the recovery page to be at &lt;strong&gt;0xF7000&lt;/strong&gt; not 0xF6000, since&amp;nbsp;the bootloader begins at 0xF8000.&amp;nbsp; If the recovery page is &lt;em&gt;actually&lt;/em&gt; at 0xF6000, &lt;strong&gt;what is&amp;nbsp;using 0xF7000&lt;/strong&gt;?&lt;/p&gt;
&lt;p&gt;I have added the call to&amp;nbsp;&lt;span class="s1"&gt;&lt;em&gt;mesh_stack_persistence_flash_usage&lt;/em&gt;, and it returns the following values:&amp;nbsp;start(&lt;strong&gt;0xF2000&lt;/strong&gt;), size(&lt;strong&gt;0x5000&lt;/strong&gt;).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="s1"&gt;So&amp;nbsp;&lt;em&gt;5 pages&amp;nbsp;&lt;/em&gt;are being used by SDK components.&amp;nbsp; &lt;strong&gt;What in the configuration accounts for the extra page?&lt;/strong&gt; &lt;br /&gt;I expected it to use 4 pages based on the information in&amp;nbsp;&lt;em&gt;how_to_nordicSDK.md&lt;/em&gt;&lt;strong&gt;.&amp;nbsp;&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh SDK - NRF52840 flash page issue</title><link>https://devzone.nordicsemi.com/thread/167408?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2019 14:33:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b8cd032-66bc-481a-a567-e46b79f6c28e</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;You seem to have missed mesh_config. You can use mesh_stack_persistence_flash_usage() to get out the actual memory usage of the mesh.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh SDK - NRF52840 flash page issue</title><link>https://devzone.nordicsemi.com/thread/166582?ContentTypeID=1</link><pubDate>Fri, 18 Jan 2019 17:29:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6634a1f-1d5c-4c8e-95ac-1c1622741b80</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;&lt;strong&gt;Mesh SDK v3.1.0&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;nRF5 SDK v15.2.0&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh SDK - NRF52840 flash page issue</title><link>https://devzone.nordicsemi.com/thread/166533?ContentTypeID=1</link><pubDate>Fri, 18 Jan 2019 15:05:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4921bfc7-a175-49bf-952e-642e83457f66</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Which Mesh SDK version are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh SDK - NRF52840 flash page issue</title><link>https://devzone.nordicsemi.com/thread/166372?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2019 21:44:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9498743e-dfa9-4c73-bf1a-1c5e1d819c2b</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;I see from&amp;nbsp;/doc/libraries/flash_manager.md that this (&lt;em&gt;08 04 10 10 01 00&lt;/em&gt;&lt;span&gt;&lt;em&gt;&amp;nbsp;FF FF&lt;/em&gt;)&lt;/span&gt; is the flash manager metadata header.&lt;/p&gt;
&lt;p&gt;Based on the other documents, I should only need 4 pages for the mesh info (which is what I have reserved).&lt;/p&gt;
&lt;p&gt;However, 2 extra pages are being consumed, F2000 and F3000.&amp;nbsp; Where are these 2 extra pages coming from?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In this 52840 device, it is not a problem to adjust memory layout since there is plenty of flash space.&amp;nbsp; In our 52832 device however,&amp;nbsp;losing 2 more pages&amp;nbsp;makes things really tight.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>