Comments (9)
Did you have a physical loopback installed between the two GPIOs?
from c-periphery.
yeap
from c-periphery.
Could you provide the log of the run?
from c-periphery.
Picture of the physical loopback:
Here's the log of the whole process, including steps used for Yocto's devtool:
from c-periphery.
oops.. forgot to cat workspace/recipes/c-periphery/c-periphery_git.bb
c-periphery_recipe.txt
from c-periphery.
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.
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.
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.
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)
- Support GPIO line bias. HOT 2
- Change param name
- Handle allocating on stack HOT 7
- Warning spi.c in function 'spi_tostring' HOT 3
- How to keep the pin's value HOT 5
- PWM functions are hardware PWM ? HOT 1
- Bias compile settings HOT 4
- SPI R/W REG HOT 2
- serial_set_parity(serial, PARITY_ODD) fails on RaspiPi3 B+ HOT 1
- test_gpio gpio_set_bias(gpio, GPIO_BIAS_PULL_UP) fails HOT 1
- gpio_open_sysfs(): Opening GPIO: writing 'export': Invalid argument [errno 22] HOT 1
- Update GPIO code? HOT 2
- ADC - implemented? HOT 3
- Portage error: make: *** No rule to make target 'install'. Stop. HOT 1
- Jetson Nano - not operate discrete output (GPIO), SPI works HOT 1
- Gpio
- GPIO_V2_LINE_FLAG_EVENT_CLOCK_REALTIME missing for Debian 11 x86/x86_64
- Building on Rasberry Pi HOT 1
- spi.c Error message builder is buggy HOT 1
- Unknown CMake command "check_source_compiles" on Debian Bullseye
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 c-periphery.