Skip to main content
AndrewM
Associate III
Feb 7, 2020 8:00 AM UTC
Question

How to measure memory usage?

I need to measure memory usage in my TouchGFX application. Is there a way to do this?

This topic has been closed for replies.

2 replies

Ozone
Principal
Feb 7, 2020 8:39 AM UTC

First starting point would be the map file generated by the linker.

Not sure if the TouchGfx vendor supplies some additional evaluation tool for gfx-internal memory consumption.

eng23
Senior
Feb 7, 2020 10:44 AM UTC

Another approach would be starting a project in new version CubeMX 5.5 and enabling all necessary peripherals for touchgfx (ltdc, fmc, freertos) and generate code. After, look in CubeIDE>Build Analyzer the memory usage for ram and flash. So generate code with touchgfx v4.13, through X-CUBE-TOUCHGFX, open touchgfx IDE and generate code there. Now touchgfx is enabled and you can see the new memory usage.