Hi Cristiano,
That’s not a platform that’s supported for TF-M, but as you note it is very similar to the platform that is supported. There should be enough Flash on that board for a TF-M image. The Relwithdebinfo build that I just did occupies around 240KB of flash. Not sure how much RAM it needs. SMPU configuration is a bit tricky – the SMPU itself is a little inflexible. I’d suggest disabling SMPU protection of RAM to start with. Get it running like that and then add the SMPU protection once you have something running on the board. The build generates a tfm_s.map file that can be quite useful in figuring out what is located where.
Chris
From: TF-M tf-m-bounces@lists.trustedfirmware.org On Behalf Of Cristiano Rodrigues via TF-M Sent: Thursday, November 4, 2021 11:46 AM To: tf-m@lists.trustedfirmware.org Subject: [TF-M] PSoC64 TF-M - Port to CYB06447BZI-D54
Caution: This e-mail originated outside Infineon Technologies. Do not click on links or open attachments unless you validate it is safehttps://intranet-content.infineon.com/explore/aboutinfineon/rules/informationsecurity/ug/SocialEngineering/Pages/SocialEngineeringElements_en.aspx.
Hi guys,
I am trying to put tf-m running in the PSoC64 board. However, I have a board that is slightly different from the one used by default in the tf-m. (I have CYB06447BZI-D54 and the default tf-m is prepared to CYS0644xxZI-S2D44). For what I saw, the main difference among them is in memory, CYB06447BZI-D54 has 1MB of flash and 256kB of RAM and CYS0644xxZI-S2D44 has 2MB of Flash and 1MB of RAM.
So now I'm trying to make a small port from tf-m to CYB06447BZI-D54.
I changed the flash size in the flash_layout.h file to meet the CYB06447BZI-D54 flash size, however, I am having some difficulties in changing the RAM size. I am trying to change the RAM partitions size in region_defs.h and the smpu definitions of that partitions in smpu_config.h, but without much success.
My question are:
* Is possible to do the porting? Or does CYB06447BZI-D54 not have enough memory to run tf-m? * If possible, what is I missing? Are more changes needed than I'm making? Best regards, Cristiano Rodrigues