<?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>section `.gnu.sgstubs&amp;#39; will not fit in region `FLASH&amp;#39; in v1.5.1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76141/section-gnu-sgstubs-will-not-fit-in-region-flash-in-v1-5-1</link><description>ncs/zephyr/cmake/compiler/gcc/compiler_flags.cmake 
 #set_compiler_property(PROPERTY optimization_size -Os) set_compiler_property(PROPERTY optimization_size -Og) 
 ////////// 1&amp;gt; FAILED: : &amp;amp;&amp;amp; ccache /opt/gcc-arm-none-eabi-9-2019-q4-major/bin/arm-none-eabi</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Jun 2021 03:09:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76141/section-gnu-sgstubs-will-not-fit-in-region-flash-in-v1-5-1" /><item><title>RE: section `.gnu.sgstubs' will not fit in region `FLASH' in v1.5.1</title><link>https://devzone.nordicsemi.com/thread/314316?ContentTypeID=1</link><pubDate>Wed, 09 Jun 2021 03:09:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efb83e86-464d-4b3c-8148-295108143182</guid><dc:creator>fatalfeel</dc:creator><description>&lt;p&gt;Got it~&lt;br /&gt;~ncs/nrf/subsys/spm/Kconfig&lt;br /&gt;&lt;br /&gt;config PM_PARTITION_SIZE_SPM&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;hex &amp;quot;Flash space reserved for SPM&amp;quot;&lt;br /&gt;###&amp;nbsp;&amp;nbsp; &amp;nbsp;default 0xc000 if SPM_SERVICE_RNG # To build correctly with MCUboot.&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;default 0x10000 if SPM_SERVICE_RNG # by stone&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;default 0x8000&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;help&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; Flash space set aside for the SPM. Note, the name&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; of this configuration needs to match the requirements set by the&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; script &amp;#39;partition_manager.py&amp;#39;. See pm.yml.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: section `.gnu.sgstubs' will not fit in region `FLASH' in v1.5.1</title><link>https://devzone.nordicsemi.com/thread/314280?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 16:58:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94024918-80a1-4056-94f5-61150dc2cef4</guid><dc:creator>fatalfeel</dc:creator><description>&lt;p&gt;WHERE CAN I&amp;nbsp; ADJUST THE SPM SIZE TO 64K&amp;nbsp; NOT USE PM_STATIC.YML&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: section `.gnu.sgstubs' will not fit in region `FLASH' in v1.5.1</title><link>https://devzone.nordicsemi.com/thread/314214?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 12:42:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab3a8332-7471-4939-bbf2-af0e5c40a5d3</guid><dc:creator>fatalfeel</dc:creator><description>&lt;p&gt;Reason&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;0x18560+0x7aa0-0x1c200 = 3e00 =&amp;nbsp;&lt;span&gt;15872&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;ncs/zephyr/samples/hello_world/build_nrf9160dk_nrf9160ns/partitions.yml&lt;br /&gt;spm:&lt;br /&gt; address: 0x10200&lt;br /&gt; end_address: 0x1c200&lt;br /&gt; inside:&lt;br /&gt; - mcuboot_primary_app&lt;br /&gt; placement:&lt;br /&gt; before:&lt;br /&gt; - app&lt;br /&gt; region: flash_primary&lt;br /&gt; size: 0xc000&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;~ncs/zephyr/samples/hello_world/build_nrf9160dk_nrf9160ns/spm/zephyr/zephyr_prebuilt.map&lt;br /&gt;.gnu.sgstubs 0x0000000000018560 0x7aa0&lt;br /&gt; 0x000000000001ffe0 . = ((ALIGN (0x8000) - MAX (0x20, (0x1 &amp;lt;&amp;lt; LOG2CEIL (__sg_size)))) + (ABSOLUTE (.) &amp;gt; (ALIGN (0x8000) - MAX (0x20, (0x1 &amp;lt;&amp;lt; LOG2CEIL (__sg_size)))))?0x8000:0x0)&lt;br /&gt; *fill* 0x0000000000018560 0x7a80 &lt;br /&gt; 0x000000000001ffe0 __sg_start = .&lt;br /&gt; .gnu.sgstubs.__stub&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>