Hi,
I am opening a related question cause this is the same project, I still have issues with the RFID.
Issue description:
First I am testing the RFID with a close tag to it and I am trying to read it, see the image bellow.
But as before the Iso14443a_PollingCommand isn't end properly.
I am calling the Iso14443a_PollingCommand 5 times max if it returns STATUS_FAIL.
the following sequence happen always :
1. At the first call of the Iso14443a_PollingCommand the TRF7970A triggers an interrupt with pui8_IrqStatus == 0xC0 = PROTOCOL_ERROR.
2. As a result the Trf797xIrqWaitTimeout set the g_sTrf797xStatus to TX_ERROR and return.
3. At the second call of the Iso14443a_PollingCommand ( because the first one failed) the TRF7970A triggers an interrupt with pui8_IrqStatus == 0x80 = TX_COMPLETE
4. At this stage the Trf797xIrqWaitTimeout function works properly, waited for TX_COMPLETE and moves on to wait for RX_COMPLETE
5. At this stage I am waiting for IRQ with IRQStatus == 0x40 = RX_COMPLETE but the TRF7970A not triggering any interrupt.
6. the Trf797xIrqWaitTimeout sets the g_sTrf797xStatus = NO_RESPONSE_RECEIVED cause there is no IRQ from the TRF7970A , no matter how much time I am waiting( tried to wait until the g_ui8IrqFlag is high without a timeout)
7. This is repeated as long as I call again and again the Iso14443a_PollingCommand .
Need your help please
Best Regards
Jawad Khaleel
