2024-04-09 05:41 AM
Hello,
For a school project, I am trying to use the module RC522 module to do RFID tagging with a Nucleo F401RE.
I had some issues to do it and was wondering if anyone has a good library with this board.
If needed, I can provide you my code.
2024-04-09 07:20 AM
2024-04-09 07:48 AM
It appears that my RC522 is constantly returning an error status, You may find my code attached.
This code was made for STM32F1xx and I simply changed the headers for STM32f4xx. Maybe the problem comes from here.
To explain, the module is supposed to send me the ID in the while loop. But it will only happen if the status is MI_OK. However, it continuously has the status MI_ERR, and I don't know why. Maybe it's also a problem with my cable ?
2024-04-09 07:51 AM
@Hippo wrote:This code was made for STM32F1xx and I simply changed the headers for STM32f4xx. Maybe the problem comes from here.
Very likely.
A better approach would be to start a fresh project for the STM32f4xx, and then port your RFID code into it.