<?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>Why is SPM image so large (64 KB)?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91051/why-is-spm-image-so-large-64-kb</link><description>While looking at ways to shrink the dfu image of our nrf9160 application, I was struck by how large the default SPM image is. Here&amp;#39;s the file size breakdown: 
 Final app_update.bin = 221KB with 
 
 Main NS application including MCU boot 157KB (MCU Boot</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Aug 2022 10:42:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91051/why-is-spm-image-so-large-64-kb" /><item><title>RE: Why is SPM image so large (64 KB)?</title><link>https://devzone.nordicsemi.com/thread/381976?ContentTypeID=1</link><pubDate>Wed, 17 Aug 2022 10:42:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72e8301f-d0cd-434d-9b24-cda56493e755</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You could technically get spm down to 32k, but that has a cost of removing the secure services library (and all the depending libraries, like cc310), and thus the RNG function, which is a non-secure callable function. This sources the entropy library, and thus the rand32 library (function &amp;quot;sys_rand32_get&amp;quot;), which is used in most nRF9160 application&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>