<?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>Question about flash placement in some NRF52840 examples</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79911/question-about-flash-placement-in-some-nrf52840-examples</link><description>Hi Devzone, 
 I have noticed that some examples, like &amp;quot;ble_app_hts&amp;quot; that has strange flash placement like this figure: 
 
 There are 3 partitions, each is 8 bytes in top of flash. That 3 partitions is where bootloader, mbr parameters storage and bootloader</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Sep 2021 11:47:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79911/question-about-flash-placement-in-some-nrf52840-examples" /><item><title>RE: Question about flash placement in some NRF52840 examples</title><link>https://devzone.nordicsemi.com/thread/330830?ContentTypeID=1</link><pubDate>Thu, 23 Sep 2021 11:47:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:399c6be5-c233-4994-ba3f-fdeb54529b90</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Unfortunately you cannot rely on the Programmer app&amp;#39;s description of what type of information is located at various locations in flash. As you are using the&amp;nbsp;ble_app_hts example application here without bootloader, the last three pages are used for FDS. And that means that when the FDS pages are initialized by writing a header to the beginning of each page, and that is why you see each page having 8 bytes of data.&lt;/p&gt;
[quote user=""]Update: Does peer_manager_init() cause this?[/quote]
&lt;p&gt;Yes. (Initialization of FDS is part of initialization of the peer manager.)&lt;/p&gt;
[quote user=""]Additional question: I see that in some example, when define FLASH_SIZE in linker (Segger embedded studio), it takes no effect because I don&amp;#39;t see this macro in flash_placement.xml.&amp;nbsp;Correct me if I&amp;#39;m wrong, thanks.[/quote]
&lt;p&gt;You are right. Unfortunately it has no use in the example projects. You will need to adjust&amp;nbsp;FLASH_PH_SIZE to adjust the&amp;nbsp;flash size.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>