ST25R3916 Chip ID Check Fails on STM32L010RB – Stuck in Error Handler
Hi everyone,
I'm currently working with the X-NUCLEO-NFC08A1 expansion board and using the ST25R3916 NFC reader IC with an STM32L010RB microcontroller.
When I call rfalNfcInitialize(), the initialization process fails and enters the error handler. After some debugging, I found that the issue happens specifically at this point in the code:
if( !st25r3916CheckChipID( NULL ) )
{
platformErrorHandle(); //This is the point where the code gets stuck
return RFAL_ERR_HW_MISMATCH;
}
The st25r3916CheckChipID() function seems to fail, and the chip revision is read as 0. This causes the code to jump to platformErrorHandle() and get stuck in an infinite loop in _Error_Handler().
I checked the wiring, SPI connections, and power supply. Everything seems correct, but I still can’t figure out what is causing the chip ID check to fail. I'm using the provided driver from ST and haven’t modified the low-level SPI functions.
Chip revision is read as 0.
MX_X_CUBE_NFC6_Init()
↳ MX_NFC8_PollingTagDetect_Init()
↳ st25r3916CheckChipID(&rev)
↳ platformErrorHandle()
Has anyone faced a similar issue or have any suggestions on what might be wrong or what else I can check?
Thank you in advance!
Note: I'm still a student and learning, so any extra explanation would be appreciated :smiling_face_with_smiling_eyes:
