davemgreen wrote: Hi I'm pretty sure the TrustZone is the AArch32 A-profile extension. Trustzone for Cortex-M is CMSE in the compiler, which is Feature8MSecExt and should be included already via ARMv81mMainline. https://github.com/llvm/llvm-project/pull/109770