Problem using listen mode on the st25r3916b
I am trying to use the st25r3916b in listen mode to act as an NFCA card.
After successful calls to rfalNfcInitialize() and rfalListenStart(RFAL_LM_MASK_NFCA, ...) I am entering into a loop and calling rfalWorker(). In the same loop I call rfalListenGetState to try and see if any data comes back from the reader, which never does.
After debugging this some, I can see that inside rfalRunListenModeWorker (called from rfalWorker) always goes through the following state change:
RFAL_LM_STATE_POWER_OFF ->
RFAL_LM_STATE_IDLE ->
RFAL_LM_STATE_POWER_OFF
This seems to be happening because ST25R3916_IRQ_MASK_EOF is set on the st25r3916b's register. This feels strange because ST25R3916_IRQ_MASK_EON is also set, which is required for it to leave the idle state in the first place.
I feel like the chip is not configured properly, but I have no idea why.
Notes about setup:
X-NUCLEO-NFC08A1 dev board connected to NUCEL F401RE dev board.
I have successfully tested the setup in polling mode and can read cards no problem.
