ST25R3916 Not Initializing Properly when using the RFAL library
Hello,
I am developing an application that uses a ST25R3916 to detect and process tags. The application is running Azure RTOS and I've connected the reader to the uP using SPI. Physically, I am using an NXP RT1060 dev kit and the X-NUCLEO-NFC06A1 dev kit connected with jumper cables. I am trying to get to the point where I can detect a tag, but I'm getting errors as I run the code per the example.
Per the example and my code, I use the following sequence to initialize the device for communication with a ISO 15963 tag:
- rfalAnalogConfigInitialize();
- err = rfalInitialize();
- Returns ERR_NONE
- err = rfalNfcvPollerInitialize();
- Returns ERR_NONE
- err = rfalFieldOnAndStartGT();
- Returns ERR_INTERNAL (12U)
- Generated by line 1190 in rfal_rfst25r3916.c
- ret = st25r3916PerformCollisionAvoidance( ST25R3916_CMD_INITIAL_RF_COLLISION, ST25R3916_THRESHOLD_DO_NOT_SET, ST25R3916_THRESHOLD_DO_NOT_SET, gRFAL.timings.nTRFW );
- Check ignored as per in the example
- err = rfalNfcvPollerCheckPresence( &invRes);
- Returns ERR_IO (3U)
- Generated by line 2953 in rfal_rfst25r3916.c
- ret = rfalTransceiveRunBlockingTx();
At this point, I'm trying to understand why I'm getting these errors so I can continue debugging. I'm fairly confident in the SPI interface since I can communicate and configure the device. Additionally, I am confident in the mutexs implementation and the irq handler.
Does anyone have any thoughts on things to check?
Thanks in advance!
