<?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 BLE Project using too much flash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114325/ncs-ble-project-using-too-much-flash</link><description>Hi All, I am looking for assistance with trying to reduce flash usage of my project. I am using NCS v2.6 with an nRF52832. Attached is my prj.conf file. The major SDK features being used are: - BLE - DIS and BAS services - 1 custom BLE service - Extended</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Sep 2024 17:00:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114325/ncs-ble-project-using-too-much-flash" /><item><title>RE: NCS BLE Project using too much flash</title><link>https://devzone.nordicsemi.com/thread/501220?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2024 17:00:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e046ff86-229c-45c1-979b-1ed20ece4268</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Extended Advertising allows for more flexible and robust advertising scenarios. This includes support for larger payloads, which can increase the amount of data that can be broadcasted in a single advertising event and&amp;nbsp;&lt;span&gt;could potentially explain the increased memory usage.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Besides the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/test_and_optimize/optimizing/memory.html"&gt;Memory footprint optimization&lt;/a&gt;&amp;nbsp;doc, I don&amp;#39;t have extra suggestions for&amp;nbsp;Extended Advertising.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS BLE Project using too much flash</title><link>https://devzone.nordicsemi.com/thread/501216?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2024 16:14:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7df01049-b3dc-4500-873d-99f2bcf06fc7</guid><dc:creator>dlewis</dc:creator><description>&lt;p&gt;Hi, I&amp;#39;ve gone through and disabled as many features as I can as well as reducing the buffers to the minimum amounts allowable for the specific project. The amount of additional space saved was less than 50 bytes. Do you know why extended advertising uses an additional 34kb? Is there any ways to reduce this? I am only using about 40 bytes in my advertising data and don&amp;#39;t need all 1650, but setting&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_CTLR_ADV_DATA_LEN_MAX=40&lt;br /&gt;only reduced the flash usage by 1 byte.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS BLE Project using too much flash</title><link>https://devzone.nordicsemi.com/thread/500479?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2024 18:31:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b66680a6-fbf0-42d2-88b1-0261f5166db1</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Then, you has to consider &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/test_and_optimize/optimizing/memory.html#bluetooth"&gt;d&lt;/a&gt;&lt;span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/test_and_optimize/optimizing/memory.html#bluetooth"&gt;isable some features or reduce the overall number and the sizes of the Bluetooth buffers&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS BLE Project using too much flash</title><link>https://devzone.nordicsemi.com/thread/500472?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2024 17:20:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cab91b3-0f4e-4895-8440-7b4b902833d2</guid><dc:creator>dlewis</dc:creator><description>&lt;p&gt;Hi Amanda, I have referenced that document. It has a fair bit of overlap with the devzone guide I linked. Unfortunately, adding additional flash is not an option. The hardware is being supplied by the customer and has no option to use a different chip with more flash or add external flash.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS BLE Project using too much flash</title><link>https://devzone.nordicsemi.com/thread/500464?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2024 15:50:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9767efcc-8479-4e53-85b2-1ca7efcf2f39</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You also can take a look at the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/test_and_optimize/optimizing/memory.html"&gt;Memory footprint optimization&lt;/a&gt;&amp;nbsp;doc. If you already did all to optimize, but still get size overflow. You might consider using an external flash as the secondary slot for BLE DFU or another nRF Chips with larger internal memory.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>