2021-10-17 09:52 PM
I found the file enSTSW_ST25RFAL001_v2.4.zip, it appears newer than the rfal code from the main project zip file en.x-cube-nfc5_v2.0.0 zip file. I tried to merge it in to see if it gets me past trouble reading ST25TV tags, but there are a lot of compile
I tried to merge it in to see if it gets me past trouble reading ST25TV tags, but there are a lot of compile problems. The file names are different and I'm having trouble merging into my STM32L476-Nucleo-PollingTagDetect project. Is this worth trying to do? Might I be able to read ST25TV tags if I upgrade to the latest rfal directories?
Solved! Go to Solution.
2021-10-18 12:14 AM
Hi,
I would suggest to use the latest ST25 Embedded NFC library rather than the standalone version of the RFAL.
Can you detail the trouble you have when reading ST25TV tags?
Rgds
BT
2021-10-18 12:14 AM
Hi,
I would suggest to use the latest ST25 Embedded NFC library rather than the standalone version of the RFAL.
Can you detail the trouble you have when reading ST25TV tags?
Rgds
BT
2021-10-18 06:24 AM
2021-10-18 06:57 AM
Hi,
Can you confirm you are using ST25TV02K tags?
NDEF NOT DETECTED (ndefPollerNdefDetect returns 5) means that the tag has not been NDEF formatted (i.e. Capability Container missing or NDEF TLV missing). Can you dump the memory content of tag E002230082770692 and provide this dump to me so that I can analyze it?
Regarding tag E00223019F6B3100, can you elaborate on EXITTING because not inited Operation completed ? This log is not in the original demo. On tag E00223019F6B3100, the NDEF L-field equals to 0 so the NDEF is empty (aka "INITIALIZED NDEF" state)
Rgds
BT
2021-10-18 07:13 AM
2021-10-18 07:43 AM
Hi Eric,
as the default memory factory setting is 00h, unless you format the tag, the NDEF Detect will return NDEF NOT DETECTED (ndefPollerNdefDetect returns 5). So make sure to have the tag being NDEF initialized. Once the tag is formatted, it contains an empty NDEF (e.g an NDEF TLV with L-field=0). In that case, NDEF Detect returns state=INITIALIZED NDEF and NDEF Read returns an error as the NDEF is empty.
Do you use the X-NUCLEO-NFC05A1 or your own HW?
If you want to restart from fresh in STM32CubeIDE, you have first to remove the 'old' project from the workspace. If you restart from fresh, I would recommend to use the latest ST25 Embedded NFC library for ST25R3911B.
Can you provide more details about your application?
Rgds
BT
2021-10-18 09:53 AM
2021-10-18 10:47 AM
Hi Eric
NDEF is a structured message that requires to have the tag having a specific header (called Capability Container) in block #0 and a specific TLV after block #0. This is why you need to format a tag when you want to use NDEF.
But a tag can be used without NDEF and each block of memory can be written thanks to the WRITE SINGLE BLOCK command. In that case, no need to format the tag. The WRITE SINGLE BLOCK command is demonstrated in the demoNfcv() function of demo_polling.c file of the polling demo. You just need to enable DEMO_NFCV_WRITE_TAG to true in the global defines. Regarding the counter, I would suggest you use the counter feature of the ST25TV (see §5.7 in the datasheet). You can use rfalST25xVPollerReadConfiguration and rfalST25xVPollerWriteConfiguration from rfal_st25xv.c to read and write the counter registers.
Rgds
BT