supervisor mode vs user mode for S32R274

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

supervisor mode vs user mode for S32R274

2,701件の閲覧回数
adrianonea
Contributor III

The S32R274 manual section 61.1.1 Register access states that :

The ENET registers cannot be accessed in user mode until at least one supervisor-mode access is made to the ENET module.

What is a supervisor mode and what is a user mode? are they DRUN and RUN0-RUN3 that are configured via Mode Control Registers? Are they something else? Is there code sample on how to change between the modes?

0 件の賞賛
返信
6 返答(返信)

1,842件の閲覧回数
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi, please pay attention to following training, page 15

e200 Core Training relevant to MPC55xx and MPC56xx device family 

or you may see here

https://community.nxp.com/thread/358090 

0 件の賞賛
返信

1,842件の閲覧回数
adrianonea
Contributor III

Thank you David,Can you please point me to the chapter in the S32R274 manual that describes the modes and associated registers that manage the modes?

I assume after a reset the system is in supervisory mode. Is that correct?

Will the startup code from D32DS change to user mode or is the system in supervisor mode when it enters "main"

From: davidtosenovjan <admin@community.nxp.com>

To: adrian onea <adrian_onea@yahoo.com>

Sent: Wednesday, 7 June 2017, 18:24

Subject: Re: - Re: supervisor mode vs user mode for S32R274

#yiv0303929274 * #yiv0303929274 a #yiv0303929274 body {font-family:Helvetica, Arial, sans-serif;}#yiv0303929274 #yiv0303929274 h1, #yiv0303929274 h2, #yiv0303929274 h3, #yiv0303929274 h4, #yiv0303929274 h5, #yiv0303929274 h6, #yiv0303929274 p, #yiv0303929274 hr {}#yiv0303929274 .yiv0303929274button td {}

|

NXP Community

|

Re: supervisor mode vs user mode for S32R274

reply from David Tosenovjan in MPC5xxx - View the full discussionHi, please pay attention to following training, page 15e200 Core Training relevant to MPC55xx and MPC56xx device family  or you may see hereHow to enter into supervisor mode and user mode in MPC5675K MCU? 

Reply to this message by replying to this email, or go to the message on NXP Community

Start a new discussion in MPC5xxx by email or at NXP Community

Following Re: supervisor mode vs user mode for S32R274 in these streams: Inbox

This email was sent by NXP Community because you are a registered user.

You may unsubscribe instantly from NXP Community, or adjust email frequency in your email preferences |

|

0 件の賞賛
返信

1,842件の閲覧回数
davidtosenovjan
NXP TechSupport
NXP TechSupport

pastedImage_2.png

By default it is in supervisor mode. Check core register MSR.

0 件の賞賛
返信

1,842件の閲覧回数
adrianonea
Contributor III

thank you David, I found that too but I was hoping there is more info somewhere else like what instructions/functions etc are available in each mode. However it does not matter now My software can stay in supervisor mode.do you have a MPC assembler manual?

From: davidtosenovjan <admin@community.nxp.com>

To: adrian onea <adrian_onea@yahoo.com>

Sent: Tuesday, 13 June 2017, 19:20

Subject: Re: - Re: supervisor mode vs user mode for S32R274

#yiv7490242560 * #yiv7490242560 a #yiv7490242560 body {font-family:Helvetica, Arial, sans-serif;}#yiv7490242560 #yiv7490242560 h1, #yiv7490242560 h2, #yiv7490242560 h3, #yiv7490242560 h4, #yiv7490242560 h5, #yiv7490242560 h6, #yiv7490242560 p, #yiv7490242560 hr {}#yiv7490242560 .yiv7490242560button td {}

|

NXP Community

|

Re: supervisor mode vs user mode for S32R274

reply from David Tosenovjan in MPC5xxx - View the full discussion https://community.nxp.com/servlet/JiveServlet/downloadImage/2-913942-186598/pastedImage_2.png  By default it is in supervisor mode. Check core register MSR.

Reply to this message by replying to this email, or go to the message on NXP Community

Start a new discussion in MPC5xxx by email or at NXP Community

Following Re: supervisor mode vs user mode for S32R274 in these streams: Inbox

This email was sent by NXP Community because you are a registered user.

You may unsubscribe instantly from NXP Community, or adjust email frequency in your email preferences |

|

0 件の賞賛
返信

1,842件の閲覧回数
davidtosenovjan
NXP TechSupport
NXP TechSupport

It is following manual:

http://www.nxp.com/files-static/32bit/doc/ref_manual/EREF_RM.pdf 

To simplify it -  Supervisor/User mode is given by MSR[PR]. Some registers are accessible only in supervisor mode. It also affects accesses over MMU, MPU, XBAR and PBRIDGE where different access rights may be set for target access. This is needed to check.

0 件の賞賛
返信

1,842件の閲覧回数
adrianonea
Contributor III

Thank you very much David,This is the info I needed.

Regards,Adrian

From: davidtosenovjan <admin@community.nxp.com>

To: adrian onea <adrian_onea@yahoo.com>

Sent: Wednesday, 14 June 2017, 23:47

Subject: Re: - Re: supervisor mode vs user mode for S32R274

#yiv5628399031 * #yiv5628399031 a #yiv5628399031 body {font-family:Helvetica, Arial, sans-serif;}#yiv5628399031 #yiv5628399031 h1, #yiv5628399031 h2, #yiv5628399031 h3, #yiv5628399031 h4, #yiv5628399031 h5, #yiv5628399031 h6, #yiv5628399031 p, #yiv5628399031 hr {}#yiv5628399031 .yiv5628399031button td {}

|

NXP Community

|

Re: supervisor mode vs user mode for S32R274

reply from David Tosenovjan in MPC5xxx - View the full discussionIt is following manual:http://www.nxp.com/files-static/32bit/doc/ref_manual/EREF_RM.pdf  To simplify it -  Supervisor/User mode is given by MSR[PR]. Some registers are accessible only in supervisor mode. It also affects accesses over MMU, MPU, XBAR and PBRIDGE where different access rights may be set for target access. This is needed to check.

Reply to this message by replying to this email, or go to the message on NXP Community

Start a new discussion in MPC5xxx by email or at NXP Community

Following Re: supervisor mode vs user mode for S32R274 in these streams: Inbox

This email was sent by NXP Community because you are a registered user.

You may unsubscribe instantly from NXP Community, or adjust email frequency in your email preferences |

|

0 件の賞賛
返信