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
Could you please provided the project so that i can help you troubleshooting.
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.
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
Hi @raj12 ,
You can try to enable this option:
This help to attach to debug after reset occurred.
Best regards,
Nhi