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.