Hello everyone,
I’m design a GUI using LGVL. I got a problem relate to memory as shown in the following picture. I wonder are there any function that I can use to handle this.
I didn’t see the detail of those 2 functions. Do they free the memory of the obj that we create??? I just want to sure about the memory because it quite important
When your memory is very poor,then you should cut some features.
For me ,I delete the objects that not being shown to save memory then create them when needed.
The objs be deleted should be handled carefully,I made them point to NULL.
What objects you created? And how many memories you got?
This is the detail of my device. Is that poor??? I create menu. So i create a container to contain the basic screen and then when I click the menu button I clean the container by using lv_obj_clean() function. and then I recreate that container. That’s what I did. I wonder what I did is memory - wasted or not???
*2 Mbytes of Flash memory, 256 Kbytes of RAM
You can give it all the left ram,then monitor the usage ,decrease it by the monitor result to a reasonable value.
You should let us know your lcd resolution,your lcd driver.
The code quite long . So I think It’s quite difficult to upload it. But you may right, I clean the object and create it many times so that it creates my error. But any ideas to resolve this. I know it sounds strange but logically when I change the screen I have already clean the children of it and redraw the screen. So it’s can’t be out of memory at all @@