-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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 driver does not control csn signal #1758
Comments
Why are you setting cs_change to 1? Although it can cause cs to change between segments of a single transfer, it has the opposite effect between transfers. See lthiery/SPI-Py#17 for another instance of the same error, and my explanation of what that flag really means. Also:
looks wrong. |
Excellent! Setting cs_change to 0 did the trick! Good catch with the tr.len = sizeof(tr) typo too. |
Are you happy to close this issue? |
Absolutely, I just hadn't noticed the close issue button. |
Since testing with spidev_test.c passes, I dug a bit deeper and found that my csn pin is stuck high. I checked the other csn pin and it is the same. Neither does it matter which entry in the /dev directory I use.
I've described this issue in nRF24/RF24#306
The code that doesn't work:
If I manipulate the CS pin with gpiomem driver, then the above code works for nRF24 device.
The text was updated successfully, but these errors were encountered: