1,826 questions
0
votes
0
answers
42
views
FriendlyElec CM3588 configure GPIO/SPI
The CM3588 features a 40 pin GPIO connector, each pin being multiplexed to various functionalities. I whish to use a couple of them to connect a display via SPI. There are Python libraries out there ...
1
vote
0
answers
55
views
Raspberry Pi + EBYTE E32‑900T30S over UART — AUX=HIGH but no AT response
I’m trying to talk to an EBYTE E32-900T30S LoRa module from a Raspberry Pi 4 using the Pi’s UART and a small Python wrapper. The module’s AUX pin goes HIGH, but I get no response to AT queries (e.g. ...
0
votes
0
answers
59
views
Xilinx Zynq 7000 pin number under Linux
If I'm working for example with the Xilinx ZU2CG SoC, and a pin named as an "AC3" (xczu2cgsfvc784 pinout) is interesting for me, where can I find what is the gpio number under Linux for that ...
0
votes
0
answers
88
views
LPC2368 does abnormal GPIO write randomly for MUX control once in every random hours
I have an old legacy system running LPC2368 as the measurement base card (lets call it SB) and LPC17xx on top of it. LPC2368 runs bare-metal C code and the LPC17xx runs a Linux OS.
There is a base ...
0
votes
0
answers
81
views
Why does gpiochip_set_irq_hooks() either exit early or warn and continue?
I have a kernel module which provides a gpiochip, accessible from userspace using libgpiod (gpioget/set/mon, etc.).
After moving from kernel 5.10 to 6.1, I get a new warning: not an immutable chip, ...
0
votes
1
answer
292
views
GPIO pin cleanup
I have used python for a while now, however, I am new to using a Raspberry Pi and things such as GPIO pins. I recently bought a Freenove Ultrasonic starter kit to help me learn. They have a tutorial ...
0
votes
0
answers
49
views
How can I integrate a PSHOLD GPIO power-off mechanism on i.MX93 while retaining PSCI functionality?
We are developing a product using the i.MX93 SoC. Our board design requires that a dedicated PSHOLD GPIO pin be toggled to completely cut power during shutdown. We attempted to use the gpio‑poweroff ...
0
votes
1
answer
67
views
LED not turning on on Nucleo-L031K6 with direct GPIO register access (bare-metal)
I am trying to turn on the LD3 LED (connected to PB3) on the NUCLEO-L031K6 board using direct register access without libraries, but it is not working. The LED does not turn on in the wokwi simulator. ...
1
vote
1
answer
337
views
How do i get IRQ for sc16is741 UART on DLN-2 compatible USB adapter working on Linux
I have a Linux/ACPI problem on kernel 6.16 (Debian). I have a Pico USB I/O Board (USB to SPI and GPIO adapter) used with the DLN-2 driver that is initialized thru a (for my laptop adapted) ACPI SSDT ...
0
votes
0
answers
64
views
Working with node-gyp and C++, is there a way to make a dependency on a particular library optional?
Automatically optional too, simply by testing for the presence of the library, avoiding making the user pass arguments or define environment variables or the like.
I'm working on making a Raspberry Pi ...
1
vote
0
answers
41
views
FIQ handler resulting in kernel panic "Bad Mode"
I am trying to setup an FIQ handler (first time). Its an ARM32 v7 core and kernel version is bit old (3.14.x) - shouldn't matter though. The source of FIQ is a GPIO pin. The core provides a CPU ...
0
votes
0
answers
97
views
How to Read GPIO from a CM108B Sound Card on Linux Using HID Interface
I'm using the CM108B sound card for a phone application. I need to use two GPIOs, one for writing and the other for reading. I've managed to write on my GPIOs with HID using Willy's GitHub project, ...
1
vote
1
answer
108
views
Raspberry Pi 4 bare metal GPIO set/clear issue
I'm trying to get going on bare metal programming with my rapsberry pi 4b and I'm encountering an issue when trying to run it on 64bits. Whenever I try to write to the GPIO SET0 register, the program ...
0
votes
1
answer
70
views
Assembly program not clearing the GPIO pin on my Raspberry Pi 4
How's it going, I figured that I would come back to this problem after a couple of months, I made a gpio driver in ARM64 assembly for the Raspberry Pi 4, but the clr0 offset isn't working for me to ...
0
votes
0
answers
914
views
RuntimeError: Cannot determine SoC peripheral base address with RPi.GPIO on Raspberry Pi
import RPi.GPIO as GPIO
import time
PWM_GPIO = 27
SPEED_GPIO = 22
# GPIO setup
GPIO.setmode(GPIO.BCM)
GPIO.setup(PWM_GPIO, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
GPIO.setup(SPEED_GPIO, GPIO.IN, ...
0
votes
0
answers
418
views
libgpiod C++ 2.1.x error reading GPIO line
Based on the libgpiod github example, I've made a simple C++ class to listen for multiple lines, as follows:
#include <stdlib.h>
#include <iostream>
#include <thread>
#include <...
0
votes
1
answer
551
views
Python Script To Monitor RASPI GPIO
I'd like write a Python script to run on on a Raspberry Pi (3B+) to monitor several GPIO pins for an external button press.
When a button is pressed (shorted to 0 volts), I would like another GPIO ...
-1
votes
1
answer
60
views
how to set the input i/o in the output rung in the plc ladder diagram
I am using the Delta AS228T-A plc model and DIA Designer software to program the plc, i want to set the input gpio(X0.0) in the output rung like this below image
It throws me an error before i upload ...
0
votes
1
answer
341
views
GPIO Expander Interrupt Not Working With Dynamic Device Tree Overlay
I have a GPIO expander (TI TCA9539) on board connected to a Raspberry Pi. I've written a device tree overlay as follows:
// Raspberry Pi device tree overlay for TCA9539 GPIO Expander
/dts-v1/;
/...
0
votes
0
answers
44
views
How do drive 1.4in display on orangepi?
I've setup my orangepi with debian 11 (bullseye) and now I'm trying to connect this display
The display turns on, but is all white and when I run the code shown below I see this
const sclk = new Gpio(...
1
vote
0
answers
243
views
Alder Lake N - ACPI/DSDT - GPIO - Change default value
I purchased an obscure NAS only sold to the Chinese domestic market (Zspace Z4Pro) with a view to using another OS on it since it was intel based. I can boot and run another OS (ESXi/Proxmox/etc) fine ...
0
votes
0
answers
119
views
Why do I keep getting a Segmentation Fault from trying to access /dev/mem in ARM64 on the Raspberry Pi 4?
I've been working at this program for months, and I've fixed many errors, errors with alignment, other segmentation faults, and I've gotten down to this one, where it throws a segmentation fault when ...
0
votes
0
answers
64
views
gpio sysfs interface initialize pin high voltage
I am facing stupid problem. LED is on when pin is low. I need to get the pin as output with level high (LED physically turned off).
If I export and set direction to out, LED gets on, and value is ...
0
votes
0
answers
242
views
Need help to setup rtc-ds1302 in device tree on RaspberryPi
I need to wire a RTC DS1302 on a RaspberryPi 1B running Raspberry Pi OS Bullseye. I can make it work from user space and bitbanging the gpio, and update the OS clock accordingly during boot.
However, ...
1
vote
0
answers
108
views
Raspberry Pi 3, 4 work fine with Blinkt led lights, but same software does not work with Pi 5
I have a Docker container that will display the CPU load for the Kubernetes cluster on the blinkt LED if they are present for that node. It works fine on a Pi 3B and 4 but I just got some Pi 5's and ...