Skip to main content
heyo
Associate III
July 19, 2023
Question

List layout buffer RAM usage

  • July 19, 2023
  • 4 replies
  • 2855 views

Why list layout buffer allocates so much RAM? (30KB) I want to create 60 elements in list. How to reduce that memory usage? Maybe someone has any tips.

heyo_0-1689746955214.png

 

This topic has been closed for replies.

4 replies

ST Employee
July 26, 2023

Hello @heyo ,

Could you please clarify what type of object you are using to put in a list? And it would be amazing to see how you got 30KB.

You can use Scroll List or Scroll Wheel to create a list with fixed number of elements. Here you find more information about them:

Scroll List: https://support.touchgfx.com/docs/development/ui-development/ui-components/containers/scroll-list

Scroll Wheel: https://support.touchgfx.com/docs/development/ui-development/ui-components/containers/scroll-wheel

Thank you

Mohammad MORADIST Software Developer | TouchGFX
heyo
heyoAuthor
Associate III
July 26, 2023

This is other example which I use in my project. I am creating 8 lists and in these lists I put elements. Each list has 5 elementslists.png

And I increase "numberOfListElements" from 5 to 8 and when RAM usage increased:

list1.png

If I correctly understand it depends on how much my class HotWaterCoilCfg allocates RAM

 

 

 

ST Employee
July 28, 2023

Yes, the size of the lists depend on how big you HotWaterCoilCfg class is. However, I can see you have 5MB of SDRAM available. If you're not planning to use that part, you can put those lists inside that, although you will lose some speed because it is External Ram. But if your application is not extremely time sensitive, you can take advantage of that.

Mohammad MORADIST Software Developer | TouchGFX
ARodr.17
Visitor II
August 10, 2023

Hi, I have the same issue here, I wanted to ask if you've managed to solve it?.

I also have some other ram banks and I'd like to use them.

ARodr17_0-1691661579738.png

Can you give me some advice on how to initialize and use this banks? I think I might need to change the STM32H747XI_FLASH.ld and STM32H747XI_RAM.ld files, but I am not sure on how to do this.

Thank you