I’m trying to configure a single pin on the mangoh yellow Iot board to send a simple toggling signal (on/off type of thing). I’m having issues using the le_gpio api, it either hangs the app or crashes the process completely.
When it crashes, I get this error: user.emerg Legato: *EMR* | app@0[3097]/framework T=main | le_gpio_commonclient.c ifgen_le_gpio_SetPushPullOutput() 392 | Error receiving response from server
I’m trying to figure out:
a) Which api pins map to which physical Iot board pins?
b) Are there any specific calls that I need to make in order for it to function properly? Do I need to call le_gpio_ConnectService()? When should I call le_gpio_Activate()/Deactivate()?
Thanks, @jyijyi. That app seems to work fine, but when I copy the necessary lines from the .adef, .cdef and .c files I get inconsistent behavior in my app. Sometimes the activation of the GPIO pin works, but in all cases it crashes my app. These are the log lines that I get, sometimes they are in different a different order, but they always seem to appear.
Ok, the issue is that I don’t want the implementation that is provided in the example app. I’m trying to make an app that the user inputs a CLI command and the app toggles the GPIO.
And, ok, is there a resource that shows which GPIOXX is connected to each pin? I’ve seen some mappings, but none of them map GPIO13 to pin 25, so maybe there’s an updated one?