VITA 57 Development Kit User's Guide
Troubleshooting
Page 10
SD.DT.F79-0e
Set output GPIOs to 1:
# gpio
−
c 9
−
s GPIO_DataOut
−
v 0x2aa
Check the GPIO levels: all must be at level 1 (because they are outputs at level 1, or because thay are inputs
connected to the outputs).
# gpio
−
c 9
−
g GPIO_In
GPIO_In
−
> 0x000003FF
Set output GPIOs to 0:
# gpio
−
c 9
−
s GPIO_DataOut
−
v 0x0
Check the GPIO levels: all must be at level 0 (because they are outputs at level 0, or because thay are inputs
connected to the outputs)
# gpio
−
c 9
−
g GPIO_In
GPIO_In
−
> 0x00000000
#
>
To see the current value of all registers of a channel (binary and hex format), use the -u option. For
example:
# gpio
−
c 9
−
u
****************************************************************
Channel: 9 => 10 GPIOs
****************************************************************
GPIO_Control XXXXXXXXXXXXXXXXXXXXXX1010101010 0x000002AA
GPIO_DataOut XXXXXXXXXXXXXXXXXXXXXX0000000000 0x00000000
GPIO_In XXXXXXXXXXXXXXXXXXXXXX0000000000 0x00000000
GPIO_IntMask XXXXXXXXXXXXXXXXXXXXXX1111111111 0x000003FF
GPIO_IntPolarity XXXXXXXXXXXXXXXXXXXXXX0000000000 0x00000000
GPIO_IntMode XXXXXXXXXXXXXXXXXXXXXX0000000000 0x00000000
GPIO_IntToggle XXXXXXXXXXXXXXXXXXXXXX0000000000 0x00000000
GPIO_IntStatus XXXXXXXXXXXXXXXXXXXXXX0000000000 0x00000000
****************************************************************
GPIO_GlobalStatus 00000000000000000000000000000000
****************************************************************