<?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>RAM Overflowed by 3112 bytes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108418/ram-overflowed-by-3112-bytes</link><description>Hi sir, 
 I am using Visual Studio code and nRF Connect SDK and in that when Iam executing Peripheral_ht example, I am facing RAM Overflow by 3112 bytes. I am attaching the Build Configuration settings and error in terminal in below. So, can you please</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Feb 2024 12:39:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108418/ram-overflowed-by-3112-bytes" /><item><title>RE: RAM Overflowed by 3112 bytes</title><link>https://devzone.nordicsemi.com/thread/470244?ContentTypeID=1</link><pubDate>Thu, 22 Feb 2024 12:39:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2914499b-82f4-4f63-acde-f86967eb2748</guid><dc:creator>Jareena</dc:creator><description>&lt;p&gt;Hi sir,&lt;/p&gt;
&lt;p&gt;Ok, I will Optimize RAM usage for BME 280 and I have raised a new Question for Integrating BME 280 sensor in ht sample and Thank you for your help to resolve Memory Overflow Issue in nrf connect SDK. So, can you please, close this ticket.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Shiak Jareena.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM Overflowed by 3112 bytes</title><link>https://devzone.nordicsemi.com/thread/469701?ContentTypeID=1</link><pubDate>Tue, 20 Feb 2024 08:31:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2db55a1f-f14e-425d-b4dd-51e4db9c0fa6</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Shiak,&lt;/p&gt;
&lt;p&gt;There is a post about BME280 &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/106702/bme280/460883"&gt;here&lt;/a&gt;&amp;nbsp;that may be usefull. Please make a new questino if you have futher questions about this. Note that as you have no spare RAM you will need to optimzie your RAM usage futher in order to be able to add support for this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM Overflowed by 3112 bytes</title><link>https://devzone.nordicsemi.com/thread/469548?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2024 13:53:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6728bafc-2081-42e1-a135-5c0ce76e7bdc</guid><dc:creator>Jareena</dc:creator><description>&lt;p&gt;Hi sir,&lt;/p&gt;
&lt;p&gt;Thank you for you guidance and I have build the peripheral_ht application without errors and I got the Temperature values and I have to integrate BME280 sensor in this application. For this what files I have to integrate and what changes I need to do for it. Can you please, send any documentation regarding this If you have it or any information.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Shiak Jareena.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM Overflowed by 3112 bytes</title><link>https://devzone.nordicsemi.com/thread/469527?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2024 13:17:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3291c09-b2fe-47f6-84ce-7c845a0bb5bd</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Shaik,&lt;/p&gt;
&lt;p&gt;The errors you get seem a bit strange, but that is becasue you are using the wrong format for the configs. You are not alowed to have a space before and after the = (just do it like you can see is allready doen in the file). After fixing that, there are also other prolbmes, which you can typically resolve by looking at the log (some of the values you have specifiied are outside of the allowed range). Also, these values need to match your use case.&lt;/p&gt;
&lt;p&gt;I am able to make it build with these additional configs:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BT_L2CAP_TX_BUF_COUNT=2
CONFIG_BT_BUF_EVT_RX_COUNT=2
CONFIG_BT_CTLR_RX_BUFFERS=1
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=1664&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But I have not tested this run-time so there may be issues I do not see.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM Overflowed by 3112 bytes</title><link>https://devzone.nordicsemi.com/thread/469513?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2024 12:57:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:036da0e1-cb04-42b2-b84b-63d0f41f3f7b</guid><dc:creator>Jareena</dc:creator><description>&lt;p&gt;Hi sir,&lt;/p&gt;
&lt;p&gt;After doing above mentioned three changes peripheral_ht Application size is got reduced from 3112 bytes to 680bytes as mentioned in below screenshot.&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/Build-configuration-1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have added these configurations in prj.conf file as mentioned below.&lt;/p&gt;
&lt;p&gt;The following configuration options affect the Bluetooth buffers:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;
&lt;p&gt;&lt;a class="reference external" title="(in Kconfig reference v&amp;amp;nbsp;)" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/kconfig/index.html#CONFIG_BT_BUF_EVT_DISCARDABLE_COUNT"&gt;&lt;code class="xref kconfig kconfig-option docutils literal notranslate"&gt;&lt;span class="pre"&gt;CONFIG_BT_BUF_EVT_DISCARDABLE_COUNT&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a class="reference external" title="(in Kconfig reference v&amp;amp;nbsp;)" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/kconfig/index.html#CONFIG_BT_BUF_EVT_DISCARDABLE_SIZE"&gt;&lt;code class="xref kconfig kconfig-option docutils literal notranslate"&gt;&lt;span class="pre"&gt;CONFIG_BT_BUF_EVT_DISCARDABLE_SIZE&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a class="reference external" title="(in Kconfig reference v&amp;amp;nbsp;)" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/kconfig/index.html#CONFIG_BT_BUF_EVT_RX_COUNT"&gt;&lt;code class="xref kconfig kconfig-option docutils literal notranslate"&gt;&lt;span class="pre"&gt;CONFIG_BT_BUF_EVT_RX_COUNT&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a class="reference external" title="(in Kconfig reference v&amp;amp;nbsp;)" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/kconfig/index.html#CONFIG_BT_CONN_TX_MAX"&gt;&lt;code class="xref kconfig kconfig-option docutils literal notranslate"&gt;&lt;span class="pre"&gt;CONFIG_BT_CONN_TX_MAX&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a class="reference external" title="(in Kconfig reference v&amp;amp;nbsp;)" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/kconfig/index.html#CONFIG_BT_L2CAP_TX_BUF_COUNT"&gt;&lt;code class="xref kconfig kconfig-option docutils literal notranslate"&gt;&lt;span class="pre"&gt;CONFIG_BT_L2CAP_TX_BUF_COUNT&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a class="reference external" title="(in Kconfig reference v&amp;amp;nbsp;)" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/kconfig/index.html#CONFIG_BT_BUF_ACL_TX_COUNT"&gt;&lt;code class="xref kconfig kconfig-option docutils literal notranslate"&gt;&lt;span class="pre"&gt;CONFIG_BT_BUF_ACL_TX_COUNT&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a class="reference external" title="(in Kconfig reference v&amp;amp;nbsp;)" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/kconfig/index.html#CONFIG_BT_BUF_ACL_TX_SIZE"&gt;&lt;code class="xref kconfig kconfig-option docutils literal notranslate"&gt;&lt;span class="pre"&gt;CONFIG_BT_BUF_ACL_TX_SIZE&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;
&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BT=y
CONFIG_LOG=n 
CONFIG_BT_SMP=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_DIS=y
CONFIG_BT_DIS_PNP=n
CONFIG_BT_BAS=y
CONFIG_BT_DEVICE_NAME=&amp;quot;Zephyr Health Thermometer&amp;quot;
CONFIG_BT_DEVICE_APPEARANCE=768
CONFIG_BT_ATT_ENFORCE_FLOW=n
CONFIG_CBPRINTF_FP_SUPPORT=y

 
CONFIG_CONSOLE=n
CONFIG_SERIAL=n
CONFIG_BT_BUF_EVT_DISCARDABLE_COUNT = 1
CONFIG_BT_BUF_EVT_DISCARDABLE_SIZE = 3
CONFIG_BT_BUF_EVT_RX_COUNT = 2
CONFIG_BT_CONN_TX_MAX = 1
CONFIG_BT_L2CAP_TX_BUF_COUNT = 1
CONFIG_BT_BUF_ACL_TX_COUNT = 1
CONFIG_BT_BUF_ACL_TX_SIZE = 2&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;&lt;code class="xref kconfig kconfig-option docutils literal notranslate"&gt;&lt;span class="pre"&gt;Then, after I am facing these below mentioned issues. So, can you please help me in how to add these configurations.&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Executing task: nRF Connect: Generate config nrf52dk_nrf52810 for c:\ncs\v2.5.2\zephyr\samples\bluetooth\peripheral_ht&lt;/p&gt;
&lt;p&gt;Building peripheral_ht&lt;br /&gt;west build --build-dir c:/ncs/v2.5.2/zephyr/samples/bluetooth/peripheral_ht/build c:/ncs/v2.5.2/zephyr/samples/bluetooth/peripheral_ht --pristine --board nrf52dk_nrf52810 --no-sysbuild -- -DNCS_TOOLCHAIN_VERSION=NONE -DCONF_FILE=c:/ncs/v2.5.2/zephyr/samples/bluetooth/peripheral_ht/prj.conf -DBOARD_ROOT=c:/ncs/v2.5.2/zephyr/samples/bluetooth/peripheral_ht&lt;/p&gt;
&lt;p&gt;-- west build: generating a build system&lt;br /&gt;Loading Zephyr default modules (Zephyr base).&lt;br /&gt;-- Application: C:/ncs/v2.5.2/zephyr/samples/bluetooth/peripheral_ht&lt;br /&gt;-- CMake version: 3.20.5&lt;br /&gt;-- Found Python3: C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe (found suitable version &amp;quot;3.8.2&amp;quot;, minimum required is &amp;quot;3.8&amp;quot;) found components: Interpreter &lt;br /&gt;-- Cache files will be written to: C:/ncs/v2.5.2/zephyr/.cache&lt;br /&gt;-- Zephyr version: 3.4.99 (C:/ncs/v2.5.2/zephyr)&lt;br /&gt;-- Found west (found suitable version &amp;quot;1.1.0&amp;quot;, minimum required is &amp;quot;0.14.0&amp;quot;)&lt;br /&gt;-- Board: nrf52dk_nrf52810&lt;br /&gt;-- Found host-tools: zephyr 0.16.1 (C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk)&lt;br /&gt;-- Found toolchain: zephyr 0.16.1 (C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk)&lt;br /&gt;-- Found Dtc: C:/ncs/toolchains/c57af46cb7/opt/bin/dtc.exe (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;) &lt;br /&gt;-- Found BOARD.dts: C:/ncs/v2.5.2/zephyr/boards/arm/nrf52dk_nrf52810/nrf52dk_nrf52810.dts&lt;br /&gt;-- Generated zephyr.dts: C:/ncs/v2.5.2/zephyr/samples/bluetooth/peripheral_ht/build/zephyr/zephyr.dts&lt;br /&gt;-- Generated devicetree_generated.h: C:/ncs/v2.5.2/zephyr/samples/bluetooth/peripheral_ht/build/zephyr/include/generated/devicetree_generated.h&lt;br /&gt;-- Including generated dts.cmake file: C:/ncs/v2.5.2/zephyr/samples/bluetooth/peripheral_ht/build/zephyr/dts.cmake&lt;/p&gt;
&lt;p&gt;warning: UART_CONSOLE (defined at drivers/console/Kconfig:43) was assigned the value &amp;#39;y&amp;#39; but got the&lt;br /&gt;value &amp;#39;n&amp;#39;. Check these unsatisfied dependencies: SERIAL (=n), SERIAL_HAS_DRIVER (=n), CONSOLE (=n).&lt;br /&gt;See &lt;a href="http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UART_CONSOLE"&gt;docs.zephyrproject.org/.../kconfig.html&lt;/a&gt; and/or look up&lt;br /&gt;UART_CONSOLE in the menuconfig/guiconfig interface. The Application Development Primer, Setting&lt;br /&gt;Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful&lt;br /&gt;too.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;c:/ncs/v2.5.2/zephyr/samples/bluetooth/peripheral_ht/prj.conf:16: warning: attempt to assign the value &amp;#39; 1&amp;#39; to the undefined symbol BT_BUF_EVT_DISCARDABLE_COUNT&lt;/p&gt;
&lt;p&gt;c:/ncs/v2.5.2/zephyr/samples/bluetooth/peripheral_ht/prj.conf:17: warning: attempt to assign the value &amp;#39; 3&amp;#39; to the undefined symbol BT_BUF_EVT_DISCARDABLE_SIZE&lt;/p&gt;
&lt;p&gt;c:/ncs/v2.5.2/zephyr/samples/bluetooth/peripheral_ht/prj.conf:18: warning: attempt to assign the value &amp;#39; 2&amp;#39; to the undefined symbol BT_BUF_EVT_RX_COUNT&lt;/p&gt;
&lt;p&gt;c:/ncs/v2.5.2/zephyr/samples/bluetooth/peripheral_ht/prj.conf:19: warning: attempt to assign the value &amp;#39; 1&amp;#39; to the undefined symbol BT_CONN_TX_MAX&lt;/p&gt;
&lt;p&gt;c:/ncs/v2.5.2/zephyr/samples/bluetooth/peripheral_ht/prj.conf:20: warning: attempt to assign the value &amp;#39; 1&amp;#39; to the undefined symbol BT_L2CAP_TX_BUF_COUNT&lt;/p&gt;
&lt;p&gt;c:/ncs/v2.5.2/zephyr/samples/bluetooth/peripheral_ht/prj.conf:21: warning: ignoring malformed line &amp;#39;//CONFIG_BT_CTLR_RX_BUFFERS = 16&amp;#39;&lt;/p&gt;
&lt;p&gt;c:/ncs/v2.5.2/zephyr/samples/bluetooth/peripheral_ht/prj.conf:22: warning: attempt to assign the value &amp;#39; 1&amp;#39; to the undefined symbol BT_BUF_ACL_TX_COUNT&lt;/p&gt;
&lt;p&gt;c:/ncs/v2.5.2/zephyr/samples/bluetooth/peripheral_ht/prj.conf:23: warning: attempt to assign the value &amp;#39; 2&amp;#39; to the undefined symbol BT_BUF_ACL_TX_SIZE&lt;/p&gt;
&lt;p&gt;error: Aborting due to Kconfig warnings&lt;/p&gt;
&lt;p&gt;Parsing C:/ncs/v2.5.2/zephyr/samples/bluetooth/peripheral_ht/Kconfig&lt;br /&gt;Loaded configuration &amp;#39;C:/ncs/v2.5.2/zephyr/boards/arm/nrf52dk_nrf52810/nrf52dk_nrf52810_defconfig&amp;#39;&lt;br /&gt;Merged configuration &amp;#39;c:/ncs/v2.5.2/zephyr/samples/bluetooth/peripheral_ht/prj.conf&amp;#39;&lt;br /&gt;CMake Error at C:/ncs/v2.5.2/zephyr/cmake/modules/kconfig.cmake:348 (message):&lt;br /&gt; command failed with return code: 1&lt;br /&gt;Call Stack (most recent call first):&lt;br /&gt; C:/ncs/v2.5.2/nrf/cmake/modules/kconfig.cmake:29 (include)&lt;br /&gt; C:/ncs/v2.5.2/zephyr/cmake/modules/zephyr_default.cmake:129 (include)&lt;br /&gt; C:/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)&lt;br /&gt; C:/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)&lt;br /&gt; CMakeLists.txt:5 (find_package)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;-- Configuring incomplete, errors occurred!&lt;br /&gt;FATAL ERROR: command exited with status 1: &amp;#39;C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.EXE&amp;#39; -DWEST_PYTHON=C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe &amp;#39;-Bc:\ncs\v2.5.2\zephyr\samples\bluetooth\peripheral_ht\build&amp;#39; -GNinja -DBOARD=nrf52dk_nrf52810 -DNCS_TOOLCHAIN_VERSION=NONE -DCONF_FILE=c:/ncs/v2.5.2/zephyr/samples/bluetooth/peripheral_ht/prj.conf -DBOARD_ROOT=c:/ncs/v2.5.2/zephyr/samples/bluetooth/peripheral_ht &amp;#39;-Sc:\ncs\v2.5.2\zephyr\samples\bluetooth\peripheral_ht&amp;#39;&lt;/p&gt;
&lt;p&gt;* The terminal process terminated with exit code: 1. &lt;br /&gt; * Terminal will be reused by tasks, press any key to close it. &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;code class="xref kconfig kconfig-option docutils literal notranslate"&gt;&lt;span class="pre"&gt;Thanks,&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;code class="xref kconfig kconfig-option docutils literal notranslate"&gt;&lt;span class="pre"&gt;Shaik Jareena.&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM Overflowed by 3112 bytes</title><link>https://devzone.nordicsemi.com/thread/469408?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2024 08:51:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8c6da9b-dbe6-41a1-96c2-e305d2cc79bc</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Shaik,&lt;/p&gt;
&lt;p&gt;The nRF52810 is quite limited on RAM, so you may need to do some optimizations. First of all, if you don&amp;#39;t need loging, you can disable that (though that is usefull for debugging). This will also remove buffers used by the log system. You can do that by adding these configs:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_LOG=n
CONFIG_CONSOLE=n
CONFIG_SERIAL=n&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This will significantly reduce the RAM usage, but not enough.&lt;/p&gt;
&lt;p&gt;You can also look at the suggestions under &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/nrf/test_and_optimize/optimizing/memory.html"&gt;Memory footprint optimization&lt;/a&gt;, which lists a lot of buffers relevant for Bleutooth that you can adjust.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>