Currently our UI is consuming more flash.
So i am trying to optimize the memory consumption.
Setting the attribute ModeOfStringConstants to Compressed ensures that all string constants are stored compressed within the flash memory.
Inside report it is mentioned like it is compressed.
When we looked into the build report it was found that more memory is consumed by the font resource.
Could you please guide me to solve this issue?
please let us know the Platform Package that you are using and the Build Environment that you are using. The mentioned attribute ModeOfStringConstants is platform dependent and not supported on every platform.
Can you share more details about the flash memory footprint?
We are actually using NXP.iMX_RT_VGLite.RGBA8888 platform package
Thanks for the additional information. According to the flash usage report, the most flash consuming part are font resources and not string constants.
In case if i.MX RT1170 with VGLite, the font resources are stored always compressed - so the font resources are already stored compact. Fonts are usually stored compressed within the flash memory and loaded dynamically during runtime into the RAM.
The following hints may help to reduce the flash memory usage:
Ask Embedded Wizard
Welcome to the question and answer site for Embedded Wizard users and UI developers.
Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!