register MCM_PID in user task

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

register MCM_PID in user task

468 Views
Yellen
Contributor II

Hi,

I want to use PID to define different access rights for different user tasks. It seems that I should dynamicly change the MCM_PID reigster.

Referring to the RM for S32K1xx, it says the MCM_PID is accessible only in Supervisor mode. While the user tasks are running at user mode. How can I change the MCM_PID in user tasks?

Best Regards,

Yellen

Tags (2)
0 Kudos
4 Replies

424 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Could you clarify where it is stated that MCM_PID can be accesses only in supervisor mode? In my opinion it is accessed in both modes.

0 Kudos

419 Views
Yellen
Contributor II

Hi David,

Thanks. 

It lies in Section 10.3 of S32K1xx Series Reference Manual, Rev. 12.1, 02/2020.

Snipaste_2023-06-13_17-38-20.png

0 Kudos

395 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

I have been confirmed that if application is in user mode, it can not change MCM_PID. Usually, the value of MCM_PID should be defined in supervisor mode.

0 Kudos

388 Views
Yellen
Contributor II

So will there be a way to define different values of MCM_PID for user application? Like a lib function that could change to supervisor mode and modify the MCM_PID, then return to user mode?

0 Kudos