This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Weird flash usage report while using TF-M

Hi!

If I build my project with TF-M I noticed that at least the flash usage report differs dramatically compared to the original firmware:

Original:

Memory region | Used Size | Region Size | %age Used
        FLASH:   206060 B      409088 B      50.37%
         SRAM:    83760 B      178968 B      46.80%

With TF-M enabled:

Memory region | Used Size | Region Size | %age Used
        FLASH:   193676 B        208 KB      90.93%
         SRAM:    79024 B      178968 B      44.16%

The actual firmware size makes sense so far and both variants boot fine. My expectation was that the sections should be more or less identical.

Regards

Caspar

Related