MFRC522-python icon indicating copy to clipboard operation
MFRC522-python copied to clipboard

Issues with the latest version of Raspbian jessie

Open danbuntu opened this issue 9 years ago • 4 comments

The newer version of Raspbian have switched to using dttree when enabling SPI. When you do this upgrade this library stops working. Running the Read.py example just sits there.

danbuntu avatar Jun 27 '16 12:06 danbuntu

Activity here: https://github.com/raspberrypi/linux/issues/1547

but no solution yet.

EECSdude avatar Jun 28 '16 22:06 EECSdude

+1 - Having huge issues with the latest release and SPI

Jbithell avatar Jun 30 '16 09:06 Jbithell

If you take a look at Issue #1547, there is a workaround now!

When cloning the SPI-Py library, changing '.cs_change = 1' to '.cs_change = 0' (line 189 in spi.c) before running sudo python setup.py install fixes the issues I had. Alternatively you can also clone my fork of this library https://github.com/mab5vot9us9a/SPI-Py, so you don't have to make the changes yourself.

Also make sure you have the latest kernel (>= 4.4.14), because it fixes a bug in earlier versions (see Issue #1547). You can check your version using:

uname -a | sed -E "s/.*([0-9]+\.[0-9]+\.[0-9]+)-v.*/\1/"

If you need to update your kernel, use sudo rpi-update. If it's not yet installed, do so using sudo apt-get install rpi-update.

mab5vot9us9a avatar Jul 08 '16 12:07 mab5vot9us9a

@mab5vot9us9a's change was also fixed in SPI-Py master so that fork isn't necessary anymore.

thijstriemstra avatar Sep 09 '16 21:09 thijstriemstra