-
-
Notifications
You must be signed in to change notification settings - Fork 896
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
Orange pi zero + Armbian Stretch + nrf24 does not work #1195
Comments
Several orange pi users have reported similar problems in https://forum.mysensors.org/post/92885 but so far it seems like no-one using orange pi has been able to figure out a solution. |
I did a test with the the nRF24/RF24 library and the RF24 module was successfully detected in Armbian Stretch (4.14.65-sunxi):
I'll check what needs to be changed in MySensors to make it work. |
Thanks, I will wait for the results. |
it is just this patch on the bottom on that page what did the fix for me on opi one ,pc plus , pc2 and zero plus2 h5 HIGH on SCK line right before transfer Starting an SPI transfer via sun6i-spi and sun4i-spi might raise the SCK line to HIGH shortly before transfer. Such behaviour might confuse slaves, especially when not using / ignoring chip-select. This is due to SUN6I_GBL_CTL_BUS_ENABLE being written into SUN6I_GBL_CTL_REG at an early stage. Moving that to the transfer function, hence, right before the transfer starts, mitigates that problem. Following patch does so for spi-sun6i: diff --git a/drivers/spi/spi-sun6i.c b/drivers/spi/spi-sun6i.c
@@ -411,7 +414,7 @@ static int sun6i_spi_runtime_resume(struct device *dev)
|
Hi!
I configured DT overlays by adding (armbianEnv.txt):
verbosity=1
logo=disabled
console=both
disp_mode=1920x1080p60
overlay_prefix=sun8i-h3
overlays=spi-spidev spi-add-cs1 uart1 usbhost2 usbhost3 w1-gpio
param_spidev_spi_bus=0
param_spidev_spi_cs=0
I had spidev working, but not the mysgw. It doidn't give me errors, but i was stuck at !TSM:INIT:TSP FAIL.
Any ideas?
The text was updated successfully, but these errors were encountered: