Hello, I want to access a GPIO pin, any pin, and do something (say, glow a physically connected LED) on that pin. I understand that to do this, we need to write (or otherwise acquire) a driver for that particular pin, to write the registers. But I am having difficulty knowing what to do, exactly. I saw this code by Mr. Vinayak, which opened a folder in /sys/class/gpio in order to export a particular pin number and then that pin would become available for use. On running the code, there was supposed to be a folder generated (gpio160) in /sys/class/gpio, but no such folder was created, further the code ran into an error and displayed : Cannot open direction file, because the folder /sys/class/gpio/gpio160 was never created. I even tried to do it vio command line using echo but nothing happened, and I got an error : echo : write Error: invalid argument can someone guide me here? Thanks!
Accessing GPIO Pins
Hello, ru working on Linux environment or hyper-terminal?can u provide exact concept what your are going to build
We are working in the linux environment, and we basically want to control a BLDC motor. We need six GPIO pins to control the motor but don't know how to access any GPIO pin.
We do have one folder which has all the header and source files which have addresses for all the GPIO registers, and also ones which modify the control registers of various GPIO ports to configure them as input or output ports. I was wondering if we need to save this folder on some path so that it can be recognized while running the LED_Blink code? Because as of now, it gets compiled on the cross-compiler, but shows a segmentation fault when run on the board.
We do have one folder which has all the header and source files which have addresses for all the GPIO registers, and also ones which modify the control registers of various GPIO ports to configure them as input or output ports. I have attached the folder which has the header and source files. I was wondering if we need to save this folder on some path so that it can be recognized while running the LED_Blink code? Because as of now, it gets compiled on the cross-compiler, but shows a segmentation fault when run on the board.
The link to the site where I got all these header and source files is http://www.npeducations.com/2011/11/how-to-glow-led-using-arm9-processor... if someone could have a look?
Hi, Contact me at k.sundeep2007@gmail.com..as i am not a frequent visitor to the forum will solve ur issue through mail.