Closed jeromecoutant closed 4 years ago
The currently supported compiler versions are:
Internal Jira reference: https://jira.arm.com/browse/MBOCUSTRIA-1324
Strange, should work according to the requirements but fails
arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors 6-2017-q2-update) 6.3.1 20170620 (release) [ARM/embedded-6-branch revision 249437]
6-2017-q2 - gcc 6.3.1.
@jeromecoutant is this issue also in the upstream repository or just ours (our import issue) ?
Hi I have only mbed environment, I don't have any "pure" TFM.
Looking at the latest version of tfm_nspm.c
in TF-M upstream, there are only minor differences with what we have in Mbed OS. I don't see why this problem wouldn't also exist in upstream TF-M.
Please raise an issue at https://developer.trustedfirmware.org
Please raise an issue at https://developer.trustedfirmware.org
I can't know if compile issue comes from MBED port or if it is pure TFM So, I will not raise any ticket... And to be honest, GCC6 issue is a bit outdated...
Hi @jeromecoutant, @Patater and I looked into this issue and it is a GCC6.3 compiler issue. It looks like the compiler is generating a branch instruction before expanding CMSE related instructions which is causing the assembler to fail with "branch out of range". We'd recommend switching to GCC7 or higher while compiling the secure side.
I believe this can be closed - we now use GCC 9.
Description
TFM cannot be compiled with GCC version 6: (GNU Tools for ARM Embedded Processors 6-2017-q2-update)
Setting GCC version 7 solves the issue. (GNU Tools for Arm Embedded Processors 7-2018-q2-update)
Issue requested by @devran01 in order to follow the point.
Issue request type