<?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>noinit region of RAM also takes up Flash space</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112695/noinit-region-of-ram-also-takes-up-flash-space</link><description>Hi, 
 
 I&amp;#39;m working with a nRF54L15 within the nRF Connect SDK on Zephyr. I need an array which retains its content through soft resets, so in another RAM section than the usual bss/data. I&amp;#39;m familiar with doing this on projects where I have full control</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Jul 2024 14:30:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112695/noinit-region-of-ram-also-takes-up-flash-space" /><item><title>RE: noinit region of RAM also takes up Flash space</title><link>https://devzone.nordicsemi.com/thread/492494?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2024 14:30:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da6d7762-01a4-4e22-835f-0daecdcfcccf</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi tf_tdm,&lt;/p&gt;
[quote user="tf_tdm"]Could it be related with the nRF Connect SDK version ? I&amp;#39;m on 2.6.99-cs2 , although I just saw in the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc-legacy/latest/nrf/device_guides/working_with_nrf/nrf54l/nrf54l15_gs.html"&gt;getting started guide&lt;/a&gt; that -cs1 is the one recommended. Or should we take a more recent version, e.g. one of the 2.7.0 tags ?[/quote]
&lt;p&gt;It&amp;#39;s hard to tell for sure, but my hunch is that the version doesn&amp;#39;t matter.&amp;nbsp;I would try to look at something else first, but you&amp;nbsp;can explore that direction if you wish.&lt;/p&gt;
[quote user="tf_tdm"]Regarding the setup, we build using &lt;a href="https://github.com/NordicPlayground/nrf-docker"&gt;nrf-docker&lt;/a&gt; with very little modifications, &lt;code&gt;sdk_nrf_version=v2.6.99-cs2&lt;/code&gt; as parameter and the toolchain 2.6.0. The Dockerfile is based on nrf-docker hash &lt;code&gt;8ffb5e32e549c205834ffcc976df615f96715a75 (still the latest commit of the main branch at the time I&amp;#39;m writing this)&lt;/code&gt;[/quote]
&lt;p&gt;I am honestly unfamiliar with&amp;nbsp;the Docker setup, and I worry that for me to learn it and then set up will take significant amount of time, more so during this busy summertime.&lt;/p&gt;
&lt;p&gt;Could you please try building my project on your setup to see if the issue is reproduced?&amp;nbsp;&lt;br /&gt;Here is it:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/hello_5F00_world_5F00_261_5F00_01.zip"&gt;devzone.nordicsemi.com/.../hello_5F00_world_5F00_261_5F00_01.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If not, could you create a minimal setup where you reproduce the issue and send it to me?&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: noinit region of RAM also takes up Flash space</title><link>https://devzone.nordicsemi.com/thread/492199?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2024 09:22:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8200cfe2-1a08-4f57-8c9a-7025ff4facbb</guid><dc:creator>tf_tdm</dc:creator><description>&lt;p&gt;Hi Hieu, thanks for looking into this. Could it be related with the nRF Connect SDK version ? I&amp;#39;m on 2.6.99-cs2 , although I just saw in the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc-legacy/latest/nrf/device_guides/working_with_nrf/nrf54l/nrf54l15_gs.html"&gt;getting started guide&lt;/a&gt; that -cs1 is the one recommended. Or should we take a more recent version, e.g. one of the 2.7.0 tags ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regarding the setup, we build using &lt;a href="https://github.com/NordicPlayground/nrf-docker"&gt;nrf-docker&lt;/a&gt; with very little modifications, &lt;code&gt;sdk_nrf_version=v2.6.99-cs2&lt;/code&gt; as parameter and the toolchain 2.6.0. The Dockerfile is based on nrf-docker hash &lt;code data-sourcepos="15:238-15:277"&gt;8ffb5e32e549c205834ffcc976df615f96715a75 (still the latest commit of the main branch at the time I&amp;#39;m writing this)&lt;br /&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: noinit region of RAM also takes up Flash space</title><link>https://devzone.nordicsemi.com/thread/492095?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2024 14:20:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dcca8ea-b81f-43d3-877c-93806b58581f</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi tf_tdm,&lt;/p&gt;
&lt;p&gt;I tried to do&amp;nbsp;replicate your issue myself with Hello World sample, but I cannot reproduce it. The variables don&amp;#39;t take space on FLASH as expected.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2024_2D00_07_2D00_03-161931.png" /&gt;&lt;/p&gt;
&lt;p&gt;I tried to have another array with initialized value but still .noinit, but runs into some error with the linker trying to put it into bss. I didn&amp;#39;t try to further to make it work.&lt;/p&gt;
&lt;p&gt;Could you please give more details about your setup so that I can reproduce it and try to find out what is wrong?&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>