Gpio1 reading issue in apalis imx6

Hi,
I am trying to read gpio1 in apalis imx6.
What i did:
Connected 3.3V to x2 connector 10th pin(MXM3_1) carrier board(Apalis Evaluation Board 1.1).after that

echo 1 > /sys/class/gpio/export
echo “in” > /sys/class/gpio/gpio1/direction
cat /sys/class/gpio/gpio1/value
But when i connect 3.3v or 0v , it is giving 0 only.
Note: when i use 488 for gpio1 i got error “-sh: echo: write error: Invalid argument”

Please suggest how to solve the issue. Thanks in advance.

Hi @jng

Welcome to toradex community.

Could you please provide me the software and hardware versions of your setup? is this a custom image? also, attach the full error log.

I am using
software version: Linux apalis-imx6 5.4.77-5.1.0-devel+git.8fc7bd5da76f
Hardware: Apalis Evaluation Board 1.1 with imx6.

Hi @jng

Please refer to the Getting started article for GPIO usage.

GPIO number