<?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>nRF9160 non-secure app flash partition</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56397/nrf9160-non-secure-app-flash-partition</link><description>I am building an non-secure app and have a few questions. 
 1. Looking at the DTS file for pca10090 the partition table has both non-secure and secure slots for mcuboot. Totalling 4 slots. The way I understand it mcuboot treats the entire application</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Jan 2020 12:10:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56397/nrf9160-non-secure-app-flash-partition" /><item><title>RE: nRF9160 non-secure app flash partition</title><link>https://devzone.nordicsemi.com/thread/230841?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2020 12:10:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:491d5b0c-78d0-4c66-b4d5-cd665f674b51</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Take a look at the Multi-image build use guide, see &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_multi_image.html"&gt;this link&lt;/a&gt; and &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html"&gt;this link&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 non-secure app flash partition</title><link>https://devzone.nordicsemi.com/thread/229924?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2020 16:02:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dbf9cea-f148-4a6a-a10a-3eae8c1e28ca</guid><dc:creator>af2377</dc:creator><description>&lt;p&gt;Thank you.&lt;br /&gt;&lt;br /&gt;As follow-up, I noticed that the values in DTS are ignored by pm.yml and that different values are used, per the defines in KConfig for multi-image build positions. Why is that?!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 non-secure app flash partition</title><link>https://devzone.nordicsemi.com/thread/229819?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2020 12:08:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55f7e52e-a7bd-454d-b9ea-09e210b7dae7</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1) You need the 4 slots for the DTS, but I think MCUBoot stills treats SPM+APP as a single image, i.e. both is under &amp;quot;&lt;span&gt;mcuboot_primary_app&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;E.g. here is the rom_report for the aws_fota sample:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1579519917408v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;2)&lt;/p&gt;
[quote userid="14033" url="~/f/nordic-q-a/56397/nrf9160-non-secure-app-flash-partition"]Can we add our own services?[/quote]
&lt;p&gt;Yes.&lt;/p&gt;
[quote userid="14033" url="~/f/nordic-q-a/56397/nrf9160-non-secure-app-flash-partition"]Can we reduce the 64K RAM it needs and free some of it up for the application?[/quote]
&lt;p&gt;You might be able to reduce it a bit, but as far as I know&amp;nbsp;it&amp;#39;s not only SPM that uses this RAM section, the MCUBoot also uses this section.&lt;/p&gt;
&lt;p&gt;3)&lt;/p&gt;
[quote userid="14033" url="~/f/nordic-q-a/56397/nrf9160-non-secure-app-flash-partition"]In the latest bsdlib this is far less than the 128KB that is actually allocated for it in the dts. Is this something different? Can we reduce that 128KB to be closer to this value without any issues?[/quote]
&lt;p&gt;BSDlib does not use 128K RAM. By default 64K RAM is allocated for it(&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-zephyr/blob/master/boards/arm/nrf9160_pca10090/nrf9160_pca10090_partition_conf.dts#L52"&gt;sram0_bsd&lt;/a&gt;). Looking at the BSDlib documentation, at &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/bsdlib/doc/ug_bsdlib_porting_os.html#memory"&gt;this link&lt;/a&gt;, it&amp;#39;s mentioned that&amp;nbsp;the&amp;nbsp;&lt;span&gt;leftover memory in the seventh block (8160 bytes, starting at address 0x2001 c020) is configured as non-secure, but it can be used by the application.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>