Hi Bohdan,
support for -masm=armasm is indeed not available for Cortex-M55 and newer CPUs. This is meant to be a temporary option to allow the migration of legacy assembly code to the GNU notation. In TF-M we keep it as an option but we should drop it as well soon now that we don't have pretty much anymore assembly source in the project apart for some platform startup files, and in particular we have just realised that the psoc64 armclang startup files would have to be aligned to the GNU ones for this to work. We will loop you in that change soon.
For your case specifically, you should avoid -masm=armasm and use https://github.com/Infineon/mtb-dsl-pse8xxgp/blob/master/pdl/drivers/source/...
Thanks, Antonio ________________________________ From: Bohdan.Hunko--- via TF-M tf-m@lists.trustedfirmware.org Sent: Wednesday, October 15, 2025 11:00 To: tf-m@lists.trustedfirmware.org tf-m@lists.trustedfirmware.org Subject: [TF-M] TFM fails to compile asm (.s) file for CM55 core
Hi all,
I see that https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/31942 changes the way ASM files are built for Clang, this seems to cause the issues in our build:
I am trying to compile following file https://github.com/Infineon/mtb-dsl-pse8xxgp/blob/master/pdl/drivers/source/... for cortex-m55https://github.com/Infineon/mtb-dsl-pse8xxgp/blob/master/pdl/drivers/source/TOOLCHAIN_ARM/cy_syslib_ext.s%20for%20cortex-m55 CPU but I get following errors:
armclang: error: armasm does not support CPU 'cortex-m55'
armclang: error: armasm does not support FPU 'unknown'
cmd.txt shows full compile command for this file.
I suppose this is because -masm=armasm does not support CM55 core?
Any ideas how to fix this?
Regards,
Bohdan Hunko
Cypress Semiconductor Ukraine
Engineer
CSUKR CSS ICW SW FW
Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com