LPC55S69 : privileged or not ?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC55S69 : privileged or not ?

373 Views
EugeneHiihtaja
Senior Contributor I

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

Labels (1)
0 Kudos
1 Reply

299 Views
soledad
NXP Employee
NXP Employee

Hi,

We are checking this internally, I will update you as soon as possible,

have a nice day

Regards

Soledad

0 Kudos