Skip to main content
V.H
Senior
April 7, 2022
Question

A large number of widgets are used, causes a lot of memory usage.

  • April 7, 2022
  • 1 reply
  • 837 views

Hello all,

I use thousands of widgets in a project, and hundreds widgets in each screen.

Each widget occupies a chunk of static ram memory, it result in a large memory used.

And the ram widget used cannot release when screen changed.

  • Can I only use SDRAM to expand ram memory?

This topic has been closed for replies.

1 reply

Osman SOYKURT
ST Technical Moderator
April 7, 2022

Hello V.H,

Wow, thousands of widgets, that's impressive. Are you sure there is no way to reduce that amount ? :smirking_face:

The memory usage in internal RAM thus does not depend on the number of screens in the application, but on the size of the largest screen. So I advise you to try to reduce the size of your largest screen first.

Yes you can use SDRAM to expand ram memory if you need more. You can read this article for more info about it.

/Osman

ST Software Developer | TouchGFX