1

I am running (on a Pi3) an MFRRC522 reader - much like this one: Image from http://raspmer.blogspot.co.uk/2015/07/how-to-use-rfid-rc522-on-raspbian.html It has been working fine, but after I changed SD card, to increase capacity - whilst also doing a new Raspian install I haven't been able to get it to work. I have done the following:

  • Add device_tree_param=spi=on and dtoverlay=spi-bcm2708 to the config.txt
  • Taken a look in /etc/modprobe.d/raspi-blacklist.conf, but it's empty in the latest versions of Raspian anyway
  • Enabled the SPI interface in raspi-config
  • Installed SPI-Py and MFRC522-python
  • Checked it's wired as here

The issue is - running dmesg | grep spi doesn't return anything. Have Raspian Updates removed the default modules? How do I enable the spi modules?

JBithell
  • 163
  • 1
  • 2
  • 10

2 Answers2

2

I always use dtparam=spi=on.

Remove the dtoverlay line, it is not needed.

By default the new spi-bcm2853 module should be loaded.

joan
  • 71,852
  • 5
  • 76
  • 108
2

This is a known issue:

Run sudo rpi-update

Make sure you have enabled the interface for this board with dtoverlay=spi0-hw-cs and dtparam=spi=on in the config.txt

And that should solve the problem. See https://github.com/raspberrypi/linux/issues/1547 for further details

JBithell
  • 163
  • 1
  • 2
  • 10