S32K311 is reset when stop debug mode

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

S32K311 is reset when stop debug mode

3,345 Views
vanketnguyen
NXP Employee
NXP Employee

Hi,

When we use debug mode, it works fine, but when we stop debug mode, then S32K311 got reset when at high frequency (120 Mhz), however it still works ok (S32K311 does not reset)  at low frequency (60 Mhz).

The setup is S32K31x EVB + S32SD v3.5 + RTD 3.0.0.

 

Our application needs to run at high frequency. Can you help to check what the root cause?

0 Kudos
Reply
6 Replies

3,096 Views
vanketnguyen
NXP Employee
NXP Employee

Hi,

Customer is able to solve the issue now after they set HSE clock at 60 Mhz

0 Kudos
Reply

3,275 Views
vanketnguyen
NXP Employee
NXP Employee

Hi Daniel,

We have configured all clocks according to the table 148 as you mentioned. We think the root cause seems like that when we write DIV bit of MUX_0_DC_2 register (MC_CGM.MUX_0_DC_2[DIV] ) with a value different from 1, then the reset happens.  There is one ticket as below, and @VaneB said it was due to the RTD 3.0.0. Could you help to check and confirm?

https://community.nxp.com/t5/S32K/S32K312EVB-reset-problem/m-p/1671141#M24067

 

To provide more detail, to avoid the system reset, we have to set MC_CGM.MUX_0_DC_2[DIV]=1, then AIPS_SLOW_CLK is out of range. To fix this, we have to reduce PHI0 (CORE PLL Output divider 0) from 120 Mhz to lower value , 60 Mhz.

0 Kudos
Reply

3,262 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @vanketnguyen,

I just sent you an email.

 

Regards,

Daniel

0 Kudos
Reply

3,231 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @vanketnguyen,

Can you read the MC_RGM[DES, FES] registers to identify the source of the reset?

Is the HSE_FW installed on the MCU?

 

Thank you,

BR, Daniel

0 Kudos
Reply

3,157 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @vanketnguyen,

I was able to reproduce the issue.

It works with the Power_Ip driver.

My test project is attached (RTD 3.0.0_P07_D2306).

 

Regards,

Daniel

0 Kudos
Reply

3,324 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @vanketnguyen,

Something similar was discussed here:

https://community.nxp.com/t5/S32K/The-program-runs-normally-with-a-debugger-but-the-program-runs/m-p...

Make sure that all the clocks are configured according to Table 148. Option B - Reduced Speed mode (CORE_CLK @ 120 MHz).

 

Regards,

Daniel

 

 

 

0 Kudos
Reply