AnsweredAssumed Answered

PN7462 hardfault handler issue

Question asked by Midhun V R on Apr 5, 2019
Latest reply on Apr 16, 2019 by Midhun V R

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

Outcomes