X-nucleo-nfc05a1 + NucleoL476RG: NTAG read/write issue
During the first tests, using the suggested combo x-nucleo-nfc05a1 + NucleoL476RG, we noticed something strange: swiping an example NFC tag (see attachment) resulted in a failure, when it seemed to be a classic NTAG213.
Digging into the code (X-CUBE-NFC5 library) we found that in the file ndef_t2t.c, line 360-364, if the TLV type field has Lock Control TLV or Memory Control TLV, any NDEF operation for the badge fails. Returning ERR_REQUEST(5).
As you can see in the source code, it is explicitly stated that “ /* No support of Lock control or Memory control in this version */ ”. Then, if we comment out that portion of the code, we can read and write the TAG without problems.
Is this a known problem? It looks strange to us that the driver can’t handle this case, while other systems (e.g., ST25 mobile app) have no issues with the same NFC tag.
Maybe the X-CUBE-NFC5 library is not updated?
Thank you for your support.
Best regards,
