Coder Social home page Coder Social logo

Comments (5)

ctag-fh-kiel avatar ctag-fh-kiel commented on June 18, 2024

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.

tonylangley avatar tonylangley commented on June 18, 2024

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.

tonylangley avatar tonylangley commented on June 18, 2024

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.

tonylangley avatar tonylangley commented on June 18, 2024

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.

henrix avatar henrix commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.