2019-07-29 03:39 AM
Hi,
I'm surveying st25r3911b now. Currently, I have verified SPI, register read/write, IRQ handler, TX process, but not RX process.
So far, I can get the necessary IRQ, but I can't get the correct data in FIFO.
I make the following steps to test RX process:
IRQ: 0x00001002
IRQ: 0x00000802
IRQ: 0x00001002
IRQ: 0x00000802
IRQ: 0x00001002
IRQ: 0x00000802
IRQ: 0x00001002
IRQ: 0x00000802
IRQ: 0x00001002
IRQ: 0x00000020
bytesToRead 3
bytesToRead 4
bytesToRead 3
bytesToRead 4
bytesToRead 2
bytesToRead 0
receive FIFOIndex: 16
received data:
0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000
IRQ: 0x00000812
About the log, I have two questions:
Is there any method to check this issue?
Does anyone have suggestion for me?
thanks
Gavin
Solved! Go to Solution.
2019-08-06 04:46 AM
Hi Gavin,
I_rxs is signaled on start-of-receive. At this time no data is yet expected inside the FIFO. Data inside the FIFO is expected to be read on receiving I_wl or I_rxe.
As to why the read data is all 0x00 please provide a logic analyzer trace of SPI + IRQ.
Regards, Ulysses
2019-08-06 04:46 AM
Hi Gavin,
I_rxs is signaled on start-of-receive. At this time no data is yet expected inside the FIFO. Data inside the FIFO is expected to be read on receiving I_wl or I_rxe.
As to why the read data is all 0x00 please provide a logic analyzer trace of SPI + IRQ.
Regards, Ulysses