Hi,
I’ve built customer Legato systems for my WP8548 and WP76xx targets based upon Legato 18.04.
I get errors when my app uses GPIO36 or GPIO37 (as an output pin) or GPIO38 (as an input pin).
myApp.myComponent.OUTPUT1 → gpioService.le_gpioPin36
myApp.myComponent.OUTPUT2 → gpioService.le_gpioPin37
myApp.myComponent.INPUT1 → gpioService.le_gpioPin38
These errors are different for both targets.
WP8548:
- “missing binding le_gpioPin36” at startup of myApp
- “missing binding le_gpioPin37” at startup of myApp
- no error for GPIO38
WP76xx:
-
gpioSysfsUtils.c WriteSysGpioSignalAttr() 175 | Failed to write out to GPIO config /sys/class/gpio/gpio36/direction. Error Operation not permitted
gpioSysfsUtils.c gpioSysfs_Activate() 731 | Failed to set Direction on GPIO gpio36 -
gpioSysfsUtils.c WriteSysGpioSignalAttr() 175 | Failed to write out to GPIO config /sys/class/gpio/gpio37/direction. Error Operation not permitted
gpioSysfsUtils.c gpioSysfs_Activate() 731 | Failed to set Direction on GPIO gpio37 -
gpioSysfsUtils.c ExportGpio() 106 | Failed to export GPIO 38. Error Operation not permitted
gpioSysfsUtils.c gpioSysfs_SessionOpenHandlerFunc() 1112 | Unable to export GPIO gpio38 for use - stopping session
gpioSysfsUtils.c WriteSysGpioSignalAttr() 175 | Failed to write in to GPIO config /sys/class/gpio/gpio38/direction. Error Operation not permitted
ConfigureGpioInputPins() 85 | Couldn’t configure INPUT1 as default input high
When I run AT+WIOCFG? on both targets, I get different results:
WP8548:
WP76xx:
These screenshots tell me that I can’t use GPIO pins 36, 37 and 38 in my app.
To solve this, I use the command AT+WIOCFG on both targets, and this gives different results.
WP8548:
AT+WIOCFG=36,16,0,0,1,0,0 OK
AT+WIOCFG=37,16,0,0,1,0,0 OK
AT+WIOCFG=38,16,0,0,1,0,0 ERROR
==> myApp runs on WP8548
WP76xx:
AT+WIOCFG=36,16,0,0,1,0,0 ERROR
AT+WIOCFG=37,16,0,0,1,0,0 ERROR
AT+WIOCFG=38,16,0,0,1,0,0 ERROR
==> the errors are still there
According to the datasheets it should be possible to use GPIO36, GPIO37 and GPIO38 on WP76xx.
Any idea how I can fix this for WP76xx?
greetings,
annaertd