WP7603-1 gpio missing binding


#1

Hi all, i try to run a GPIO test program on ubuntu with developer Studio legato-17.08.1-R6-WP76-linux-32bits , but i have the bindings problem.I have overlooked some important things?

The previous screenshot was wrong, corrected now:

Here is the code:

GPIO_TestComponent.c

#include “legato.h”
#include “interfaces.h”

COMPONENT_INIT
{
LE_INFO(“GPIO, test.”);
le_gpioPin25_SetPushPullOutput(LE_GPIOPIN25_ACTIVE_HIGH,false);
le_gpioPin25_Activate();
}

GPIO_TestComponent.c

sources:
{
GPIO_TestComponent.c
}

requires:
{
api:
{
le_gpioPin25 = le_gpio.api
}
}

GPIO_Test.adef

executables:
{
gpio_test = ( GPIO_TestComponent )
}

processes:
{
envVars:
{
LE_LOG_LEVEL = DEBUG
}

run:
{
	( gpio_test )
}

maxCoreDumpFileBytes: 512K
maxFileBytes: 512K

}

bindings:
{
gpio_test.GPIO_TestComponent.le_gpioPin25 -> gpioService.le_gpioPin25
}

version: 1.0.0
maxFileSystemBytes: 512K

Pleas advise, thank you!


#2

Hi LQH,

The code looks ok, but the app name is “GPIO_Test” and binding le_gpioPin25.

However, the screen capture show app name as “HelloWorld” and missing le_gpioPin21 binding.

Are you installing the right app?

Thx


#3

Sorry picture was wrong, I replaced the IO port, did not intercept new pictures, but the problem is still a lack of binding, thank you!


#4

you will have to use the AT command port and issue a
AT+WIOCFG=[pin],16

that worked for me