cancel
Showing results for 
Search instead for 
Did you mean: 

List layout buffer RAM usage

heyo
Senior

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

 

4 REPLIES 4

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 MORADI
ST Software Developer | TouchGFX

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

 

 

 

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 MORADI
ST Software Developer | TouchGFX
ARodr.17
Associate II

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