<?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>Rom size occupied for NCS v3.0.2 with bluetooth stack.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122728/rom-size-occupied-for-ncs-v3-0-2-with-bluetooth-stack</link><description>We are developing a BLE application with nRF52833 512kB ROM size and using NCS v3.0.2. However it seems the ROM size occupied is not so logical, or the ROM size for NCS (Zephyr-OS) + Bluetooth stack is too large that is totally out of my expectation.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Jul 2025 13:17:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122728/rom-size-occupied-for-ncs-v3-0-2-with-bluetooth-stack" /><item><title>RE: Rom size occupied for NCS v3.0.2 with bluetooth stack.</title><link>https://devzone.nordicsemi.com/thread/541471?ContentTypeID=1</link><pubDate>Fri, 04 Jul 2025 13:17:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70b04bb2-d6e1-47be-9335-b696743bb6f0</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I can see both peripheral and central are enabled in the prj.conf file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Enabling both central and peripheral roles, extended advertising, GATT client, scanning, and other advanced features (like PHY coded, dynamic TX power, etc.) significantly increases the flash footprint.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You also need dual band DFU; this requires two application slots of equal size, also space for MCUboot and settings partitions. You can read this case&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/112896/smaller-flash-size-ble-dfu-with-ncs-possible" rel="noopener noreferrer" target="_blank"&gt;Smaller flash size BLE DFU with NCS possible?&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can reduce flash usage by disabling unused features, using minimal configurations, and optimizing buffer sizes. For example, based on the prj_minimal.con files from the samples peripheral_lbs and peripheral_uart , there is a config file with minimal configurations&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BT_DEBUG_NONE=y
CONFIG_BT_ASSERT=n
CONFIG_BT_DATA_LEN_UPDATE=n
CONFIG_BT_PHY_UPDATE=n
CONFIG_BT_GATT_CACHING=n
CONFIG_BT_GATT_SERVICE_CHANGED=n
CONFIG_BT_GAP_PERIPHERAL_PREF_PARAMS=n
CONFIG_BT_SETTINGS_CCC_LAZY_LOADING=y
CONFIG_BT_HCI_VS_EXT=n
CONFIG_BT_CTLR_PRIVACY=n
CONFIG_BT_CTLR_PHY_2M=n
CONFIG_BT_BUF_EVT_DISCARDABLE_COUNT=1
CONFIG_BT_BUF_EVT_DISCARDABLE_SIZE=43
CONFIG_BT_BUF_EVT_RX_COUNT=2
CONFIG_BT_CONN_TX_MAX=2
CONFIG_BT_L2CAP_TX_BUF_COUNT=2
CONFIG_BT_CTLR_RX_BUFFERS=1
CONFIG_BT_BUF_ACL_TX_COUNT=3
CONFIG_BT_BUF_ACL_TX_SIZE=27&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;however you may need some of the configs for your application; so, 512 KB may not be enough for your application.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rom size occupied for NCS v3.0.2 with bluetooth stack.</title><link>https://devzone.nordicsemi.com/thread/541396?ContentTypeID=1</link><pubDate>Fri, 04 Jul 2025 05:49:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73bb3187-733c-431d-af06-5db8e7ac1a69</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;No. Once you enable&amp;nbsp;&lt;em&gt;both&lt;/em&gt; central and peripherial BTLE mode, you will need a ton of flash ROM space for the supporting code base.&lt;/p&gt;
&lt;p&gt;Consider a bigger chip variant or external flash.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>