Hi Thomas,
Thanks for testing. Much appreciated.
The line I’m using (for ARMCLANG) is: cmake -S . -B build_ARMCLANG_Relwithdebinfo '-GUnix Makefiles' -DTFM_PLATFORM=cypress/psoc64 -DTFM_TOOLCHAIN_FILE=toolchain_ARMCLANG.cmake -DCMAKE_BUILD_TYPE=Relwithdebinfo -DTEST_NS=ON -DTEST_S=ON -DTFM_ISOLATION_LEVEL=2
Looks like we have a fix to the armclang PSoC assembly code that I’ll push to gerrit soon.
Chris
From: Thomas Törnblom thomas.tornblom@iar.com Sent: Thursday, October 7, 2021 5:03 AM To: Brand Chris (CSCA CSS ICW SW PSW 1) Chris.Brand@infineon.com Cc: tf-m@lists.trustedfirmware.org; kevin.peng@arm.com Subject: Re: [TF-M] Problem with PSoC armclang build
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.
I have tested builds with all three tool chains and I'm not seeing any issues.
I had an initial issue with the ARMCLANG build, where it would not boot properly, but after running an IARARM and GNUARM build, the ARMCLANG build appears to work, at least running the regression tests and leaving it running.
Can you provide the cmake command line?
Cheers, Thomas Den 2021-10-07 kl. 06:01, skrev Thomas Törnblom: Any hints on how to provoke the issue?
I can test it with an IAR build.
Cheers, Thomas
7 okt. 2021 kl. 02:01 skrev chris.brand--- via TF-M tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org: Hi,
We’ve been investigating a problem with the armclang builds for PSoC. The symptoms are that the board just repeatedly reboots. We’ve narrowed it down to commit 300c68da11 “SPM: Use Main Stack for initialization”. This commit is fine with the gcc toolchain but doesn’t seem right for armclang (we haven’t yet looked at IAR). Still digging into the issue, but I figured it might be helpful to give it more publicity.
Chris Brand
Cypress Semiconductor (Canada), Inc. Sr Prin Software Engr CSCA CSS ICW SW PSW 1 Office: +1 778 234 0515 Chris.Brand@infineon.commailto:Chris.Brand@infineon.com
-- TF-M mailing list TF-M@lists.trustedfirmware.orgmailto:TF-M@lists.trustedfirmware.org https://lists.trustedfirmware.org/mailman/listinfo/tf-m
--
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.commailto:thomas.tornblom@iar.com Website: www.iar.comhttp://www.iar.com Twitter: www.twitter.com/iarsystemshttp://www.twitter.com/iarsystems