Comments (5)
Hi Tony,
You should be able to use SPI with the standard (non-bela) image. The audio codec uses bit-banged SPI through GPIO freeing up the HW SPI peripheral. If you are on the bela image SPI is blocked by bela for ADC/DAC.
Best,
Robert
from bela-ctag.
Thanks Robert. That’s good to know the SPI bus is free in this mode.
Any chance you could point me to any info on how to enable the SPI on this ctag_bone_debian_v0.12 release? I tried a few ways of doing this by updating the /boot/uEnv.txt file but couldn’t work it out!
Thanks, Tony
from bela-ctag.
I was able to get SPI running with the following:
sudo sh -c "echo 'BB-SPIDEV0' > /sys/devices/platform/bone_capemgr/slots"
from bela-ctag.
So I'm able to get SPI running temporarily using the command above, but when I add this line to /boot/uEnv.txt
uboot_overlay_addr4=/lib/firmware/BB-SPIDEV0-00A0.dtbo
...I'm unable to get the SPIDEV0 device to load at boot without commenting out the following line above:
dtb=am335x-boneblack-ctag-face.dtb
This line is creating a device-tree-override which seems to prevent any subsequent uboot_overlay_options to take effect.
Once I comment this out, I can verify the SPI devices as follows:
ls -al /dev/spi*
As I want to use both the CTAG Beast and SPI, do you have any suggestions on how can I enable this at boot time?
from bela-ctag.
Hi,
A workaround for this would be to automatically execute the bone cape manager script
sh -c "echo 'BB-SPIDEV0' > /sys/devices/platform/bone_capemgr/slots"
via rc.local.
You can find some information about rc.local here.
Another solution would be to enable SPIDEV in the base device tree am335x-boneblack-ctag-face.dtb. However, this would require to create a different base device trees for each required hardware configuration.
from bela-ctag.
Related Issues (3)
- Kicad design HOT 1
- PCB copper layers and BOM HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bela-ctag.