We are using Friendly ARM Nano Pi Fire3 board(Linux Platform). We want to configure GPIO and set it as either Input or output.
We tried Matrix library code for access GPIO.
but when we run code then it gives following error.
root@NanoPi-Fire3:/sys/class/gpio# ls
export gpiochip0 gpiochip128 gpiochip160 gpiochip32 gpiochip64 gpiochip96 unexport
root@NanoPi-Fire3:/sys/class/gpio#cd /
root@NanoPi-Fire3:
root@NanoPi-Fire3:
root@NanoPi-Fire3:
root@NanoPi-Fire3:~# cd /root/matrix/demo/matrix-gpio_out
root@NanoPi-Fire3:~/matrix/demo/matrix-gpio_out# ls
Makefile matrix-gpio_out Matrix-gpio_out.c
root@NanoPi-Fire3:~/matrix/demo/matrix-gpio_out# ./matrix-gpio_out
Hardware:NANOPI3
Revision:0005
BoardType:-1
FAHW-Lib: Fail to initPinGPIO
FAHW-Lib: Fail to initPwmGPIO
Fail to init board
root@NanoPi-Fire3:~/matrix/demo/matrix-gpio_out#
I checked library files where I found in matrix/lib/gpio.c in which there is no provision for NANO PI Fire 3.
so how we can use GPIO as input or output for NANO PI Fire3 board?
We tried Matrix library code for access GPIO.
but when we run code then it gives following error.
root@NanoPi-Fire3:/sys/class/gpio# ls
export gpiochip0 gpiochip128 gpiochip160 gpiochip32 gpiochip64 gpiochip96 unexport
root@NanoPi-Fire3:/sys/class/gpio#cd /
root@NanoPi-Fire3:
root@NanoPi-Fire3:
root@NanoPi-Fire3:
root@NanoPi-Fire3:~# cd /root/matrix/demo/matrix-gpio_out
root@NanoPi-Fire3:~/matrix/demo/matrix-gpio_out# ls
Makefile matrix-gpio_out Matrix-gpio_out.c
root@NanoPi-Fire3:~/matrix/demo/matrix-gpio_out# ./matrix-gpio_out
Hardware:NANOPI3
Revision:0005
BoardType:-1
FAHW-Lib: Fail to initPinGPIO
FAHW-Lib: Fail to initPwmGPIO
Fail to init board
root@NanoPi-Fire3:~/matrix/demo/matrix-gpio_out#
I checked library files where I found in matrix/lib/gpio.c in which there is no provision for NANO PI Fire 3.
so how we can use GPIO as input or output for NANO PI Fire3 board?