How to use the Grove-UART port as a GPIO on BBGW ?

Hallo all,

I am newbie at microcontroller business and I switched on my very first board last week.
My problem is that the first step tutorials are not working any more and even worse a really important part of it is offline (or the page is broken)

Now my question:
How to use the Grove-UART port as a GPIO on BBGW ?

I found this at http://wiki.seeedstudio.com/Grove_Starter_Kit_for_BeagleBone_Green/ :

Step1: Set the Grove - UART socket as a Grove - GPIO Socket, just follow this link.(-> http://www.seeedstudio.com/recipe/362-how-to-use-the-grove-uart-port-as-a-gpio-on-bbg.html )

I found other sites like https://community.seeedstudio.com/How-to-use-the-Grove-UART-port-as-a-GPIO-on-BBG-p-365.html for a BGG ( I hope the Grove-UARt work the same way) but this is also broken …

Can someone post the steps here? This would be nice :slight_smile:

Thanks in advance

Those pins should be available to you, first test with config-pin:

debian@test-bbb-2:~$ config-pin -q P9.21
P9_21 Mode: default Direction: in Value: 1

debian@test-bbb-2:~$ config-pin -q P9.22
P9_22 Mode: default Direction: in Value: 1

debian@test-bbb-2:~$ config-pin -l P9.21
default gpio gpio_pu gpio_pd gpio_input spi uart i2c pwm pru_uart

debian@test-bbb-2:~$ config-pin -l P9.22
default gpio gpio_pu gpio_pd gpio_input spi_sclk uart i2c pwm pru_uart

If you get something like that, then you can change the pin to gpio via:

config-pin P9.21 gpio
config-pin P9.22 gpio

and access it thru /sys/class/gpio/

P9_21 = /sys/class/gpio/gpio3
P9_22 = /sys/class/gpio/gpio2

IF NOT:

Run:
sudo /opt/scripts/tools/version.sh

and share the output..

Regards,

Hello
wow, It works :slight_smile: Do you know some usefull URLS where I can find more Information of this kind? I mean was this written in the documentation somewhere, but I didn’t see? And I missed this, what else did I missed?