trust zone for cortex-m33

Bug #1845155 reported by Sergey Kirdyankin on 2019-09-24
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Arm Embedded Toolchain
Undecided
Unassigned

Bug Description

If I use -mcmse then I have error:

c:\users\user\appdata\roaming\xpacks\@gnu-mcu-eclipse\arm-none-eabi-gcc\8.2.1-1.7.1\.content\lib\gcc\arm-none-eabi\8.2.1\include\arm_acle.h:177:9: error: target CPU does not support ARMv8-M Security Extensions
 #pragma GCC target ("arch=armv8-a+crc")

description: updated

This is not a bug, armv8-a does not support CMSE. Working as intended.

Sergey Kirdyankin (inxsergey) wrote :

But I use cortex-m33 (Armv8-m.main+dsp)

Sergey Kirdyankin (inxsergey) wrote :
Sergey Kirdyankin (inxsergey) wrote :

This is a example eclipse project

Sergey Kirdyankin (inxsergey) wrote :

Invoking: GNU ARM Cross C Compiler
arm-none-eabi-gcc -mcpu=cortex-m33 -mthumb -mcmse -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -g3 -std=gnu11 -MMD -MP -MF"main.d" -MT"main.o" -c -o "main.o" "../main.c"
In file included from ../main.c:2:
c:\users\user\appdata\roaming\xpacks\@gnu-mcu-eclipse\arm-none-eabi-gcc\8.2.1-1.7.1\.content\lib\gcc\arm-none-eabi\8.2.1\include\arm_acle.h:178:9: error: target CPU does not support ARMv8-M Security Extensions
 #pragma GCC target ("arch=armv8-a+crc")

Oh I see now! Yes that does look wrong. Thanks!

Hi Sergey,

This has been fixed on gcc trunk recently in https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=274827 . Until the next release, if you want to use the current one I suggest you patch your local 'c:\users\user\appdata\roaming\xpacks\@gnu-mcu-eclipse\arm-none-eabi-gcc\8.2.1-1.7.1\.content\lib\gcc\arm-none-eabi\8.2.1\include\arm_acle.h' with the same changes to arm_acle.h.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments