<?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>confusion on boot loader settings</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/3857/confusion-on-boot-loader-settings</link><description>I want to merge soft device, application and boot loader in order to improve efficiency for factory. I searched relative topics in this forum and found something useful. At last I got a solution. But I still have confusion on it. It is said that declaration</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 20 Sep 2014 02:31:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/3857/confusion-on-boot-loader-settings" /><item><title>RE: confusion on boot loader settings</title><link>https://devzone.nordicsemi.com/thread/13902?ContentTypeID=1</link><pubDate>Sat, 20 Sep 2014 02:31:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27b6ad02-0f82-4a33-b8ad-920f47d9c54a</guid><dc:creator>Ben.Qin</dc:creator><description>&lt;p&gt;Thank you, Håkon Alseth ! Your way might work well. I set IROM1 from 0x3B000, size 0x4800 and IRAM1 from 0x20002000, size 0x2000. It compiled properly. My concern is the reason why I got m_boot_settings[] incorrectly if it is initialized without &amp;quot;const&amp;quot; restraint.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: confusion on boot loader settings</title><link>https://devzone.nordicsemi.com/thread/13901?ContentTypeID=1</link><pubDate>Fri, 19 Sep 2014 11:52:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a51f5772-19e2-4e1e-9947-9827e2e9e86b</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It seems that you found the solution to your issue, and you&amp;#39;re verifying that setting the array m_boot_settings[] as a const is ok. I did a quick check, and the generated .hex is equal.&lt;/p&gt;
&lt;p&gt;Since this is an array that is located in flash, declaring the array is &amp;quot;const&amp;quot; is the proper way.
However, there is an issue with the Keil project settings when setting the array to &amp;quot;BANK_VALID_APP&amp;quot;. The Keil linker seems to be a bit confused and complains that you&amp;#39;re exceeding the IROM size.&lt;/p&gt;
&lt;p&gt;Workaround:
We have set the size of the image incorrectly.
If you set the IROM1 Size to &amp;quot;0x3C00&amp;quot; it should compile properly:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/dfu_5F00_iromsize.png" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;Cheers,
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>