Hello @yen_chen
I have solved this issue.
Actually I do not remember exact solution for this but as I remember I have done 2 changes in the code that I suggest you to do.
1. Add minor delay in continous card detection polling loop. I have checked the example for MifareClassic. I am attaching sample code for your reference.
2. Increase heap Size if you are running this code with RTOS. IF you are running with Baremetal then no need to increase heap Size.
do
{
/* Field OFF */
status = phhalHw_FieldOff(pHal);
CHECK_STATUS(status);
status = phhalHw_Wait(pDiscLoop->pHalDataParams,PHHAL_HW_TIME_MICROSECONDS, 5100); //5100
CHECK_STATUS(status);
/* Configure Discovery loop for Poll Mode */
status = phacDiscLoop_SetConfig(pDiscLoop, PHAC_DISCLOOP_CONFIG_NEXT_POLL_STATE, PHAC_DISCLOOP_POLL_STATE_DETECTION);
CHECK_STATUS(status);
/* Run Discovery loop */
status = phacDiscLoop_Run(pDiscLoop, PHAC_DISCLOOP_ENTRY_POINT_POLL);
vTaskDelay(10);
}while((status & PH_ERR_MASK) != PHAC_DISCLOOP_DEVICE_ACTIVATED); /* Exit on Card detection */
Please do above changes and let me know whether this works or not. If you find any error please let me know I will bring the hardware and test again.
Waiting for your reply.