2023-09-14 04:30 AM
Hi everyone,
I've just migred my project from st25r95 to st25r2916 NFC chip. Finally I could reach a good point where seem to be all working again.
But I have one issue with rfalNfcvPollerReadMultipleBlocks() function.
Firstly, I want to describe you the sequence I do to execute the function I said above:
1. I do an Inventory to discover the tag UID
2. I use rfalNfcvPollerGetSystemInformation() to retrieve the information about the TAG
3. Finally, I use rfalNfcvPollerReadMultipleBlocks(RFAL_NFCV_REQ_FLAG_DEFAULT | RFAL_NFCV_REQ_FLAG_SELECT, NULL, 0, 2-1, &data[0], (2 * 4+ 1), 7);
NOTE:
With this configuration, I get CRC_ERR (0x15) as a return code.
I don't understand what it means. Could you kindly explain it to me, please? What could cause this error?
Thank you very much.
Enric Puigvert
Solved! Go to Solution.
2023-09-14 05:17 AM
Hi Enric,
ST25R39xx devices are doing the NFC-V decoding in software. The driver needs two more byte to be able to store the CRC-16 and subsequently check it. I think just making the provided RX buffer 2 bytes larger should solve your issue.
BR, Ulysses
2023-09-14 05:17 AM
Hi Enric,
ST25R39xx devices are doing the NFC-V decoding in software. The driver needs two more byte to be able to store the CRC-16 and subsequently check it. I think just making the provided RX buffer 2 bytes larger should solve your issue.
BR, Ulysses
2023-09-14 05:55 AM
Hi Ulysses,
I've just tried your solution, and you were right! I was missing the 2 bytes from CRC.
Thank you very much for your fast response :)
Greetings,
Enric Puigvert