cancel
Showing results for 
Search instead for 
Did you mean: 

ST25DV64KC NDEFDectection failure

Nishi
Associate

I'm trying to read NDEF messages from my ST25DV64KC tag over I2C link. I have been able to read the CC file successfully but the NfcType5_NDEFDetection() method is failing while reading the first four bytes of the NDEF message from User memory. The logs for same are as follows:-

 

IOCTLR: messages[1]: addr: 0x57 (0xae), buf: 0xceb1eb9b (0000), len: 1, filehandle:3 ^M
NFC_IO_ReadReg16 OK^M
51
ST25DV-I2C init done

NFC_IO_ReadReg16(a6,0,ceb1ebf0,4)^M
IOCTLR: messages[1]: addr: 0x53 (0xa6), buf: 0xceb1ebf0 (5354), len: 4, filehandle:3 ^M
NFC_IO_ReadReg16 OK^M
e2 40 0 1

NFC_IO_ReadReg16(a6,4,ceb1ebf4,4)^M
IOCTLR: messages[1]: addr: 0x53 (0xa6), buf: 0xceb1ebf4 (4456), len: 4, filehandle:3 ^M
NFC_IO_ReadReg16 OK^M
0 0 4 0

NFC_IO_ReadReg16(a6,8,ceb1ebe8,4)^M
IOCTLR: messages[1]: addr: 0x53 (0xa6), buf: 0xceb1ebe8 (ae35), len: 4, filehandle:3 ^M
Error -5 while reading @8 (devAddr=A6)^M
<main> NfcType5_NDEFDetection failed !!!!!!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Rene Lenerve
ST Employee

Hi Nishi,

Do you have any data after the CCFile?

NfcType5_NDEFDetection is looking for TLV data after the CCFILE and return an error if it doesn't find it.

Kind Regards.

View solution in original post

1 REPLY 1
Rene Lenerve
ST Employee

Hi Nishi,

Do you have any data after the CCFile?

NfcType5_NDEFDetection is looking for TLV data after the CCFILE and return an error if it doesn't find it.

Kind Regards.