wiringOP icon indicating copy to clipboard operation
wiringOP copied to clipboard

wiringPiSetup: mmap (PWM) failed: Invalid argument

Open thedmdim opened this issue 6 months ago • 10 comments

Hello!

  • orange pi zero h2+ 512mb
  • Armbian_23.11.1_Orangepizero_jammy_current_6.1.63

I installed wiringOP like this:

git clone https://github.com/orangepi-xunlong/wiringOP.git
cd wiringOP
./build clean
./build

When I run gpio -v i get:

gpio version: 2.46
Copyright (c) 2012-2018 Gordon Henderson
This is free software with ABSOLUTELY NO WARRANTY.
For details type: gpio -warranty

  * Device tree is enabled.
  *--> Xunlong Orange Pi Zero

When I run gpio readall i get:

wiringPiSetup: mmap (PWM) failed: Invalid argument

Any suggestion how to get working gpio?

Maybe there is workaround? Actually I only need kinda toogle, so for example I press a button and there runned script.

thedmdim avatar Dec 10 '23 08:12 thedmdim