question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MFRC522 not working on RPi 4

See original GitHub issue

Hi, I’m getting the following error using my SD card that works fine in a Raspberry Pi Model 3, if I put it into a Raspberry Pi Model 4:

WARNING: Hardware auto-detect failed, running in raspi-3 mock mode

And consequently the card detection does not work. Any idea what this could be related to? Thanks

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mgoellercommented, Oct 29, 2019

Finally got it to work. Unimaginable but the cables were the problem! Really strange that the same cables and the same MFRC522 module were working with a RPi3 but not a 4. Changed the cables and suddenly all worked. Thank you!

0reactions
firsttriscommented, Oct 18, 2019

generally by running the examples https://github.com/firsttris/mfrc522-rpi/tree/master/test. i mean you could add some console.log here and there. that would be a very easy approach for debugging.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Raspberry PI 3 and RFID-RC522 Problem reading data
1. update. Code: Select all · 2. kernel update to enable spi. Code: Select all · 3. Enable SPI in. Code: Select all...
Read more >
Raspberry Pi 4B - RFID-RC522 stopped working [closed]
I connected a RFID-RC522 to my RPi 4. It was working perfectly to read data until now. I don't know why but I...
Read more >
Raspberry Pi 4B – RFID-RC522 stopped working [closed]
I connected a RFID-RC522 to my RPi 4. It was working perfectly to read data until now. I don't know why but I...
Read more >
Unable to connect RC522 RFID module to Raspberry Pi 4
I found out the simple answer. just reinstall the Raspbian OS to reset the SPI configuration (which was set for 3.5 inch LCD)...
Read more >
How to setup a Raspberry Pi RFID RC522 Chip - Pi My Life Up
By default, the Raspberry Pi has the SPI (Serial Peripheral Interface) disabled, which is a bit of a problem as that is what...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found