<?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>NCS 2.1 + MCUboot + nRF5340 overwriting .noinit areas</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92688/ncs-2-1-mcuboot-nrf5340-overwriting-noinit-areas</link><description>In NCS 2.1 with MCUboot on a nRF5340, a huge 256k area is allocated into .bss (see below) called &amp;quot;mock_flash&amp;quot;. 
 
 unfortunately this writes far enough into RAM that it overwrites some areas we are trying to keep .noinit. 
 
 Any chance this can instead</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Oct 2022 13:24:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92688/ncs-2-1-mcuboot-nrf5340-overwriting-noinit-areas" /><item><title>RE: NCS 2.1 + MCUboot + nRF5340 overwriting .noinit areas</title><link>https://devzone.nordicsemi.com/thread/390043?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2022 13:24:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:281bc626-5a71-448f-8c4d-9f44811abf03</guid><dc:creator>amo-inv</dc:creator><description>&lt;p&gt;As far as I understand (but I didn&amp;#39;t dig into it), it is used by mcuboot for net core upgrade.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 2.1 + MCUboot + nRF5340 overwriting .noinit areas</title><link>https://devzone.nordicsemi.com/thread/390042?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2022 13:24:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f84fe19-516c-4688-8a89-17ec8509c46c</guid><dc:creator>amo-inv</dc:creator><description>&lt;p&gt;As far as I understand (but I didn&amp;#39;t dig into it), it is used by mcuboot for net core upgrade.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 2.1 + MCUboot + nRF5340 overwriting .noinit areas</title><link>https://devzone.nordicsemi.com/thread/390039?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2022 13:21:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64ca679a-c781-4522-9d97-da2fc38713c0</guid><dc:creator>dstude</dc:creator><description>&lt;p&gt;Thank you.&amp;nbsp; As you noted, can you please let me know what the functionality of the flash simulator is - or what is lost by disabling it?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also my comment still stands - if this has some critical function and needs to be allocated, I&amp;#39;d like to request it is done with .noinit - outside the .bss - also to avoid such a huge RAM initialization.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 2.1 + MCUboot + nRF5340 overwriting .noinit areas</title><link>https://devzone.nordicsemi.com/thread/390037?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2022 13:20:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f7ccbcd-09e7-4d61-9846-0e1e8f03afed</guid><dc:creator>amo-inv</dc:creator><description>&lt;p&gt;Hello.&lt;/p&gt;
&lt;p&gt;The 256KB buffer is used by Flash simulator driver, automatically enabled by board dts file when a &amp;#39;flash_sim&amp;#39; is defined. The flash simulator seem to have no use except for mcuboot (to be confirmed), so you can disable it in your project configuration with&lt;/p&gt;
&lt;p&gt;CONFIG_FLASH_SIMULATOR=n&lt;/p&gt;
&lt;p&gt;You will save 256KB of RAM...&lt;/p&gt;
&lt;p&gt;Arnaud.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>