Dear NXP Support Team,
I am experiencing an issue while trying to configure GPIO lines on the i.MX8MM EVK using the libgpiod utilities. Despite following the documented steps, I am unable to set GPIO pins as output or manipulate their state correctly.
Details:
I am seeking assistance to identify the root cause of this issue and ensure the proper functionality of GPIO configuration using libgpiod.
Thank you for your support.
I used the command: gpioset -c gpiochip0 8=0 Then I tested the level of gpio0_8 and it was low, but when I used the command gpioget -c gpiochip0 8, gpio0_8 showed a high level. Why is that? Does gpioget initialize the IO port?
you can check if the gpio can keep the "value" after you use "^c" in your side.
No, I didn't get the result as you mentioned. I will double check this and get it back to you later.
Hi @dhananjay896 :
In order to configure GPIO using libgpiod library, you need to
please see my test result:
root@imx8mmevk:~# gpioset -c gpiochip2 16=1 //you will see the led light on
//ctrl +c force quit
root@imx8mmevk:~# gpioget -c 2 16
"16"=active
root@imx8mmevk:~# gpioset -c gpiochip2 16=0 //you will see the led light off
//ctrl+c force quit
root@imx8mmevk:~# gpioget -c 2 16
"16"=inactive
root@imx8mmevk:~#
Regards
Daniel