-
Notifications
You must be signed in to change notification settings - Fork 585
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
RPi4: 'Error 90 performing SPI data transfer.' #997
Comments
Thanks for logging the issue @jesperandersson89. Can you confirm that you enabled the SPI interface on your Pi 4? AFIK there aren't many differences with how the SPI bus work on pi 3B+ compared to 4. |
Yes SPI should be enabled, below is my config.txt:
I'm using |
I haven't played much with the Pi4 but the code looks right to me, so unless there was some change in the pin layout with Pi4 I'm not sure what might be going on. Can you try doing a simple test with trying to communicate with the same device using python to see if that is successful? If not, this might be a problem with the SPI bus in your Pi or with your connection. I assume you used BCM pins 9, 10 and 11? |
Fixed it! Reboot and check your work with Suggesting that someone fixes the cryptic error 90 that https://github.com/dotnet/iot/blob/master/src/System.Device.Gpio/System/Device/Spi/Devices/UnixSpiDevice.Linux.cs throws on line 227? The problem here is Edit*: |
Awesome I'm glad you found the issue and I thank you for posting the fix here so people in the future can come back to this if they ever hit it. Feel free to open an issue for fixing error messages from our API since I agree we should try to flush as much info as possible here. |
"Describe the bug"
I'm trying to receive analog readings from an esp32 connected to my Raspberry Pi 4 over SPI.
The code below works perfectly on an Raspberry Pi 3B+, but when I try to run the exact same code on a Pi 4 then
adc_0.Read(tmp)
gives me this "unGoogleable" error: Error 90 performing SPI data transfer.Does anyone have any idea what the problem might be?
C#-code: (.NET Core 3.1)
Arduino-code:
Expected behavior
adc_0.Read(tmp);
should give me an array of data from my esp32.Actual behavior
adc_0.Read(tmp);
throws the following error:dotnet --info
Version of
System.Device.Gpio
: "1.0.0"The text was updated successfully, but these errors were encountered: