AnsweredAssumed Answered

How to turn on Debug LED from "terminal" or Java (Android).

Question asked by Bill Bigelow on Mar 13, 2015
Latest reply on Mar 16, 2015 by igorpadykov

For a quick demo, I need to turn on/off one of the spare LEDs on the 6SLEVM (i.MX6 SoloLite EVK).

I'm demoing an Android app running on that board.

I see how to do it from a C program but not from Java in an Android app.

Sample java blog suggests finding it in the "Device Tree" the write to it like writing a file.

e.g. URI = /sys/devices/virtual/gpio/gpio115/value, or similar location in /sys/classes... or something like that.

Then, to check from the command line, I'd type "echo 1 > /sys/devices/virtual/gpio/gpio115/value"

But I can't find a "device" in the tree that looks like it's for that LED.

On the schematic, it's HSIC_STROBE (and HSIC_STROBE_GPIO).

In reference guide, it mentions GPIO3_20 for ALT5 (a/k/a gpio3.GPIO[20]).  I have no idea how that implies a node in the Device Tree.

In the schematic, it's D23, driven by Q5 (page 14).

Any ideas?

Outcomes