Hello !
I have FreeRTOS on nonsecure side and tasks' with user privileges is running there.
Task with user privileges call NSC function and on Secure side I have analyze CONTROL register:
int inPrivilegedMode(void)
{
return !(__get_CONTROL() & 0x1);
}
And looks like code on Secure side is continue execution with user privileges as well.
But it able to call FlashErase function from ROM and ROM area are marked as S-Priv by using MPC secure gates.
Is this right assumption that NSC call is not modify privilege level and code continue execution on Secure side with the same privileges ?
Or some settings should be forced in MISC_CTRL registers for be sure if secure side starts to distinguish privileged
and user states ?
Regards,
Eugene
Hi,
We are checking this internally, I will update you as soon as possible,
have a nice day
Regards
Soledad