Firefly Open Source Community

   Login   |   Register   |
New_Topic

[Linux] Want to use GPIO as SPI in ROC-RK3328-CC

25

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
25
Posted at 1/5/2022 17:49:01     
Dear Team, I'm using Roc-rk3328-CC Board fro utilizing its GPIOs to make use of SPI pins. I am unable to find a proper solution to my problem because i tried multiple methods like: https://github.com/Leapo/Rock64-R64.GPIO , https://github.com/rm-hull/spidev-test , https://github.com/chenphilip888/roc-rk3328-cc-python-gpio and many more as well. Let me know what is the best solution to my issue as i am using Ubuntu 18.04 in my board. Thanks.
Reply

Use props Report

235

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
235
Posted at 1/13/2022 11:25:17     
Is the pin you want to use a multiplexed SPI pin, and if so, you can use SPI. If it is just an ordinary gpio pin, our team does not have a related solution if we want to simulate it as an SPI pin.
Reply

Use props Report

25

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
25
Posted at 3/18/2022 14:57:26     
i have already enabled uart, and i2c on it and these both are working fine. but i am unable to find a proper solution to enable SPI on my board.
no, it is mentioned that it is an spi pin. having csn0 and CE as well on the data sheet.
Reply

Use props Report

25

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
25
Posted at 3/21/2022 16:02:40     
Still waiting for the team to assist in this regard. I have followed up all documentations, but no one works.
Reply

Use props Report

22

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
22
Posted at 1/16/2025 16:38:48     
I understand your struggle with the Roc-rk3328-CC board's GPIOs and SPI pins. Have you tried using the Python library from the community? It could simplify the process. It reminds me of the pacman 30th anniversary game that brings nostalgia while troubleshooting; sometimes, you just need to find the right path! If anyone has a straightforward guide or solution, please share!

Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list