<?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>Flash size of BLE Applications</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119398/flash-size-of-ble-applications</link><description>Hi, 
 We are currently developing an application where we use a nrf52811. Currently i am working on integrating the BLE-Stack as this is the last part missing. 
 I am constantly running out of flash as well as RAM. Therefor we also scrapped a FOTA-Update</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Mar 2025 14:16:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119398/flash-size-of-ble-applications" /><item><title>RE: Flash size of BLE Applications</title><link>https://devzone.nordicsemi.com/thread/528884?ContentTypeID=1</link><pubDate>Tue, 25 Mar 2025 14:16:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89945df3-5f5c-4270-974b-5ef5cd940049</guid><dc:creator>H.Marske</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry i get back to you so late but we had to wait a long time before the Hardware arrived.&lt;/p&gt;
&lt;p&gt;I fixed the problem with your help as it was indeed the same problem with the swapped quartzes.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your help!&lt;/p&gt;
&lt;p&gt;Greetings Hendrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash size of BLE Applications</title><link>https://devzone.nordicsemi.com/thread/525332?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 15:29:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e88945a3-d0a2-4d84-a83c-e9e06e2c846b</guid><dc:creator>H.Marske</dc:creator><description>&lt;p&gt;oh my... I know the issue then. We already had this issue as the whole chip usually runs from the external oscillator per default. In the initial HW-Design the LF and HF Oscillators were swapped around. We almost debugged for 2 whole weeks as we could not figure out what the problem was.&lt;/p&gt;
&lt;p&gt;I will get it checked early next week and report then.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash size of BLE Applications</title><link>https://devzone.nordicsemi.com/thread/525330?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 15:26:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09b7fe2c-47eb-4d7e-a04b-44a31cab6dc7</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. The assert indicate that the HFXO is not running when it should. It oculd be that the HF clock does not start at all, or that it starts too slowy (both would be a hardware issue). Have you successfully run any readio applications on this board or tested that the HFXO works?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash size of BLE Applications</title><link>https://devzone.nordicsemi.com/thread/525321?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 15:03:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d42aa6f0-b401-451e-b0d8-05fcaf3940c6</guid><dc:creator>H.Marske</dc:creator><description>&lt;p&gt;i am using nrf Connect SDK v2.7 wich is the same for the toolchain&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash size of BLE Applications</title><link>https://devzone.nordicsemi.com/thread/525320?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 15:01:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16c87640-a699-4daf-baf5-72e32d107c24</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Thanks, that is what I was looking for. However, I forgot to ask which SDK version you are using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash size of BLE Applications</title><link>https://devzone.nordicsemi.com/thread/525319?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 14:56:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc8def0c-e397-469e-b6ce-967fca1b5438</guid><dc:creator>H.Marske</dc:creator><description>&lt;p&gt;&lt;img style="max-height:88px;max-width:552px;" height="88" src="https://devzone.nordicsemi.com/resized-image/__size/1104x176/__key/communityserver-discussions-components-files/4/pastedimage1740754537082v1.png" width="552" alt=" " /&gt;&lt;br /&gt;on the left you can see the file and line parameter&lt;br /&gt;&lt;br /&gt;Thanks four your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash size of BLE Applications</title><link>https://devzone.nordicsemi.com/thread/525305?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 14:20:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93a1def1-151f-454c-82df-0922c241120a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This shows an MPSL assert. As logging is diffucult, can you debug in&amp;nbsp;m_assert_handler() and check the file and line? (If it is easier you can allo make &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/nrf/libraries/mpsl/mpsl_assert.html"&gt;a custom mpsl_assert_handle() function&lt;/a&gt;&amp;nbsp;and&amp;nbsp;check there). I can look up the MPSL assert information to see if it gives any pointers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash size of BLE Applications</title><link>https://devzone.nordicsemi.com/thread/525291?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 13:50:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f6e5a83-397f-446d-b244-085a75f774cd</guid><dc:creator>H.Marske</dc:creator><description>&lt;p&gt;Enabeling loggin would overflow flash by 29080B and RAM by 3400B, so there is no point in enabeling this.&lt;/p&gt;
&lt;p&gt;I have attached the stacktrace on failure. I would read it as i try calling the mpsl workqueue out of an ISR but i am not. I call this&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:177px;max-width:472px;" height="177" src="https://devzone.nordicsemi.com/resized-image/__size/944x354/__key/communityserver-discussions-components-files/4/pastedimage1740750359916v1.png" width="472" alt=" " /&gt;&lt;br /&gt;The reason-Parameter is 4&lt;br /&gt;&lt;br /&gt;It fails after starting the scan with bt_le_scan_start but before i stop it.&lt;br /&gt;I can post the start-scanning-code as well as the stopping if it helps&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash size of BLE Applications</title><link>https://devzone.nordicsemi.com/thread/525279?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 13:18:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9308ee08-79ef-4958-a10d-1bcaa113c460</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The default configurations typically have some headroom with regards to buffer sizes etc which affect RAM, and also include support for features you may not need, which affect both flash and RAM usage. I see you are able to fit th eapplication, though just barely. With optimizations, I exect you should have a bit more headroom. I do not have an example that does exactly what you describe, but you can refer to the &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/05613b8155d974833daaf0cfefebe215bdb76db9/samples/bluetooth/peripheral_lbs/prj_minimal.conf"&gt;prj_minimal.conf here&lt;/a&gt; which gives a good idea (though this is for a Bluetooth peripheral device). Zephyr also has a &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/6e2bf1bf10998558b7091e1a973477d93b22d23b/samples/bluetooth/central_hr/prj_minimal.conf"&gt;sample with a prj_minimal.conf for a central&lt;/a&gt;. There is also documentation on &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/nrf/test_and_optimize/optimizing/memory.html"&gt;Memory footprint optimization&lt;/a&gt;&amp;nbsp;that is worth exploring.&lt;/p&gt;
&lt;p&gt;As you are able to build the project, I do not believe the issue you are seeing when testing is due to lack of memory. The linker was able to place everything in RAM, includign all buffers etc. But to know more about why you see a crash when starting scannng we need to debug (first I would start by olbserving the log if you have logging enabled to see if there is a fault).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>