Memory optimization in TF-M enabled applications

Hi, 

We have a project where we are using TF-M application along with DFU and we observe a memory overflow in the TF-M partition when we try to reduce the TF-M partition size.

Attached the memory report.

What is b0 partition and EMPTY_X partitions are used?  How to reduce these partitions size?

We see TF-M is consuming around 270KB and how to reduce this partition at least to its half. 

We basically need the TF-M partition to be minimal to make room for application in non-secure partition.

memory-map.xlsx

Parents
  • Hi, 

    Can anyone please take a look into this, as this is blocking our further implementation.

    Thank you in advance.

  • Hi,

    Jithin A said:
    Can anyone please take a look into this, as this is blocking our further implementation.

    We do normal working weeks, so we do not answer in the weekends. Thank you for your patience.

    Which features do you have in your project?

    What does your bootloader setup look like?
    Which TF-M profile type do you use?

    Have you tried to enable TF-M with different configurations? Do you see the same error then?
    Do you see the same issue for the Hello World sample in  Zephyr, if you add bootloaders and TF-M to it?

    Regards,
    Sigurd Hellesvik

Reply
  • Hi,

    Jithin A said:
    Can anyone please take a look into this, as this is blocking our further implementation.

    We do normal working weeks, so we do not answer in the weekends. Thank you for your patience.

    Which features do you have in your project?

    What does your bootloader setup look like?
    Which TF-M profile type do you use?

    Have you tried to enable TF-M with different configurations? Do you see the same error then?
    Do you see the same issue for the Hello World sample in  Zephyr, if you add bootloaders and TF-M to it?

    Regards,
    Sigurd Hellesvik

Children
No Data