Where in the startup code core 0 for S32R247 is transitioned in RUN0 mode from DRUN mode

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

Where in the startup code core 0 for S32R247 is transitioned in RUN0 mode from DRUN mode

677 Views
adrianonea
Contributor III

After a reset the core0 transitions automatically in DRUN mode. Where does the automatically generated software changes the mode to RUN0. Can I leave it in DRUN mode.

I can see that the mode for the other two cores if enabled is set in the hw_init() function

3 Replies

499 Views
petervlna
NXP TechSupport
NXP TechSupport

Hi,

Just set debugger read/write breakpoint on ME_MCTL after reset and run your code.

And where your code stops after reset is mode change you are searching for.

There is no problem to run micro in DRUN mode.

Peter

499 Views
adrianonea
Contributor III

Thank you Peter,I just tested and core 0 starts in DRUN mode unlike core 1 and 2 which are set to RUN in hw_init.any particular reason?Can you also point me to the manual where it is explained how to set up the break point the way you described. Apologies for my ignorance.

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

To: adrian onea <adrian_onea@yahoo.com>

Sent: Thursday, 1 June 2017, 15:37

Subject: Re: - Re: Where in the startup code core 0 for S32R247 is transitioned in RUN0 mode from DRUN mode

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

|

NXP Community

|

Re: Where in the startup code core 0 for S32R247 is transitioned in RUN0 mode from DRUN mode

reply from Peter Vlna in MPC5xxx - View the full discussionHi,Just set debugger read/write breakpoint on ME_MCTL after reset and run your code.And where your code stops after reset is mode change you are searching for.There is no problem to run micro in DRUN mode.Peter

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: Where in the startup code core 0 for S32R247 is transitioned in RUN0 mode from DRUN mode 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 Kudos

499 Views
petervlna
NXP TechSupport
NXP TechSupport

Hi,

HW_init is part of compiler startup. There is no restriction what has to be done in compiler startups.

If they enable core, i see no issue here. You can always write your own startup.

To set breakpoint just use debugger. (refer to debugger manual for details)

Peter