cancel
Showing results for 
Search instead for 
Did you mean: 

Using RC522 module on STM32F401

Hippo
Associate

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.

3 REPLIES 3
Andrew Neil
Evangelist III

@Hippo wrote:

RC522 module 


You mean this?

AndrewNeil_2-1712672334318.png

Always best to give a link so that people know exactly what you're talking about.

 


@Hippo wrote:

I had some issues  


What issues, exactly?

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 ?


@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.