Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: gvi70000 on January 30, 2016, 09:09:03 PM

Title: UEXT pins as GPIO
Post by: gvi70000 on January 30, 2016, 09:09:03 PM
Hello all,

Is it possible to use the SPI pins from UEXT 1/2 as normal GPIO pins? if yes how do i do it?
Title: Re: UEXT pins as GPIO
Post by: Gerrit on January 30, 2016, 11:27:37 PM
if you look up the port name in this table http://linux-sunxi.org/A20/PIO you can assign a gpio_pin to it in the fex file, but make sure it is not assigned for anything else any more.

more about the FEX file you find here http://linux-sunxi.org/Fex_Guide

after changing script.fex you need the fex2bin program to create script.bin

fex2bin is most time found in /opt/sunxi-tools/