<?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>ble, lvgl, the prj.conf and RAM&amp;#39; overflowed by 3068 bytes error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99553/ble-lvgl-the-prj-conf-and-ram-overflowed-by-3068-bytes-error</link><description>I got a &amp;quot;Hello World&amp;quot; up and running with lvgl and modified the prj.conf to get the font I wanted. I folded in ble and now I am getting region `RAM&amp;#39; overflowed by 3068 bytes error when building. The board is a PineTime DK (nRF52932). 
 I am new at this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 May 2023 05:41:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99553/ble-lvgl-the-prj-conf-and-ram-overflowed-by-3068-bytes-error" /><item><title>RE: ble, lvgl, the prj.conf and RAM' overflowed by 3068 bytes error</title><link>https://devzone.nordicsemi.com/thread/425220?ContentTypeID=1</link><pubDate>Fri, 12 May 2023 05:41:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7102cbe-9bd6-4d46-8263-689d630b5c8c</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Interesting. The nRF5340 is also an option, with even more performance and memory. I will keep an eye out, could be fun to get one to play around with if a new version is made &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble, lvgl, the prj.conf and RAM' overflowed by 3068 bytes error</title><link>https://devzone.nordicsemi.com/thread/425183?ContentTypeID=1</link><pubDate>Thu, 11 May 2023 16:13:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84bf8b94-7ecf-45a0-bb37-700a55ea551b</guid><dc:creator>lcj</dc:creator><description>&lt;p&gt;I know another release is in the planning but have no purview into it. I expect 40 is a part of it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble, lvgl, the prj.conf and RAM' overflowed by 3068 bytes error</title><link>https://devzone.nordicsemi.com/thread/425115?ContentTypeID=1</link><pubDate>Thu, 11 May 2023 13:02:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d6a85f6-9bb7-4889-99fd-5ee9c77c5779</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Leo&lt;/p&gt;
&lt;p&gt;It makes sense that the older versions would be leaner, if you don&amp;#39;t need the features of v8.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A shame the PineTime doesn&amp;#39;t use the nRF52840 though, then you would have much more memory available... (I am sure they had their reasons to use the nRF52832 instead)&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble, lvgl, the prj.conf and RAM' overflowed by 3068 bytes error</title><link>https://devzone.nordicsemi.com/thread/425067?ContentTypeID=1</link><pubDate>Thu, 11 May 2023 10:27:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d8feab5-81f0-483b-a896-92a7794ed72d</guid><dc:creator>lcj</dc:creator><description>&lt;p&gt;Thank you! Looks like lvgl 8 is a lot bigger than 7. Some others working on the PineTime have stayed with 7 for this reason.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble, lvgl, the prj.conf and RAM' overflowed by 3068 bytes error</title><link>https://devzone.nordicsemi.com/thread/425020?ContentTypeID=1</link><pubDate>Thu, 11 May 2023 07:25:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d573982d-1063-4302-8e78-fbabeeb0d36f</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Great to hear you got it to build &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You might want to reduce the other parameter as well to give you a bit more overhead, depending on your application I am guessing you might need more RAM later when adding new features.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The memory report is indeed very useful. Especially the fact that you can click on elements in the report and jump directly to the implementation in the code, this allowed me to investigate which configuration parameters had to be changed to reduce the buffers.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is also a search function if you want to search for specific modules (such as the calendar one).&amp;nbsp;&lt;/p&gt;
[quote user="lcj"]Does it look like there are lvgl modules I should not have in there?[/quote]
&lt;p&gt;Based on the screenshot I can&amp;#39;t really see any superfluous modules, no. I wouldn&amp;#39;t worry too much about unused modules, the linker should optimize them out if they are not referenced anywhere.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble, lvgl, the prj.conf and RAM' overflowed by 3068 bytes error</title><link>https://devzone.nordicsemi.com/thread/424781?ContentTypeID=1</link><pubDate>Wed, 10 May 2023 10:06:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67992855-a254-4cbc-b699-b03a503bc8e8</guid><dc:creator>lcj</dc:creator><description>&lt;p&gt;&lt;span&gt;I did reduce CONFIG_LV_Z_MEM_POOL_NUMBER_BLOCKS to 6 and it did build. That&amp;#39;s a great report. Lvgl is 56%:&lt;br /&gt;&lt;br /&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/pastedimage1683714189559v2.png" /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Does it look like there are lvgl modules I should not have in there?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;This forum is great! Thank you so much for this.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble, lvgl, the prj.conf and RAM' overflowed by 3068 bytes error</title><link>https://devzone.nordicsemi.com/thread/424749?ContentTypeID=1</link><pubDate>Wed, 10 May 2023 08:57:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e9d43a0-e03f-47eb-af89-5abb632d7dc3</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Leo&lt;/p&gt;
&lt;p&gt;A very good tool to analyze RAM and ROM consumption in a Zephyr application is the Memory Report feature in the nRF Connect VSCode extension.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This provides a detailed overview of exactly which variables and modules are consuming how much memory, including a graphical representation of the various modules and how much they use:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:365px;max-width:376px;" height="365" src="https://devzone.nordicsemi.com/resized-image/__size/752x730/__key/communityserver-discussions-components-files/4/pastedimage1683706805529v1.png" width="376" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;In the example above I built the LVGL basic sample for the Adafruit 2.8&amp;quot; TFT display on the nRF52840DK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The total RAM consumption is 178016 bytes, and from the memory report I can see clearly that most of this is caused by the LVGL display buffer (buf0) and the LVGL heap (lvgl_heap_mem).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The size of the LVGL heap can be reduced by reducing CONFIG_LV_Z_MEM_POOL_NUMBER_BLOCKS, which is set to 8 in the sample.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The size of the buffer can be reduced by reducing CONFIG_LV_Z_VDB_SIZE, which is a percentage value between 1 and 100 scaling the image buffer to the size of the screen.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I assume smaller values will lead to higher CPU usage and slower screen updates, but will reduce RAM consumption.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>