Are you shure that you setted the IOG22 as output. an example taken from the mailing list.
// Set all the availables IOG lines on port G as output iomask_g = LINE_8 | LINE_9; ioctl(fdg, _IO(ETRAXGPIO_IOCTYPE, IO_SETGET_OUTPUT),&iomask_g); and the same as input // Set all the availables IOG lines on port G as input iomask_g = LINE_8 | LINE_9; ioctl(fdg, _IO(ETRAXGPIO_IOCTYPE, IO_SETGET_INPUT),&iomask_g); I hope it helps. Cyril Jaquier schreef: > > Hi all, > > I'm using the GPIO ports of my Foxboard for the first time. I'm > currently trying to use IOG22 (J7.3) as an output. > > Without any load on this pin, my multimeter shows a voltage of about 3V > with both "setbits -p g -b 22 -s 1" or "setbits -p g -b 22 -s 0". Is > this the "normal" behaviour? > > When connecting R3 to IOG22 (cf. http://www.jaqpot.net/temp/relay.png > <http://www.jaqpot.net/temp/relay.png>), > the voltage stays at 0V with both "setbits -p g -b 22 -s 1" or "setbits > -p g -b 22 -s 0". "readbits" shows that IOG22 is set to 0. > > I have tried different kernel configurations without success. I have > tried my own C program using gpio_syscall. I have tried on IOG20 too > without more success :( > > How to use these pins as output? > > Regards, > > Cyril Jaquier > >
