-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SPI 32 bits per word errors #1
Comments
Hi @sjkelly
Nice! I am glad it is being useful.
I think you found a bug. Can you please test if this work passing a julia> init_spi("/dev/spidev0.0", max_speed_hz = 100_000, mode=0x00, bits_per_word=Int8(32))
julia> init_spi("/dev/spidev0.0", max_speed_hz = 100_000, mode=0x00, bits_per_word=UInt8(32)) |
I tried both, and still get the same error. FWIW the permission error is just default. I tried changing this line to UInt8 with no avail either: Line 56 in 5e658e7
It is possible the Ras Pi does not support 32 bit per word send, as the error occurs setting the I am setting up a python test to verify real quick if it is hardware or otherwise. |
Yes, the |
Yes, It seems to be the hardware:
I also validated with spi-tools and it does not support 32 bit words. This is also confirmed in the docs: https://www.raspberrypi.org/documentation/hardware/raspberrypi/spi/README.md Thanks for the help! |
Nice! Thanks for the info :) This is important to me because I only have the Pi Zero to test. Knowing that it is working in another device is really nice! |
Thank you for this package, it has been very helpful for interactive debugging in the REPL!
I am trying to set the
bits_per_word
parameter and receiving a few errors in the IOCtl.It is possible I have something wrong or a missing driver. This is on the Ras pi 4 with 64 bit ubuntu 20.04. It works fine with 8 bit words.
The text was updated successfully, but these errors were encountered: