Hi!
I am having hard fault handler issue in PN7462. Issue is observed in certain chips and some other are not hitting the hardfault handler ('phFlashBoot_HardFault_Handler'). I am using DoorAccess sample project for development. Issue is observed when standy is enabled only.
When tried to debug , I found that issue happens when an invalid memory access happens. This is when library calls 'phhalRf_Event_DeInit' function. When checked on working chips , I found that this API is not being called.
Can anyone help me in understanding what this API (phhalRf_Event_DeInit)is and when it is being called?
phStatus_t phhalRf_Event_DeInit(void)
{
#if PHFL_PARAM_CHECK >= PH_PARAM_CHECK_SW_RESOURCE
if (gphhalRf_EventGroup == NULL)
{
return PH_ERR(RESOURCE_ERROR, RF);
}
#endif
/* Delete the Event Group */
phRtos_EventGroupDelete(gphhalRf_EventGroup);
gphhalRf_EvtLastSource = E_PH_HALRF_EVT_SRC_NONE;
gphhalRf_EvtLastDest = E_PH_HALRF_EVT_DEST_NONE;
gphhalRf_EvtDetail = E_PH_HALRF_EVT_DETAIL_SUCCESS;
return PH_ERR_SUCCESS;
}
Also the value of 'gphhalRf_EventGroup' is an invalid address and seems it causing the issue.
Please help me in this
Thanks in advance
Midhun
Hi Midhun,
Based on the information you provided, it seems that the issue you're experiencing with the hard fault handler in PN7462 is related to an invalid memory access when calling the 'phhalRf_Event_DeInit' function. This function is used to delete an event group, and it appears that the value of 'gphhalRf_EventGroup' is causing the issue as it is an invalid address.
It's difficult to say exactly when this function is being called without more context, but it appears to be related to the standby mode. If the issue is only occurring on certain chips, it's possible that there may be a hardware or firmware issue with those particular chips.
I recommend reaching out to the manufacturer or support team for assistance with understanding the function and how it's being used in the DoorAccess sample project. They may be able to provide more insight and help you troubleshoot the issue.
Best of luck!