We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
I would like to shortly understand the differences between the the ".rteconfig->Device and Board->Security Mode" values:
and how it effects the project per specific option
Thanks in advanced,Ronen
Hi Ronen,
It defines whether or not this code resides in secure or non-secure world. This is described here:https://developer.arm.com/documentation/100748/0619/Security-features-supported-in-Arm-Compiler-for-Embedded/Overview-of-building-Secure-and-Non-secure-images-with-the-Armv8-M-Security-Extension
It is controlled by the -mcmse compiler option:https://developer.arm.com/documentation/101754/0619/armclang-Reference/armclang-Command-line-Options/-mcmse
Ronan
Thanks Ronan.
Another question pls:My linker command does not include the option -mcmse.In that case would it be correct to say that my build image runs in a "Non-secure" state?
-mcmse
Thanks,Ronen
It is a _compiler_ option rather than linker.
If you are concerned... It may be better to think that the code is not making use of the Trustzone-M functionality of Armv8-M, rather than it simply being 'non-secure'!
Oops, sorry i meant for a compiler option.Yes, this is much better to understand that my code "is not making use of the Trustzone-M functionality".
Thanks again,Ronen