trust zone for cortex-m33

Bug #1845155 reported by Sergey Kirdyankin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Arm Embedded Toolchain
New
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
Revision history for this message
Andre Vieira (andre-simoesdiasvieira) wrote :

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

Revision history for this message
Sergey Kirdyankin (inxsergey) wrote :

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

Revision history for this message
Sergey Kirdyankin (inxsergey) wrote :
Revision history for this message
Sergey Kirdyankin (inxsergey) wrote :

This is a example eclipse project

Revision history for this message
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")

Revision history for this message
Andre Vieira (andre-simoesdiasvieira) wrote :

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

Revision history for this message
Andre Vieira (andre-simoesdiasvieira) wrote :

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  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.