Git Product home page Git Product logo

Comments (9)

vsergeev avatar vsergeev commented on August 14, 2024

Did you have a physical loopback installed between the two GPIOs?

from c-periphery.

bernardoaraujor avatar bernardoaraujor commented on August 14, 2024

yeap

from c-periphery.

vsergeev avatar vsergeev commented on August 14, 2024

Could you provide the log of the run?

from c-periphery.

bernardoaraujor avatar bernardoaraujor commented on August 14, 2024

Picture of the physical loopback:
bbb

Here's the log of the whole process, including steps used for Yocto's devtool:

bbb_log.txt

from c-periphery.

bernardoaraujor avatar bernardoaraujor commented on August 14, 2024

oops.. forgot to cat workspace/recipes/c-periphery/c-periphery_git.bb
c-periphery_recipe.txt

from c-periphery.

vsergeev avatar vsergeev commented on August 14, 2024

I bet your GPIO numbers are somehow mapped differently. What kernel are you using?

Surest way to check though is with a voltmeter on GPIO 38 (P8.3) and manually writing 1 or 0 /sys/class/gpio/gpio38/value, after writing out to /sys/class/gpio/gpio38/direction.

For example:

# echo 38 > /sys/class/gpio/export
# echo out > /sys/class/gpio/gpio38/direction
# echo 1 > /sys/class/gpio/gpio38/value
# echo 0 > /sys/class/gpio/gpio38/value
# echo 1 > /sys/class/gpio/gpio38/value
etc.

from c-periphery.

bernardoaraujor avatar bernardoaraujor commented on August 14, 2024

Indeed. Reproduced the commands, but the voltimeter reads only 3.3v, even after echoing 0.

root@beaglebone:~# uname -r
4.4.41-rt50-g15ae5cb78b

I'll try it with a non RT kernel. Which version do you suggest?

from c-periphery.

vsergeev avatar vsergeev commented on August 14, 2024

I've been running Arch Linux ARM, which is currently on 4.10.4. But the Linux package is the linux-am33x variant, which may have the GPIO mapping expected by the test.

from c-periphery.

vsergeev avatar vsergeev commented on August 14, 2024

I'm going to close this issue for now, as it's just a platform configuration issue, rather than a library issue. But feel free to follow up here on the GPIO mapping.

from c-periphery.

Related Issues (20)

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.