Skip to content
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

open-plc-utils spi error #71

Open
DAYS2 opened this issue Sep 13, 2021 · 5 comments
Open

open-plc-utils spi error #71

DAYS2 opened this issue Sep 13, 2021 · 5 comments

Comments

@DAYS2
Copy link

DAYS2 commented Sep 13, 2021

I am making use of the Qualcomm QCA7000 Serial-to-Powerline Bridge chip and trying to connect this chip to the host processor (RPi4 Buster) over SPI. I have developed all the necessary hardware and installed the qca7000 linux drivers on the host but continuously get the following errors when connecting to the SPI Slave port of the QCA7005: dmesg | grep qca produces the following:

qcaspi spi0.0: Invalid signature (0x0000)

qcaspi: probe of spi0.0 failed with error -14

I have added dtoverlay=qca7000 to config.txt and enabled the SPI on the RPi4.

I have tried different configurative pin strapping options as indicated in the datasheet but keep getting the same errors. Any advise on this? Or anyone been able to connect to this chip on Buster?

@kanjiviroja1991
Copy link

I had faced the same issue and I don't know what it means by -14 error number? How does it validate the signature between both end?

@zgb526642524
Copy link

此问题,SPI总线接线错误导致。

@kanjiviroja1991
Copy link

@zgb526642524 , Actually, We had verified wiring and we had not found any issue with the wiring. Once I replace the QCA7000 chip after it works perfectly.

@KissMyAce97
Copy link

Did you add the interrupt pin spec? I had problem too and I solved this way (I don't ensure this will work for you):
dtoverlay=qca7000, int_pin = 5 (where 5 is the actual value of the GPIO).

You can find some information here https://github.com/raspberrypi/firmware/blob/master/boot/overlays/README, check qca7000 lines and you will find it at 2742

@DAYS2
Copy link
Author

DAYS2 commented Jan 26, 2022

I was able to make it work. i sat down with hardware specialist where i do my internship. He said as above that we missed teh interrupt pin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants