2023-07-18 11:11 PM
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.
2023-07-26 04:15 AM - edited 2023-07-26 04:20 AM
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
2023-07-26 04:42 AM
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 elements
And I increase "numberOfListElements" from 5 to 8 and when RAM usage increased:
If I correctly understand it depends on how much my class HotWaterCoilCfg allocates RAM
2023-07-28 05:40 AM
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.
2023-08-10 03:16 AM - edited 2023-08-10 03:16 AM
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.
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