How can I connect STM32G071 board with ST25R3911B chip (X-NUCLEO-NFC05A1)?
Hello there, STM32 community!
I am new to the STM32 family and I am currently working on a project to read and write Mifare Classic and Desfire tags. For this, I am using an STM32G071-NUCLEO64 microcontroller and a X-NUCLEO-NFC05A1 (ST25R3911B) board connected via SPI. I have been trying to establish the SPI connection between the two devices and send/receive data, but so far, I have not been successful.
Initially, I tried to use the SPI example provided in STM32CubeIDE, but I was not able to receive data correctly.
Then, I followed a post on the ST community website to use the RFAL/NDEF libraries for my project. However, the post was for the 32f070RB board, and I had to make some modifications to make it work with my hardware.
Unfortunately, after copying the RFAL and NDEF libraries into my project, modifying the platform.h file, and adding the necessary modules, I am still unable to get it working.
The error I am receiving is:
#define ERR_HW_MISMATCH ((ReturnCode)36U) /*!< expected hw do not match */after executing rfalNfcInitialize().
I am feeling lost and unable to find a suitable example for my specific case.
Can someone please guide me on how to initialize the connection between the STM32G071 and the ST25R3911B chip?
What is the best way to receive data and work with it?
Thank you very much for your time and help!



