Getting Hard Fault during function reset in S32K312

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

Getting Hard Fault during function reset in S32K312

4,094 Views
raj12
Contributor III

Hello, 

I am getting hard fault during function reset of s32k312. I am using S32K312EVB-Q172, PE Micro debugger and S32DS using RTD Build version S32K3_RTD_3_0_0_P07_D2306_ASR_REL_4_7_REV_0000_20230629.

I am calling Power_Ip_PerformReset(&Power_Ip_HwIPsConfigPB);

After calling of above function it is generating hard fault from below function,

static inline void Power_Ip_MC_ME_WriteControlKeys(void) ;

I am attaching the clock related setting and MCU settings Please find the attached file. 

Kindly help me on the above-mentioned issues.

Target - Debug_FLASH.

Thanks

@S32K312EVB-Q172, @Hard reset, @functional reset, @debug_FLASH 

0 Kudos
Reply
5 Replies

4,046 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@raj12

Could you please provided the project so that i can help you troubleshooting.

0 Kudos
Reply

4,033 Views
raj12
Contributor III

Hello @Senlent 

I apricated for your quick response.

As requested, I am attaching the project here. Kindly find the attachment.

Looking forward for your response.

Thank you.

0 Kudos
Reply

4,023 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@raj12

it works fine on myside, the hardware is S32K312EVB and i didn't meet any hardfault event.

Senlent_0-1699514517996.png

 

0 Kudos
Reply

4,016 Views
raj12
Contributor III

Hello @Senlent ,

Thanks for your quick response.

Please don't put breakpoint at line number 242 in Power_Ip_MC_ME.c file Power_Ip_MC_ME_WriteControlKeys(void) function.

Without putting breakpoint generating hradfault event. 

I am attaching my debug report. please look on to that also check the FES register.

FES register bit 29 is low in my case. It is indicating functional reset not done.

If functional reset successfully done this bit should be high state.

Looking forward for your response.

Thanks

0 Kudos
Reply

3,683 Views
Nhi_Nguyen
NXP Employee
NXP Employee

Hi @raj12 ,

You can try to enable this option:

Nhi_Nguyen_1-1702540997273.png

This help to attach to debug after  reset occurred.

Nhi_Nguyen_2-1702541030398.png

 

Best regards,

Nhi

 

0 Kudos
Reply