2020-02-16 10:07 PM
Hey hi ,
Can anybody suggest why ST25R3911B is giving following errors:
The ST25R3911B IC is initializing properly for some initial functions but while starting field on and timer it gives some error as described below:
And further after in main loop , the Poller fucntion "rfalNfcaPollerTechnologyDetection()" is returning with error "0x03".
Need some help to debug what causing the problem.
Solved! Go to Solution.
2020-08-13 04:53 PM
I ran into the same issue of the read multiple registers being seen as 2 SPItransactions. I also have a SPI driver that manages the CS pin. What I did was to let the SPI manage the CS pin as well as left the platformSpiSelect() and platformSpiDeselect() functions as is and defined the #define ST25R391X_COM_SINGLETXRX macro in my platform.h.
If you dig around in the rfal library you will see that using the ST25R391X_COM_SINGLETXRX makes all ST25R SPI transactions into a single transaction.
Since the SPI drivers I am using are shared across different projects in my company, I did not have the liberty of modifying the CS pin management. In this case using the macro worked out perfectly for me.
2020-08-14 09:46 AM
Oh that's really good to know. Thanks a lot for the help, I have the RFAL library finally working now on my ESP32.