On Tue, Dec 24, 2019 at 8:24 AM <[email protected]> wrote:
>
> 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 :-)

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,

-- 
Robert Nelson
https://rcn-ee.com/

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAOCHtYhUXLxdMAj4kMuondufOqHD68dhSYJh3_SPvXSYGiL-2Q%40mail.gmail.com.

Reply via email to