Looks like it’s linking tfm_hal_platform_init() from platform/ext/common/tfm_platform.c rather than from platform/ext/target/cypress/psoc64/tfm_hal_platform.c.

 

Chris

 

From: TF-M <tf-m-bounces@lists.trustedfirmware.org> On Behalf Of Thomas Törnblom via TF-M
Sent: Friday, October 29, 2021 7:41 AM
To: tf-m@lists.trustedfirmware.org
Subject: [TF-M] fce78aef breaks psoc64 console output with IARARM and ARMCLANG toolchain

 

Caution: This e-mail originated outside Infineon Technologies. Do not click on links or open attachments unless you validate it is safe.

 

The current version breaks console output for the secure partition on psoc64 with IAR or ARMCLANG. Appears to work with GNUARM.

It appears that this commit is the culprit:
fce78aef  Platform: Duplicate the tfm_hal_platform_init

The console starts out good, then during tests only garbage is seen.

Linker script issues?

/Thomas

--

Thomas Törnblom, Product Engineer
IAR Systems AB
Box 23051, Strandbodgatan 1
SE-750 23 Uppsala, SWEDEN
Mobile: +46 76 180 17 80 Fax: +46 18 16 78 01
E-mail:
thomas.tornblom@iar.com Website: www.iar.com
Twitter:
www.twitter.com/iarsystems