2024-09-28 04:55 PM - edited 2024-09-28 04:57 PM
Hi to all.
I'm starting a new project where we use the STM32H7S3V8H, and with the code generated with the STM32CubeMX (see IOC file attached) it compiles perfectly the Boot code but the Application code allways fail with the following error message:
"cc1: error: target CPU does not support ARMv8-M Security Extensions"
We don't have idea what we must do in the IOC to change this situation. Anyone knows why this error is happend? Any clue?
Thanks in advance.
Isidre Solé
Solved! Go to Solution.
2024-10-15 03:07 AM
Hi @Isidre Sole ,
Currently, there is no possibility to deselect it from CubMX. I am escalating an internal ticket (193744 for internal follow-up ) to the concerned team and I will get back to you as soon as possible.
Thx,
Souhaib
2024-09-30 07:36 AM
Hello @Isidre Sole
Thank you for reporting,
I will check the issue internally and get back to you as soon as possible.
BR,
Souhaib
2024-10-07 01:03 AM - edited 2024-10-07 07:25 AM
2024-10-07 08:55 AM
Hello @Isidre Sole
Actually, I was not able to reproduce your issue on my end.
I would appreciate it if you could provide additional information for further investigation:
-Version of IDE
-Version of compiler or toolchain
Thnx,
Souhaib
2024-10-07 09:00 AM - edited 2024-10-07 09:02 AM
As you can appreciate in the IOC file attached in the first message I use the CMake option.
cmake version 3.27.6
arm-none-eabi-gcc (Arm GNU Toolchain 13.2.rel1 (Build arm-13.7)) 13.2.1 20231009
All working on a debian system :
Linux lab.sistemeskairos.cat 6.1.0-25-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.106-3 (2024-08-26) x86_64 GNU/Linux
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm
Best regards
Isidre
2024-10-08 06:33 AM
Hello @Isidre Sole
STM32 does not support the Arm GNU Toolchain 13.2.rel1 version yet, can you try to build with the version 12.3.rel1.20240306-1730?
Thx
Souhaib
2024-10-09 09:01 AM
Same result
Is strange because the boot part compiles it perfect. And is directly the code generated. No modified in any way.
Some clue why shows that error?
2024-10-14 08:30 AM - edited 2024-10-14 08:31 AM
Hello @Isidre Sole
Could you check that you are not using -mcmse flag when building the project with gcc.
KR,
Souhaib
2024-10-14 09:05 AM
Yes it is used on the App side, not in the Boot side.
I removed it in the CMakeList.txt and it compiles completely.
Why STM32CubeMX places it?
How can I deselect that in the IOC file?
Thanks a lot @Souhaib MAZHOUD
Isidre
2024-10-15 03:07 AM
Hi @Isidre Sole ,
Currently, there is no possibility to deselect it from CubMX. I am escalating an internal ticket (193744 for internal follow-up ) to the concerned team and I will get back to you as soon as possible.
Thx,
Souhaib