Questions tagged [gpio]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

Led on gpio very dim (low voltage)

I am using a minnowboard turbot (kind of like a raspberry pi, except its x86_64) When I boot it, the led connected to the gpio pins is normal brightness. After i create the gpio pin by typing echo [...
0
votes
0answers
21 views

Are /dev/i2c-1 and /dev/mem colliding?

I write a program which should handle a motion sensor and an ultrasonic sensor at the same time. I'm using a Jetson Nano with 40 GPIO-pins. The first one uses I2C interface and thus accesses /dev/i2c-...
0
votes
0answers
19 views

gpio pins state does not persist on reboot

I am trying to set gpio pins 33 and 116 to low but on reboot it switches back to high. Can someone suggest how I can make the pin values to persist after reboot? Here is how I tried to make gpio pins ...
0
votes
0answers
130 views

polling for GPIO in user space

I wrote a USB driver a few months ago for an ARM STM32 board that provides access to the pins,on Linux. I can set or reset the pins on my board using sysfs interface. In the Interrupt section, the ...
1
vote
0answers
387 views

Mmap failed with operation not permitted

I've compiled application on Linux, but I got this error wiringPiSetup: mmap (GPIO) failed: Operation not permitted After that: I've added iomem=relaxed to grub cat /proc/cmdline BOOT_IMAGE=/...
0
votes
0answers
27 views

Safely inserting a script during shutdown process?

I'm currently working with an SBC (Tinkerboard) which runs a Debian based OS (Tinker OS) I have a UPS unit I'm trying to setup which provides power to the board and communicates via GPIO pins, all ...
0
votes
0answers
22 views

Software/Way to interpret UART data coming in from toggling GPIO

I'm having one GPIO on my SBC (in this case: Raspberry Pi, but it shouldn't matter), which is attached to a peripheral device dumping log output on this pin. Format is UART (8N1), baudrate ...
0
votes
1answer
59 views

Rasberry PI 3 debian /sys/class/gpio/export error

I've a problem When I run on my raspberry pi 3 (debian10) echo 17 > /sys/class/gpio/export I get error -bash: echo: write error: Invalid argument Help me please
0
votes
0answers
13 views

i2cdetect show bus is different every time

I am use ToF sensor(VL53L0X) on my Raspberry Pi's GPIO,I discover one problem about VL53L0X. I am input command i2cdetect -l It's show i2c-1 i2c bcm2835 I2C adapter I2C ...
1
vote
2answers
107 views

USB device driver [closed]

I Wrote a USB device driver for STM32h7 and register the device as GPIO by using Struct gpio_chip structure. my questions are here: I configure usb peripheral in NUCLEO-H743ZI board to CUSTUM HID ...
0
votes
1answer
32 views

how does a gpiochipNN is selected or set in gpiolib kernel?

I am looking into kernel gpiolib and gpio-xilinx.c. I see that my device has only cat /sys/kernel/debug/gpio gpiochip0: GPIOs 960-1023, I am confused on how this 960 has arrived. How does the kernel ...
1
vote
0answers
81 views

How to start system shutdown or poweroff by hardware interrupt

I have a small headless embedded Linux box (NXP i.MX6, with userspace based on Debian, but am interested in more general solution). It has no HID input, no desktop stuff, just a serial console and a ...
1
vote
0answers
148 views

Why is my gpio access from user space slower?

I did some research on how good I am able to access a gpio while other heavy tasks are executed. With a first test I toggeled a gpio pin from user space using the libgpiod API. With a second test I ...
1
vote
0answers
60 views

Defining GPIO for LED board - Meraki MX100

I have a Meraki MX100 that I have installed VyOS on. While otherwise perfectly functional, the one thing that I cannot seem to get working is the LED board on the front panel. I'm no developer which I'...
0
votes
1answer
707 views

Driver development vs sysfs access vs mmap for GPIOs

I believe I could not fully understand the benefits of writing device drivers in embedded systems for some specific devices, such as GPIO, when there are alternative ways of doing the same job. You ...
1
vote
1answer
110 views

GPIO board read/write via bash

Trying to get a GPIO board working, need to access it from script, here is what I am using: stty -F /dev/ttyACM1 115200 raw -echo #CONFIGURE SERIAL PORT exec 3</dev/ttyACM1 #...
0
votes
1answer
6k views

How to identify GPIO pin numbers? Is GPIO driver loaded?

I am trying to get the GPIO pins on my mainboard working but I don't know the numbers/descriptions of the pins and if a driver is loaded or not. I found this guide where it says that I should echo ...
0
votes
1answer
151 views

How to Resolve `permission denied` on Cloned Image

I had a Linux image on an Orange Pi that was had access to the GPIO pins via the command line sudo echo 1 > /sys/class/gpio_sw/PA1/data. I took the SD card out and put it into another Orange Pi ...
0
votes
1answer
135 views

How to Set Default Pin State on Orange Pi

When booting an Orange Pi the default pin state seems to be HIGH. Is there a document that I can edit that will change their default state to LOW?
2
votes
0answers
251 views

What is the preferred way to unhog a hogged GPIO pin?

So I'm doing development on an ARM embedded system which is using the device trees. We're going to integrate a small PCB with a processor and support components onto a bigger PCB, which will be the ...
1
vote
1answer
157 views

Why are systemd scripts not producing the expected results at boot, but correctly afterwards?

I have a Raspberry Pi on Raspbian Stretch and I want to enable some GPIO pins at boot time. I wrote the following service: [Unit] Description=GPIO23 exported as output, value off [Service] Type=...
0
votes
1answer
2k views

Unable to export specific gpio pins. How to check what uses GPIO pins and how to access register?

I use an i.mx6 board (yocto(jethro)) and am configuring a device tree. I changed a dts file and put the dtb file in a boot partition. I set GPIO4_IO19 in dts file as follows. &iomuxc { pinctrl-...
1
vote
0answers
310 views

Set GPIO Bank Mux Mode

I'm working with an ARM machine that has a buzzer attached to GPIO pin 102. The machine is running Linux 2.6, so we have a sysfs interface to the pins in /sys/class/gpio. When I first tried to get the ...
3
votes
0answers
271 views

GPIO in unprivileged LXC container

I currently try to get GPIO-access into an unprivileged LXC application container. In future this container shall execute an application. But for now (while development) I just start a normal bash in ...
2
votes
0answers
157 views

Linux GPIO mapping

I have a WD-Mycloud, which has an LED and a button as the interface. I can access the LED under /sys/class/leds/, but I cannot find where or how the button is mapped. I know how to access the GPIO ...
2
votes
0answers
75 views

lirc refusing to play

I've installed lirc on a Raspberry Pi (running Wheezy) but can't get it to send any signal. The LED is hooked up correctly (tested it using a python script). See it working here on youtube. I used ...
1
vote
1answer
699 views

Driver gpio_keys type of buttons

I'm confused about the driver gpio_keys. This driver distinguishes between two types of buttons: IRQ-only buttons and GPIO-driven buttons Could anyone explain the difference between one and ...
1
vote
0answers
24 views

configure analogic pin as digital pin

I have the SAMA5D3 Xplained. This kit has several analog ports and my idea is to be configured as analog or digital as needed. Would it be possible to do it in an easy way from the kernel?
4
votes
0answers
1k views

Triggering Linux shutdown on power failure

I have an embedded Linux system (currently running Angstrom) with supercapacitor hardware to provide time for writes to complete and avoid corrupted filesystems when external power is removed. ...
6
votes
1answer
750 views

Running daemon involving GPIO on Pi

I have a daemon that monitors various things using the GPIO ports. I have used python to write the code for this using the RPi.GPIO module. I would like to ensure that the daemon is always running, i....
3
votes
1answer
2k views

Can one core on a multicore linux system be dedicated to one user-space app?

Can a core be dedicated to one user-space app (e.g. for the purpose of bit-banging GPIO without any interruptions)?
0
votes
1answer
373 views

Debian Lenny Adafruit_BBIO failure to install

I have Debian Lenny installed on a Beagle bone Black Rev B. I have been following the outlined steps provided on this web page: https://learn.adafruit.com/character-lcd-with-raspberry-pi-or-beaglebone-...
2
votes
0answers
102 views

How to enable second SIM slot in ALIX6F2 and how to switch 3G to it from the 1st one?

I am trying to enable the SIM slot under the RF card but with no success whatsoever. I'm using Voyage 0.8 (a stripped off Debian distribution) as an operating system. A bit of searching landed me to ...
1
vote
0answers
105 views

Is there a limit of GPIOs that can be used in Linux?

When it comes to use GPIOs, is there a limited number that can be used in Linux (except through the limitation of the physical availability/amount of the ports/pins) or is it theoretically possible to ...
1
vote
1answer
259 views

What priority should I give to a script running on startup?

I 'm running Angstrom distribution on an embedded device. I want to make use of its GPIO expansion ports, that are set to be high on start-up. Below, is the code segment, that releases an expansion ...
0
votes
2answers
407 views

GPIO User Space App

GPIO User Space App describes user space application to test the GPIO. Another related link is Linux GPIO Driver. This would be running on a xilinx zynq board having an ARM Cortex A 9 processor. I ...
7
votes
4answers
25k views

Unable to write to a GPIO pin despite file permissions on /sys/class/gpio/gpio18/value

This is on a Raspberry Pi. Here's the output of sudo ls -lL /sys/class/gpio/gpio18: -rwxrwx--- 1 root gpio 4096 Mar 8 10:50 active_low -rwxrwx--- 1 root gpio 4096 Mar 8 10:52 ...
1
vote
1answer
1k views

Basic script in Angstrom Linux running on a Beaglebone Black

On my embedded system, I can toggle a user led with: echo > 1 sys/class/leds/beaglebone:green:usr2/value. Similarly, I can find the value of a GPIO (gpio60) (set to input), with more sys/class/...
0
votes
0answers
599 views

RaspberryPi GPIO FreeBSD assignment

First my Assignment: I'm a beginner with BSD and low level peripherals like GPIO etc., and I need to toggle Raspberry GPIO Pins from a C programme on BSD. I am Using this BSD Image i took from here: ...
3
votes
0answers
2k views

Enabling GPIO in kernel not working [closed]

I have tried to enable the GPIO pins for my system through the Kernel but I am not able to get them to work. When I try this: echo 1 > /sys/class/gpio/export The terminal window just closes. ...
3
votes
2answers
4k views

How can I access GPIO pins from CentOS 6.4?

I have a single board computer with 8 GPIO pins that I would like to access from user space on my CentOS 6.4 installation. I see the GPIO pins mentioned in the 'dmesg' output, but the /sys/class/gpio ...
5
votes
2answers
2k views

Set GPIO permissions cleanly

Can the default permissions and ownership of /sys/class/gpio/ files be set, e.g. by configuring udev? The point would be to have a real gid for processes that can access GPIO pins on a board. Most "...
4
votes
2answers
4k views

Run Python Portio script as normal user without root access

I know there are risks running a root script as a normal user, but in this case I don't have a choice and what I am doing is machine related. I have an Small Board Computer that has GPIO ports and I ...