<?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>[nRF52840DK][LVGL 9.3] malloc fails in LVGL init at startup (Zephyr 4.1, NCS 3.1.0)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124551/nrf52840dk-lvgl-9-3-malloc-fails-in-lvgl-init-at-startup-zephyr-4-1-ncs-3-1-0</link><description>Hello, 
 
 I’m trying to run **LVGL 9.3** on a **nRF52840 DK** with a **2.8&amp;quot; ILI9341 TFT display (SPI)** using **NCS v3.1.0 / Zephyr 4.1 / Toolchain v3.1.0** . 
 
 ### Problem 
 
 The app compiles and starts, but I get some **malloc fails** . 
 The fault</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Sep 2025 14:53:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124551/nrf52840dk-lvgl-9-3-malloc-fails-in-lvgl-init-at-startup-zephyr-4-1-ncs-3-1-0" /><item><title>RE: [nRF52840DK][LVGL 9.3] malloc fails in LVGL init at startup (Zephyr 4.1, NCS 3.1.0)</title><link>https://devzone.nordicsemi.com/thread/549591?ContentTypeID=1</link><pubDate>Tue, 23 Sep 2025 14:53:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a197313-2ed0-4f25-9b06-c18e7f3d51b2</guid><dc:creator>Niels Ouvrard</dc:creator><description>&lt;p&gt;I put&amp;nbsp;8192 and it worked, no more malloc fails.&lt;br /&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF52840DK][LVGL 9.3] malloc fails in LVGL init at startup (Zephyr 4.1, NCS 3.1.0)</title><link>https://devzone.nordicsemi.com/thread/549588?ContentTypeID=1</link><pubDate>Tue, 23 Sep 2025 14:40:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:218d5d37-bb29-45c2-8e80-b624735b9bb8</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Try this config:&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;CONFIG_LV_Z_MEM_POOL_SIZE&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF52840DK][LVGL 9.3] malloc fails in LVGL init at startup (Zephyr 4.1, NCS 3.1.0)</title><link>https://devzone.nordicsemi.com/thread/549569?ContentTypeID=1</link><pubDate>Tue, 23 Sep 2025 12:58:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f3b6701-a72f-473f-9411-8bfc731d29d8</guid><dc:creator>Niels Ouvrard</dc:creator><description>&lt;p&gt;I tried 8k, 32k, 64k...&lt;br /&gt;Same result&lt;br /&gt;&lt;br /&gt;Out of memory at the exact same place every time&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF52840DK][LVGL 9.3] malloc fails in LVGL init at startup (Zephyr 4.1, NCS 3.1.0)</title><link>https://devzone.nordicsemi.com/thread/549566?ContentTypeID=1</link><pubDate>Tue, 23 Sep 2025 12:37:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b540a49-1699-4556-8dbd-35850e480432</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;What did you try setting&amp;nbsp;&lt;code&gt;CONFIG_HEAP_MEM_POOL_SIZE&lt;/code&gt;&lt;span&gt;&amp;nbsp; to ? Make you can try a higher value?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>