PN532 (SPI) doesn't read Mifare card

Hi all,

trying to read Miface card with NFC MODULE V3 and https://github.com/elechouse/PN532 library seems to be rather problematic.

Started to look with Salea logic analyzer to find the issue but need little bit help in the process. So I am successfully reading version of the PN532 but after tryint to read Mifare with: readPassiveTargetID it seems that this method fails while unable to read back info and failing at isReady which never returns true.

If possible could someone please provide MOSI MISO byte exchange so I can compare it to my own.

readPassiveTargetID SPI communication looks like:

Write command:

Time [s],Packet ID,MOSI,MISO
0.502504900000000,0,0x01,0xAA
0.502518900000000,0,0x00,0xFF
0.502532800000000,0,0x00,0xFF
0.502546750000000,0,0xFF,0xFF
0.502560800000000,0,0x04,0xFF
0.502574750000000,0,0xFC,0xFF
0.502588700000000,0,0xD4,0xFF
0.502602900000000,0,0x4A,0xFF
0.502617250000000,0,0x01,0xFF
0.502631600000000,0,0x00,0xFF
0.502646100000000,0,0xE1,0xFF
0.502660000000000,0,0x00,0xFF
0.502676000000000,1,0x02,0xFF
0.502689900000000,1,0x00,0x00
0.603843900000000,2,0x02,0x00
0.603857800000000,2,0x00,0x01
1.106460450000000,,0x03,0x01
1.106474550000000,,0x00,0x00
1.106488750000000,,0x00,0x00
1.106502950000000,,0x00,0xFF
1.106517150000000,,0x00,0x00
1.106531350000000,,0x00,0xFF
1.106545550000000,,0x00,0x00

Read command (failing at isReady .... which never becomes ready):

Time [s],Packet ID,MOSI,MISO
0.000003750000000,0,0x02,0xAA
0.000017650000000,0,0x00,0x00
0.001908500000000,1,0x02,0x00
0.001922400000000,1,0x00,0x00
0.003916350000000,2,0x02,0x00
0.003930250000000,2,0x00,0x00
0.005924900000000,3,0x02,0x00
0.005938800000000,3,0x00,0x00
0.007933000000000,4,0x02,0x00

... continues for ~1000 cycles ... then timeout is detected ...

Any hints??

Don't you think we need to see your code?