Getting Hard Fault during function reset in S32K312

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

Getting Hard Fault during function reset in S32K312

4,095件の閲覧回数
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 件の賞賛
返信
5 返答(返信)

4,047件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@raj12

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

0 件の賞賛
返信

4,034件の閲覧回数
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 件の賞賛
返信

4,024件の閲覧回数
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 件の賞賛
返信

4,017件の閲覧回数
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 件の賞賛
返信

3,684件の閲覧回数
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 件の賞賛
返信