Open DanielChesters opened 6 years ago
The problem still here with kernel 4.9.56.
The spi-max-frequency has changed to 125000000 after kernel 4.9.43. But pifacecad can't support the default frequency. You can read this https://github.com/raspberrypi/linux/issues/2165.
In addition, we can modify /usr/lib/python3/dist-packages/pifacecommon/spi.py
like this.
# create the spi transfer struct
transfer = spi_ioc_transfer(
tx_buf=ctypes.addressof(wbuffer),
rx_buf=ctypes.addressof(rbuffer),
len=ctypes.sizeof(wbuffer),
speed_hz=ctypes.c_uint32(100000)
)
Thank for the solution, I use this fix so now I can use my PiFace Control and Display board. I will do a pull request for piface/pifacecommon.
Sorry to open this issue again but in the piface package which i installed from Raspbian Stretch (2018-06-27-raspbian-stretch-lite) this issue is still not resolved. Actually when i look at /usr/lib/python3/dist-packages/pifacecommon/spi.py i see:
# create the spi transfer struct
transfer = spi_ioc_transfer(
tx_buf=ctypes.addressof(wbuffer),
rx_buf=ctypes.addressof(rbuffer),
len=ctypes.sizeof(wbuffer)
so without above mentioned speed_hz
line. When i add this line the piface cad works as expected.
Just hit this issue on upgrading to Stretch and although I did a clean install of the code per the readme, speed_hz was missing from spi.py and needed to be added.
Hi, I did a rpi-update this week (and I get the kernel 4.9.51) on Raspbian GNU/Linux 9 and the Piface Control and Display does not work anymore :