<?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>Zephyr/NCS too large memory footprint</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116428/zephyr-ncs-too-large-memory-footprint</link><description>Hi dear forum members, 
 I’m working on a firmware project for the NRF52840 that utilizes BLE, DFU, I2C, WDT, some cryptographic libraries, and a few sensor libraries. However, despite having 1MB of flash memory, I’m hitting the limits of this configuration</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Jan 2026 19:45:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116428/zephyr-ncs-too-large-memory-footprint" /><item><title>RE: Zephyr/NCS too large memory footprint</title><link>https://devzone.nordicsemi.com/thread/559200?ContentTypeID=1</link><pubDate>Tue, 20 Jan 2026 19:45:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:baa1776e-edc6-440b-b5c4-49ab38fe520a</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Check generated config, you might have&amp;nbsp;CONFIG_BT_CENTRAL turned on by accident (or default). The combined BTLE softdevice is a lot bigger than peripherial only.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr/NCS too large memory footprint</title><link>https://devzone.nordicsemi.com/thread/559192?ContentTypeID=1</link><pubDate>Tue, 20 Jan 2026 16:12:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06a03116-00be-4ebe-9b01-dd0dd9b023a5</guid><dc:creator>David M. M.</dc:creator><description>&lt;p&gt;The last version of NCS 3.2.1, &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/126561/migration-from-ncs-3-0-2-to-3-2-1-device-tree-and-usb-problems/559191"&gt;increase again the footprint of Zephyr&lt;/a&gt;. It seems that some features may not fit some nrf52 chips. Unfortunately, Nordic does not seem to encourage the use of the HAL (NRFX) which could potentially be a solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr/NCS too large memory footprint</title><link>https://devzone.nordicsemi.com/thread/510760?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2024 16:02:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a362c1c6-8bfa-4b6a-81db-fa86dad7131b</guid><dc:creator>Sigurd</dc:creator><description>[quote user="icedfluid"]Is there really no way to achieve a substantial reduction in the footprint of Zephyr/NCS and the libraries used during the build process?[/quote]
&lt;p&gt;Depends on your application. Use e.g. the&amp;nbsp;Memory report UI to identity what is taking a lot of flash.&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/nrf-connect-vscode/page/reference/ui_memory_report.html"&gt;https://docs.nordicsemi.com/bundle/nrf-connect-vscode/page/reference/ui_memory_report.html&lt;/a&gt;&amp;nbsp;, Also, e.g. the&amp;nbsp;&amp;quot;No paths&amp;quot; at 120.12 kB&amp;nbsp;should be investigated to see if there is something there you can reduce.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr/NCS too large memory footprint</title><link>https://devzone.nordicsemi.com/thread/510713?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2024 13:53:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc05e235-6aa6-4b0e-a9ba-2bd06a19c862</guid><dc:creator>icedfluid</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/sigurdon"&gt;Sigurd&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ve already tried many options from &lt;code&gt;prj_minimal.conf&lt;/code&gt;. The most recent ones I tested reduced the footprint by only a few hundred bytes. Unfortunately, that&amp;rsquo;s not a significant improvement and, in my opinion, clearly not enough.&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-from-2024_2D00_11_2D00_15-14_2D00_43_2D00_25.png" /&gt;&lt;/p&gt;
&lt;p&gt;Even with all &lt;code&gt;printk&lt;/code&gt; and logs disabled, the full firmware archive occupies 86% of a single flash slot. With debug logs enabled, it jumps to 96%.&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-from-2024_2D00_11_2D00_15-14_2D00_43_2D00_48.png" /&gt;&lt;/p&gt;
&lt;p&gt;Is there really no way to achieve a substantial reduction in the footprint of Zephyr/NCS and the libraries used during the build process?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr/NCS too large memory footprint</title><link>https://devzone.nordicsemi.com/thread/510665?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2024 11:46:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73232a2e-016c-49aa-adf1-fbd228ec2584</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;I recommend having a look at this guide on&amp;nbsp;Memory footprint optimization:&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://docs.nordicsemi.com/bundle/ncs-2.6.2/page/nrf/test_and_optimize/optimizing/memory.html"&gt;https://docs.nordicsemi.com/bundle/ncs-2.6.2/page/nrf/test_and_optimize/optimizing/memory.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Also, as mentioned in the guide, f&lt;span&gt;or reference, you can find minimal footprint configurations of the&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/peripheral_lbs/README.html#peripheral-lbs"&gt;&lt;span&gt;Bluetooth: Peripheral LBS&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;sample in&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;nrf/samples/bluetooth/peripheral_lbs/prj_minimal.conf&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.6.2/samples/bluetooth/peripheral_lbs/prj_minimal.conf"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v2.6.2/samples/bluetooth/peripheral_lbs/prj_minimal.conf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>