Skip to content

LVGL - How to correctly read .bin images from the SD card? (Or memory leak bug) #73072

Closed Answered by svyat-innowise
svyat-innowise asked this question in Q&A

You must be logged in to vote

Solved. Problem was in the lvgl_fs. file. Memory wasn't released in the lvgl_fs_close function. https://devzone.nordicsemi.com/f/nordic-q-a/108039/nrf52840dk-lvgl-file-system

Patch for fix it:

From c6d24f3fbaf3072f8cff330a3c59b2357604cbfc Mon Sep 17 00:00:00 2001
From: svyat-innowise <svyatoslav.yaroshevich@innowise-group.com>
Date: Tue, 21 May 2024 17:14:54 +0200
Subject: [PATCH] zephyr: lvgl_fs: fix bug of memory lvgl leak

---
 modules/lvgl/lvgl_fs.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules/lvgl/lvgl_fs.c b/modules/lvgl/lvgl_fs.c
index a05e21748d..aa61493d60 100644
--- a/modules/lvgl/lvgl_fs.c
+++ b/modules/lvgl/lvgl_fs.c
@@ -86,8 +86,10 @@ stat…

Replies: 1 comment 2 replies

You must be logged in to vote
2 replies
@faxe1008

@MaprilBear

Answer selected by svyat-innowise
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants