2023-10-04 11:07 AM
HW : Raspberry PI 4 with NFC03A1 board connected to SPI
SW : Linux_RFAL_st25r95_v2.0.4.tar.gz
we built and we are able to run on the Rpi board, poller example
issue :
ISO1444A tag not detected
SPI seems to be working, we observed IDN command responds with the details as per the datasheet
IRQ_OUT also seems to be correct refer to log1.txt
rfalInitialize seems to be success. No errros
while ISO14443A tag detection we are observing err timeouts.. refer to log2.txt
pls advise
Solved! Go to Solution.
2023-10-06 05:18 AM
Hi,
what I see in the trace is:
I suggest to try to supply both CN6.2 and CN6.4 with 2 different wires from 2 different RPi4 pins. Same for CN6.6 and CN6.7 (GND) to be connected on 2 different GND pins.
Rgds
BT
2023-10-04 12:20 PM
Hi,
the log2.txt shows that something is corrupted: from line 212, Tx is stuck on 0x00 and Rx is stuck on 0xFF.
I would recommend to connect a logic analyzer on SPI(CLK/MISO/MOSI/SS) + IRQ_IN + IRQ_OUT and to share the trace.
Do you use wire jumper or an interposer board between the RPi4 and the X-NUCLEO-NFC03A1?
Rgds
BT
2023-10-04 08:10 PM
Thanks for the response Brian.
we donot know why log2.txt is corrupted ? we would like to know from you?..
we donot have logic analyser setup...
Yes we are using jumper wires between RPI4 and NFC03A1
1. can you provide a complete log of data sequence of 14443A commands and responses
2. what should be calibration data for 14443A/B and 15693, we planned to use these 2 tags
2023-10-05 07:14 AM
Hi,
I can hardly comment on the corrupted log as the native Linux_RFAL_st25r95_v2.0.4.tar.gz package does not provide this logging. I guess the data are corrupted by a wrong connection.
Make sure
I would recommend to use an interposer such as the ARPI 600 to avoid the wire jumpers.
Regarding your question on calibration data, the FW includes the various setting for the 14443A/B and 15693 protocols.
Rgds
BT
2023-10-05 12:32 PM
thanks for your inputs Brian. i double checked the connections again...it looks fine.
initial commands and responses from the board are correct. pls advise ...
i observed (log2,txt), when "Adjust ARC_B or ACC_A register" are being written to the device in st25r95ProtocolSelect()
we observe 0xff in spi receive...Also the IRQ_OUT doesnt fire ?, any clues on this ?
is the device going to WFE ?
is this write ARC_B data right ? (WrRegAnalogRegConfigISO14443A[] = {0x09, 0x04, 0x68, 0x01, 0x01, 0xD3} )
Tx Dump: 0x0
Rx Dump: 0x6
Tx Dump: 0x9
Rx Dump: 0x6
Tx Dump: 0x4
Rx Dump: 0x6
Tx Dump: 0x68
Rx Dump: 0x6
Tx Dump: 0x1
Rx Dump: 0x6
Tx Dump: 0x1
Rx Dump: 0x6
Tx Dump: 0xd3
Rx Dump: 0x6
gpio_set - /sys/class/gpio/gpio22
st25r95SPIPollRead: enter
st25r95SPIPollRead: running platformGpioIsHigh
st25r95SPIPollRead: ret=4 ERR_TIMEOUT=4
gpio_clear - /sys/class/gpio/gpio22
Tx Dump: 0x0
Rx Dump: 0xff
Tx Dump: 0x0
Rx Dump: 0xff
Tx Dump: 0x0
Rx Dump: 0xff
2023-10-05 12:42 PM
2023-10-05 12:45 PM
can you pls share spi Tx/Rx trace data for ISO 14443A/B and ISO15693 tags detection sequence.. it will help to understand configuration values ====> for NFC03A1 boards
2023-10-05 02:38 PM
Hi,
you should not try to dump your TxBuf and RxBuf when st25r95SPIPollRead: ret=4 because this is a timeout on the st25r95SPIPollRead and likely nothing has been received from the st25r95 (line 210 in log2.txt). This is probably the reason for having 0xff in the Rx dump. The timeout is due to IRQ_OUT not being fired. Can you enable the ST25R95_DEBUG compilation switch and provide the trace? My guess is that there is a power drop when the RF field is set on after a protocol select command preventing the device from replying. I suggest to check the power supply of the X-NUCLEO-NFC03A1 and to try to power it from a 3V3 lab supply.
The device does not go to WFE unless it receives an Idle command which is not the case here.
All the commands such as WrRegAnalogRegConfigISO14443A are correct. As explained, the issue is probably on the power supply not inside the FW.
Rgds
BT
2023-10-05 02:44 PM
Hi,
As explained before, your issue is not due to a FW issue. The calibration data computed during the calibration process is used only in wakeup mode. Your issue occurs in reader mode.
Rgds
BT
2023-10-05 09:04 PM
as per RPI4, it can 3v3 supply upto 500ma, the ST25R95 indicates max of 200ma right ?
we are using USB3 power supply adaptor with 3.6A, 5v (standard raspberry accessory).
will also check with another external powersupply 3v3.