Coby Levy Posted October 3, 2020 Posted October 3, 2020 hi everyone, I'm running latest Armbian 20.08.1 Buster with Linux 5.8.5-sunxi on a Nanopi Neo Core. I cannot understand why I cant turn GPIOA0 on\off, can't configure it as output. I have no problem with any other GPIOs, just this one. command i'm using: gpio mode 0 output gpio write 0 1 I managed to make the GPIO as Output using this command, but still no go - the output cannot be set. echo 0 > /sys/class/gpio/export echo out > '/sys/class/gpio/gpio0/direction' dmesg don't show any errors. I checked H3 documents, there's no conflict in the mux with other GPIOs, and just to be sure i turned UART everything off (UARTs, i2c, i2c, etc..). could someone please guide me? ty.
martinayotte Posted October 3, 2020 Posted October 3, 2020 1 hour ago, Coby Levy said: could someone please guide me? What is the output provided by the command "cat /sys/kernel/debug/gpio" ?
Solution Coby Levy Posted October 3, 2020 Author Solution Posted October 3, 2020 hi, thank you for your reply. this is the output (it shows a proper toggles). gpiochip0: GPIOs 0-223, parent: platform/1c20800.pinctrl, 1c20800.pinctrl: gpio-0 ( |sysfs ) out hi gpio-10 ( |nanopi:blue:status ) out lo gpio-166 ( |cd ) in lo ACTIVE LOW gpio-204 ( |usb0_id_det ) in hi IRQ but I think I figured out what's the problem is, Apparently - the GPIO is malfunction, I might burned it. I tested it with a new installation, and did the same on another board I have here. thank you for your help, Topic can be closed.
martinayotte Posted October 4, 2020 Posted October 4, 2020 20 hours ago, Coby Levy said: Apparently - the GPIO is malfunction, I might burned it. That is a possibility ...
Recommended Posts