Using:
- NRF9151
- TF-M enabled
- NCS 3.2.2
I'm trying to find more space for my heap on the nrf9151 and I'm disappointed that with a minimal implementation of TF-M I can't get the RAM footprint lower than 32KB. I'm not too fussed about the flash usage.
Docs recommend using CONFIG_PM_PARTITION_SIZE_TFM_SRAM to set the RAM size lower, but it always lands on 32KB. Is this now fixed at a minimum?
I've tried the following as a Kconfig fragment:
CONFIG_PM_PARTITION_SIZE_TFM_SRAM=0x6000
My minimal TF-M build compiles to this:
Memory region Used Size Region Size %age Used
FLASH: 32072 B 64 KB 48.94%
RAM: 14364 B 32 KB 43.84%
[142/146] Generating ../bin/tfm_s.hex