Operation of execution between secure and non secure code In Trust-zone MCU(STM32U5)
Hello Support Team,
Good day,
we are working on the Code Isolation activities on the STM32U585ZIT6Q controller
While creating sample code with enabled trust zone, It is divided into the two-part,
a. Secure code, It has own while loop but before that, control is transferred to the Non-Secure code through "NonSecure_Init()"
b. Non-Secure code, It will run after the secure control is transferred to the non-secure code through the "NonSecure_Init()" call in secure
We have some of the queries as per below,
As per the sample code, Secure fw does not performing any operation inside the while() loop and all operations take care of in the non-secure while() loop,
1. Can we write a code in a while () loop in the Secure firmware?
2. Can we change the state of the control of the operation access like secure and nonsecure code execution at any point of time?
ex. Non-secure code performing in data collection operation and after some time we have to perform the separate code execution which is part of the Secure fw (assume in while(1) handling) which is isolated from the Non-Secure fw, so How can we perform?
It would be appreciated to share the possible solution so, we can do better development.
Thanks
Hiren R. Thumar
