Home/Support/Support Forum/Failed to run sample program apix-gpio-sample on CC6 SBC.
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Failed to run sample program apix-gpio-sample on CC6 SBC.

0 votes
I tried to build and run the apix-gpio-sample on CC6 SBC (CC-SB-WMX-J97C-1).
But I failed with the following error messages from the Eclipse remote terminal window:

libsoc-warn: Invalid number: gpio2,5
libsoc-warn: Invalid number: gpio2,2
Unable to parse button and led GPIOs

The following functions of the program return -1.
button = parse_argument(argv[1]);
led = parse_argument(argv[2]);

Defined in /etc/libdigiapix.conf as follows :
Quote:
[GPIO]
# USER LED (RED) - GPIO02_I002
USER_LED = gpio2,2

# USER BUTTON - GPIO02_I005
USER_BUTTON = gpio2,5
Unquote:

The response of "gpioinfo gpio2":
line 2: unnamed unused input active-high
line 5: unnamed unused input active-high

I do not know what is wrong.
asked Jul 26 in Other/Legacy by Toshiaki Kojima New to the Community (2 points)

Please log in or register to answer this question.

...