Hi everyone,
I have several questions related to manifest files in TFM:
- Currently TFM dos not support dynamic memory allocation, so
heap_size manifest field is a bit special. Presence of heap_size field for library model will generate error in
tfm_spm_db_func.inc.template but when TFM_PSA_API is ON heap_size is used in
partition_load_info.template which will silently set .heap_size struct field to 0 without generation of any error.
As dynamic memory allocation is not supported I think error should be generated in both files. Also I think that error should only be generated if
heap_size filed is present and is not “0” (if it is not present or is 0 then no error should be generated because it is compliant with “no dynamic memory rule”) - Manifest files support numbered mmio regions for partitions.
Example
"mmio_regions": [
{
"base": "MY_CUSTOM_REGION_BASE",
"size": "MY_CUSTOM_REGION_SIZE",
"permission": "READ-WRITE"
}
]
The questions is why doesn’t TFM use this field for ITS and PS areas instead of handling them manually? Can this be reworked to use mmio regions? If so then is this work planned and when approximately it will be done?
Regards,
Bohdan Hunko
Cypress Semiconductor Ukraine
Engineer
CSUKR CSS ICW SW FW
Mobile: +38099 50 19 714
Bohdan.Hunko@infineon.com