GPIO Enable Pull Up


#1

Hello,

I am trying to configure a GPIO (#56 of FX30) via an application.
Here are the steps of the configuration : (bindings in adef and cdef files are functional)
gpioVeronte_SetPushPullOutput(1, false);
gpioVeronte_EnablePullUp();

I get the following error :
Jan 6 00:36:37 | gpioService[572]/sysfsGpio T=main | gpioSysfsUtils.c WriteSysGpioSignalAttr() 173 | Failed to write up to GPIO config /sys/class/gpio/gpio56/pull. Error Operation not permitted

Even setting it through ssh does not change anything:

root@fx30:~# echo up > /sys/class/gpio/gpio56/pull
sh: write error: Invalid argument
root@fx30:~# config set /sys/class/gpio/gpio56/pull up
root@fx30:~# cat /sys/class/gpio/gpio56/pull
down
root@fx30:~#

Is it a known issue of the FX30 ?
Thank you


#2

Hi tdcxsun,

If refer to table 3-8 of FX30 user guide: https://source.sierrawireless.com/resources/airlink/hardware_reference_docs/airlink_fx30_hw_user_guide/

GPIO56 (IO3) is digital output.
To control IO3 internal pull, it should be GPIO54.

Thx